jebl.gui.trees.treeviewer.painters
Interface Painter<T>
- All Superinterfaces:
- ControlsProvider
- All Known Implementing Classes:
- AbstractPainter, BasicLabelPainter, ScaleBarPainter
public interface Painter<T>
- extends ControlsProvider
A painter draws a particular decoration onto the tree within a
rectangle.
- Author:
- Andrew Rambaut
isVisible
boolean isVisible()
calibrate
void calibrate(Graphics2D g2,
T item)
paint
void paint(Graphics2D g2,
T item,
Painter.Justification justification,
Rectangle2D bounds)
getPreferredWidth
double getPreferredWidth()
getPreferredHeight
double getPreferredHeight()
getHeightBound
double getHeightBound()
addPainterListener
void addPainterListener(PainterListener listener)
removePainterListener
void removePainterListener(PainterListener listener)