jebl.gui.trees.treecomponent
Interface RootedTreePainter

All Known Implementing Classes:
SquareTreePainter

public interface RootedTreePainter

Author:
Alexei Drummond

Method Summary
 Node findNodeAtPoint(Point2D point)
          Find the node under point.
 void paintTree(Graphics2D g, Dimension size, RootedTree tree)
          Do the actual painting.
 void setHilightLabelStyle(Font hilightLabelFont, Paint hilightLabelPaint)
          Set hilight label style.
 void setHilightStyle(Stroke hilightStroke, Paint hilightPaint)
          Set hilight style
 void setLabelStyle(Font labelFont, Paint labelPaint)
          Set label style.
 void setLineStyle(Stroke lineStroke, Paint linePaint)
          Set line style
 

Method Detail

setLineStyle

void setLineStyle(Stroke lineStroke,
                  Paint linePaint)
Set line style


setHilightStyle

void setHilightStyle(Stroke hilightStroke,
                     Paint hilightPaint)
Set hilight style


setLabelStyle

void setLabelStyle(Font labelFont,
                   Paint labelPaint)
Set label style.


setHilightLabelStyle

void setHilightLabelStyle(Font hilightLabelFont,
                          Paint hilightLabelPaint)
Set hilight label style.


paintTree

void paintTree(Graphics2D g,
               Dimension size,
               RootedTree tree)
Do the actual painting.


findNodeAtPoint

Node findNodeAtPoint(Point2D point)
Find the node under point. Returns -1 if not found.