adavid.awt
Interface TNodeRenderer

All Known Implementing Classes:
DefaultTNodeRenderer, ImageTNodeRenderer, PackageViewer

public interface TNodeRenderer


Method Summary
 int getHeight()
           
 int getWidth()
           
 void paint(TNode node, java.awt.Graphics g, boolean expanded, boolean selected, boolean leaf)
          called by TNode.paint(Graphics) when the tree node needs to be repainted.
 

Method Detail

paint

public void paint(TNode node,
                  java.awt.Graphics g,
                  boolean expanded,
                  boolean selected,
                  boolean leaf)
called by TNode.paint(Graphics) when the tree node needs to be repainted.
Parameters:
node - the node to be repainted
g - Graphics object to repaint the node
expanded - state of the node
selected - state of the node
leaf - nature of the node

getHeight

public int getHeight()
Returns:
the height of the painted zone, icon or whatever, not the whole tree node!

getWidth

public int getWidth()
Returns:
the width of the painted zone, icon or whatever, not the whole tree node!