|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Painter<T>
A painter draws a particular decoration onto the tree within a rectangle.
| Nested Class Summary | |
|---|---|
static class |
Painter.Justification
|
static class |
Painter.Orientation
|
| Method Summary | |
|---|---|
void |
addPainterListener(PainterListener listener)
|
Rectangle2D |
calibrate(Graphics2D g2,
T item)
Called to calibrate the painters for a given graphics context. |
double |
getHeightBound()
|
double |
getPreferredHeight()
|
double |
getPreferredWidth()
|
boolean |
isVisible()
If this is false then the painter should not be displayed. |
void |
paint(Graphics2D g2,
T item,
Painter.Justification justification,
Rectangle2D bounds)
Called to actually paint into the current graphics context. |
void |
removePainterListener(PainterListener listener)
|
void |
setTreePane(TreePane treePane)
Called when the painter is installed in a TreePane. |
| Method Detail |
|---|
void setTreePane(TreePane treePane)
treePane - boolean isVisible()
Rectangle2D calibrate(Graphics2D g2,
T item)
g2 - item -
void paint(Graphics2D g2,
T item,
Painter.Justification justification,
Rectangle2D bounds)
g2 - item - justification - bounds - double getPreferredWidth()
double getPreferredHeight()
double getHeightBound()
void addPainterListener(PainterListener listener)
void removePainterListener(PainterListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||