|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.gui.trees.treecomponent.SquareTreePainter
public class SquareTreePainter
Field Summary | |
---|---|
protected Font |
hilightLabelFont
|
protected Paint |
hilightLabelPaint
|
protected Paint |
hilightPaint
|
protected Stroke |
hilightStroke
|
protected Font |
labelFont
|
protected Paint |
labelPaint
|
protected Paint |
linePaint
|
protected Stroke |
lineStroke
|
protected int |
maxFontSize
|
Constructor Summary | |
---|---|
SquareTreePainter()
|
|
SquareTreePainter(boolean rememberYPositions)
|
Method Summary | |
---|---|
void |
drawHorizontals(boolean drawHorizontals)
|
void |
drawLabels(boolean drawLabels)
|
void |
drawVerticals(boolean drawVerticals)
|
Node |
findNodeAtPoint(Point2D point)
Find the node under point. |
void |
paintTree(Graphics2D g2,
Dimension size,
RootedTree tree)
Do the actual painting. |
void |
setFontSize(int size)
|
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 |
setLinePaint(Paint linePaint)
Set line style |
void |
setLineStyle(Stroke lineStroke,
Paint linePaint)
Set line style |
void |
setUserDefinedHeight(double height)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Stroke lineStroke
protected Paint linePaint
protected Stroke hilightStroke
protected Paint hilightPaint
protected int maxFontSize
protected Font labelFont
protected Paint labelPaint
protected Font hilightLabelFont
protected Paint hilightLabelPaint
Constructor Detail |
---|
public SquareTreePainter()
public SquareTreePainter(boolean rememberYPositions)
Method Detail |
---|
public void setLineStyle(Stroke lineStroke, Paint linePaint)
setLineStyle
in interface RootedTreePainter
public void setLinePaint(Paint linePaint)
public void setHilightStyle(Stroke hilightStroke, Paint hilightPaint)
setHilightStyle
in interface RootedTreePainter
public void setFontSize(int size)
public void setLabelStyle(Font labelFont, Paint labelPaint)
setLabelStyle
in interface RootedTreePainter
public void setHilightLabelStyle(Font hilightLabelFont, Paint hilightLabelPaint)
setHilightLabelStyle
in interface RootedTreePainter
public void setUserDefinedHeight(double height)
public void drawLabels(boolean drawLabels)
public void drawHorizontals(boolean drawHorizontals)
public void drawVerticals(boolean drawVerticals)
public void paintTree(Graphics2D g2, Dimension size, RootedTree tree)
paintTree
in interface RootedTreePainter
public final Node findNodeAtPoint(Point2D point)
findNodeAtPoint
in interface RootedTreePainter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |