freemind.view.mindmapview

Class ForkNodeView


public class ForkNodeView
extends NodeView

This class represents a single Fork-Style Node of a MindMap (in analogy to TreeCellRenderer).

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

ForkNodeView(MindMapNode model, MapView map)

Method Summary

Dimension
getPreferredSize()
Changed to remove the printing bug of java.
void
paint(Graphics graphics)
Paints the node

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

ForkNodeView

public ForkNodeView(MindMapNode model,
                    MapView map)

Method Details

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