freemind.view.mindmapview

Class BubbleNodeView

public class BubbleNodeView extends NodeView

This class represents a single Bubble-Style Node of a MindMap (in analogy to TreeCellRenderer).
Field Summary
intLEFT_HEIGHT_OVERHEAD
intLEFT_WIDTH_OVERHEAD
Constructor Summary
BubbleNodeView(MindMapNode model, MapView map)
Method Summary
intgetLeftWidthOverhead()
DimensiongetPreferredSize()
voidpaint(Graphics graphics)
Paints the node
voidpaintSelected(Graphics2D graphics, Dimension size)

Field Detail

LEFT_HEIGHT_OVERHEAD

public final int LEFT_HEIGHT_OVERHEAD

LEFT_WIDTH_OVERHEAD

public final int LEFT_WIDTH_OVERHEAD

Constructor Detail

BubbleNodeView

public BubbleNodeView(MindMapNode model, MapView map)

Method Detail

getLeftWidthOverhead

public int getLeftWidthOverhead()

getPreferredSize

public Dimension getPreferredSize()

paint

public void paint(Graphics graphics)
Paints the node

paintSelected

public void paintSelected(Graphics2D graphics, Dimension size)