jebl.gui.trees.treeviewer_dev.painters
Class NodePainter

java.lang.Object
  extended by jebl.gui.trees.treeviewer_dev.painters.AbstractPainter<Node>
      extended by jebl.gui.trees.treeviewer_dev.painters.NodePainter
All Implemented Interfaces:
Painter<Node>
Direct Known Subclasses:
NodeBarPainter, NodeShapePainter

public abstract class NodePainter
extends AbstractPainter<Node>

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 NodePainter()
           
 
Method Summary
 Paint getBackground()
           
 Paint getBorderPaint()
           
 Stroke getBorderStroke()
           
 Paint getForeground()
           
 Stroke getStroke()
           
 boolean isVisible()
          If this is false then the painter should not be displayed.
 void setBackground(Paint background)
           
 void setBorder(Paint borderPaint, Stroke borderStroke)
           
 void setForeground(Paint foreground)
           
 void setStroke(Stroke stroke)
           
 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

NodePainter

protected NodePainter()
Method Detail

getStroke

public Stroke getStroke()

getForeground

public Paint getForeground()

getBackground

public Paint getBackground()

getBorderPaint

public Paint getBorderPaint()

getBorderStroke

public Stroke getBorderStroke()

isVisible

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

Returns:
is visible?

setStroke

public void setStroke(Stroke stroke)

setBackground

public void setBackground(Paint background)

setBorder

public void setBorder(Paint borderPaint,
                      Stroke borderStroke)

setForeground

public void setForeground(Paint foreground)

setVisible

public void setVisible(boolean visible)