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

Nested Class Summary
static class Painter.Justification
           
static class Painter.Orientation
           
 
Method Summary
 void addPainterListener(PainterListener listener)
           
 void calibrate(Graphics2D g2, T item)
           
 double getHeightBound()
           
 double getPreferredHeight()
           
 double getPreferredWidth()
           
 boolean isVisible()
           
 void paint(Graphics2D g2, T item, Painter.Justification justification, Rectangle2D bounds)
           
 void removePainterListener(PainterListener listener)
           
 
Methods inherited from interface org.virion.jam.controlpanels.ControlsProvider
getControls, getSettings, setControlPalette, setSettings
 

Method Detail

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)