jebl.gui.trees.treeviewer_dev.painters
Class LabelPainter<T>

java.lang.Object
  extended by jebl.gui.trees.treeviewer_dev.painters.AbstractPainter<T>
      extended by jebl.gui.trees.treeviewer_dev.painters.LabelPainter<T>
All Implemented Interfaces:
Painter<T>
Direct Known Subclasses:
BasicLabelPainter, ScaleBarPainter

public abstract class LabelPainter<T>
extends AbstractPainter<T>

Author:
Andrew Rambaut

Nested Class Summary
 
Nested classes/interfaces inherited from interface jebl.gui.trees.treeviewer_dev.painters.Painter
Painter.Justification, Painter.Orientation
 
Constructor Summary
protected LabelPainter()
           
 
Method Summary
abstract  String[] getAttributes()
           
 Paint getBackground()
           
 Paint getBorderPaint()
           
 Stroke getBorderStroke()
           
 Font getFont()
           
 Paint getForeground()
           
 NumberFormat getNumberFormat()
           
 boolean isVisible()
          If this is false then the painter should not be displayed.
 void setBackground(Paint background)
           
 void setBorder(Paint borderPaint, Stroke borderStroke)
           
abstract  void setDisplayAttribute(String displayAttribute)
           
 void setFont(Font font)
           
 void setForeground(Paint foreground)
           
 void setNumberFormat(NumberFormat numberFormat)
           
abstract  void setupAttributes(Tree tree)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class jebl.gui.trees.treeviewer_dev.painters.AbstractPainter
addPainterListener, firePainterChanged, firePainterSettingsChanged, removePainterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jebl.gui.trees.treeviewer_dev.painters.Painter
calibrate, getHeightBound, getPreferredHeight, getPreferredWidth, paint, setTreePane
 

Constructor Detail

LabelPainter

protected LabelPainter()
Method Detail

getAttributes

public abstract String[] getAttributes()

setupAttributes

public abstract void setupAttributes(Tree tree)

setDisplayAttribute

public abstract void setDisplayAttribute(String displayAttribute)

getForeground

public Paint getForeground()

getBackground

public Paint getBackground()

getBorderPaint

public Paint getBorderPaint()

getBorderStroke

public Stroke getBorderStroke()

getFont

public Font getFont()

getNumberFormat

public NumberFormat getNumberFormat()

isVisible

public boolean isVisible()
Description copied from interface: Painter
If this is false then the painter should not be displayed.

Returns:
is visible?

setBackground

public void setBackground(Paint background)

setBorder

public void setBorder(Paint borderPaint,
                      Stroke borderStroke)

setFont

public void setFont(Font font)

setForeground

public void setForeground(Paint foreground)

setNumberFormat

public void setNumberFormat(NumberFormat numberFormat)

setVisible

public void setVisible(boolean visible)