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
Constructor Summary
RootNodeView(MindMapNode model, MapView map)
Method Summary
booleandropAsSibling(double xCoord)
booleandropPosition(double xCoord)
NodeViewgetNextSibling()
NodeViewgetParentView()
DimensiongetPreferredSize()
NodeViewgetPreviousSibling()
voidpaint(Graphics graphics)
Paints the node
voidpaintDragOver(Graphics2D graphics, Dimension size)
voidpaintSelected(Graphics2D graphics, Dimension size)
voidsetDraggedOver(Point p)
protected voidsetRendering(Graphics2D g)

Constructor Detail

RootNodeView

public RootNodeView(MindMapNode model, MapView map)

Method Detail

dropAsSibling

public boolean dropAsSibling(double xCoord)

dropPosition

public boolean dropPosition(double xCoord)

Returns: true if should be on the left, false otherwise.

getNextSibling

public NodeView getNextSibling()

getParentView

public NodeView getParentView()

getPreferredSize

public Dimension getPreferredSize()

getPreviousSibling

public NodeView getPreviousSibling()

paint

public void paint(Graphics graphics)
Paints the node

paintDragOver

public void paintDragOver(Graphics2D graphics, Dimension size)

paintSelected

public void paintSelected(Graphics2D graphics, Dimension size)

setDraggedOver

public void setDraggedOver(Point p)

setRendering

protected void setRendering(Graphics2D g)