freemind.view.mindmapview

Class RootNodeView


public class RootNodeView
extends NodeView

This is a RootNode with different placing of children and different painting than a normal NodeView

Field Summary

Fields inherited from class freemind.view.mindmapview.NodeView

DRAGGED_OVER_NO, DRAGGED_OVER_SIBLING, DRAGGED_OVER_SON, DRAGGED_OVER_SON_LEFT, LEFT_HEIGHT_OVERHEAD, LEFT_WIDTH_OVERHEAD, dragColor, edge, isDraggedOver, map, model, selectedColor, treeHeight

Constructor Summary

RootNodeView(MindMapNode model, MapView map)

Method Summary

boolean
dropAsSibling(double xCoord)
boolean
dropPosition(double xCoord)
NodeView
getNextSibling()
NodeView
getParentView()
Dimension
getPreferredSize()
Changed to remove the printing bug of java.
NodeView
getPreviousSibling()
void
paint(Graphics graphics)
Paints the node
void
paintDragOver(Graphics2D graphics, Dimension size)
void
paintSelected(Graphics2D graphics, Dimension size)
void
setDraggedOver(Point p)
protected void
setRendering(Graphics2D g)

Methods inherited from class freemind.view.mindmapview.NodeView

dropAsSibling, dropPosition, followLink, getChildrenViews, getCoordinates, getDraggedOver, getIsLong, getLeftWidthOverhead, getModel, getNextPage, getNextSibling, getNextSiblingSingle, getParentView, getPreferredSize, getPreviousPage, getPreviousSibling, getPreviousSiblingSingle, getSiblingViews, isChildOf, isLeft, isParentOf, isRoot, isSelected, isSiblingOf, newNodeView, paint, paintDragOver, paintSelected, requestFocus, setDraggedOver, setDraggedOver, setLeft, setMap, setModel, setRendering, updateCursor

Constructor Details

RootNodeView

public RootNodeView(MindMapNode model,
                    MapView map)

Method Details

dropAsSibling

public boolean dropAsSibling(double xCoord)
Overrides:
dropAsSibling in interface NodeView

dropPosition

public boolean dropPosition(double xCoord)
Overrides:
dropPosition in interface NodeView
Returns:
true if should be on the left, false otherwise.

getNextSibling

public NodeView getNextSibling()
Overrides:
getNextSibling in interface NodeView

getParentView

public NodeView getParentView()
Overrides:
getParentView in interface NodeView

getPreferredSize

public Dimension getPreferredSize()
Changed to remove the printing bug of java.
Overrides:
getPreferredSize in interface NodeView

getPreviousSibling

public NodeView getPreviousSibling()
Overrides:
getPreviousSibling in interface NodeView

paint

public void paint(Graphics graphics)
Paints the node
Overrides:
paint in interface NodeView

paintDragOver

public void paintDragOver(Graphics2D graphics,
                          Dimension size)
Overrides:
paintDragOver in interface NodeView

paintSelected

public void paintSelected(Graphics2D graphics,
                          Dimension size)
Overrides:
paintSelected in interface NodeView

setDraggedOver

public void setDraggedOver(Point p)
Overrides:
setDraggedOver in interface NodeView

setRendering

protected void setRendering(Graphics2D g)
Overrides:
setRendering in interface NodeView