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

int
LEFT_HEIGHT_OVERHEAD
int
LEFT_WIDTH_OVERHEAD

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

BubbleNodeView(MindMapNode model, MapView map)

Method Summary

int
getLeftWidthOverhead()
Dimension
getPreferredSize()
Changed to remove the printing bug of java.
void
paint(Graphics graphics)
Paints the node
void
paintSelected(Graphics2D graphics, Dimension size)

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

Field Details

LEFT_HEIGHT_OVERHEAD

public final int LEFT_HEIGHT_OVERHEAD

LEFT_WIDTH_OVERHEAD

public final int LEFT_WIDTH_OVERHEAD

Constructor Details

BubbleNodeView

public BubbleNodeView(MindMapNode model,
                      MapView map)

Method Details

getLeftWidthOverhead

public int getLeftWidthOverhead()
Overrides:
getLeftWidthOverhead in interface NodeView

getPreferredSize

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

paint

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

paintSelected

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