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