antsnest.level.defaults
Class ProjectTreeRenderer

java.lang.Object
  extended by antsnest.level.defaults.ProjectTreeRenderer
All Implemented Interfaces:
TreeCellRenderer

public class ProjectTreeRenderer
extends Object
implements TreeCellRenderer

Responsible for saying how to render a cell in the project tree

Author:
Chris Clohosy

Constructor Summary
ProjectTreeRenderer()
           
 
Method Summary
 Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          Actually constructs the component to display in the tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectTreeRenderer

public ProjectTreeRenderer()
Method Detail

getTreeCellRendererComponent

public Component getTreeCellRendererComponent(JTree tree,
                                              Object value,
                                              boolean selected,
                                              boolean expanded,
                                              boolean leaf,
                                              int row,
                                              boolean hasFocus)
Actually constructs the component to display in the tree

Specified by:
getTreeCellRendererComponent in interface TreeCellRenderer
Parameters:
tree - the tree this component will go into
value - the object the cell is representing
selected - whether the cell is currently selected
expanded - whether the cell is currently expanded
leaf - whether the cell is a leaf cell
row - what row the cell is in
hasFocus - whether the cell currently has the focus
Returns:
a Component, the component to display