This class represents a single Node of a MindMap
(in analogy to TreeCellRenderer).
DRAGGED_OVER_NO
public static final int DRAGGED_OVER_NO
DRAGGED_OVER_SIBLING
public static final int DRAGGED_OVER_SIBLING
DRAGGED_OVER_SON
public static final int DRAGGED_OVER_SON
DRAGGED_OVER_SON_LEFT
public static final int DRAGGED_OVER_SON_LEFT
For RootNodeView.
LEFT_HEIGHT_OVERHEAD
public final int LEFT_HEIGHT_OVERHEAD
LEFT_WIDTH_OVERHEAD
public final int LEFT_WIDTH_OVERHEAD
dragColor
protected static final Color dragColor
isDraggedOver
protected int isDraggedOver
selectedColor
protected static final Color selectedColor
treeHeight
protected int treeHeight
dropAsSibling
public boolean dropAsSibling(double xCoord)
dropPosition
public boolean dropPosition(double xCoord)
- true if should be on the left, false otherwise.
followLink
public boolean followLink(double xCoord)
getChildrenViews
public LinkedList getChildrenViews()
This method returns the NodeViews that are children of this node.
getCoordinates
public void getCoordinates(LinkedList inList,
int additionalDistanceForConvexHull)
Returns the coordinates occupied by the node and its children as a vector of four point per node.
getDraggedOver
public int getDraggedOver()
getIsLong
public boolean getIsLong()
getLeftWidthOverhead
public int getLeftWidthOverhead()
getNextPage
protected NodeView getNextPage()
getNextSibling
protected NodeView getNextSibling()
getNextSiblingSingle
protected NodeView getNextSiblingSingle()
getParentView
protected NodeView getParentView()
getPreferredSize
public Dimension getPreferredSize()
Changed to remove the printing bug of java.
getPreviousPage
protected NodeView getPreviousPage()
getPreviousSibling
protected NodeView getPreviousSibling()
getPreviousSiblingSingle
protected NodeView getPreviousSiblingSingle()
getSiblingViews
protected LinkedList getSiblingViews()
isChildOf
public boolean isChildOf(NodeView myNodeView)
isLeft
public boolean isLeft()
Is the node left of root?
isParentOf
public boolean isParentOf(NodeView myNodeView)
isRoot
public boolean isRoot()
isSelected
protected boolean isSelected()
isSiblingOf
public boolean isSiblingOf(NodeView myNodeView)
newNodeView
protected static NodeView newNodeView(MindMapNode model,
MapView map)
Factory method which creates the right NodeView for the model.
paint
public void paint(Graphics graphics)
paintDragOver
public void paintDragOver(Graphics2D graphics,
Dimension size)
paintSelected
public void paintSelected(Graphics2D graphics,
Dimension size)
requestFocus
public void requestFocus()
setDraggedOver
public void setDraggedOver(Point p)
setDraggedOver
public void setDraggedOver(int draggedOver)
setLeft
protected void setLeft(boolean left)
setMap
protected void setMap(MapView map)
setRendering
protected void setRendering(Graphics2D g)
updateCursor
public void updateCursor(double xCoord)