Package pal.gui
Class TreePainterCircular
java.lang.Object
pal.gui.TreePainter
pal.gui.TreePainterCircular
- All Implemented Interfaces:
Painter
A class that can paint a tree (in a circular fashion) into a Graphics object .
- Version:
- $Id: TreePainterCircular.java,v 1.13 2003/07/20 02:36:08 matt Exp $
- Author:
- Alexei Drummond, Matthew Goode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class pal.gui.TreePainter
attName, BACKGROUND, BOOTSTRAP_ATTRIBUTE_NAME, BOOTSTRAP_SUPPORT_COLOUR, DEFAULT_FONT, DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, FOREGROUND, HILITED_LABEL_DISPLAY, NORMAL_LABEL_COLOR, NORMAL_LABEL_DISPLAY, showingInternalLabels, title_, treeNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred size for drawing (that is the size that will show everything nicely)voidfinal voidfinal voidpaint(Graphics g, int displayWidth, int displayHeight, boolean invert, LayoutTracker lt) voidpaint(Graphics g, int displayWidth, int displayHeight, LayoutTracker lt) protected voidpaint(PositionedNode node, CircularGraphics cg) voidsetTreeImpl(Tree t) may be implemented by sub classesMethods inherited from class pal.gui.TreePainter
doScale, doTitle, drawSymbol, getBootstrapValue, getLabelFont, getLongestIdentifierPixelWidth, getMaxLeafTime, getNodeDisplay, getNodeName, getPenWidth, getSizeOfScale, getTimeOrderCharacterData, getTitle, getTree, isShowingInternalLabels, isShowingNodeHeights, isShowTitle, isUsingColor, isUsingSymbols, setAttributeName, setColouriser, setLabelFont, setLabelFontSize, setLabelMapping, setMaxHeight, setPenWidth, setShowingNodeHeights, setTimeOrderCharacterData, setTitle, setTree, setUsingColor, setUsingSymbols, standardTreePrep
-
Field Details
-
RIGHTBORDER
public static final int RIGHTBORDER- See Also:
-
LEFTBORDER
public static final int LEFTBORDER- See Also:
-
TOPBORDER
public static final int TOPBORDER- See Also:
-
BOTTOMBORDER
public static final int BOTTOMBORDER- See Also:
-
YSPACER
public static final int YSPACER- See Also:
-
XSPACER
public static final int XSPACER- See Also:
-
-
Constructor Details
-
TreePainterCircular
-
-
Method Details
-
setTreeImpl
Description copied from class:TreePaintermay be implemented by sub classes- Overrides:
setTreeImplin classTreePainter
-
getPreferredSize
Returns the preferred size for drawing (that is the size that will show everything nicely) -
paint
-
paint
-
paint
-
paint
-
paint
public final void paint(Graphics g, int displayWidth, int displayHeight, boolean invert, LayoutTracker lt)
-