antsnest.level.defaults
Class ProjectTreeRenderer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectTreeRenderer
public ProjectTreeRenderer()
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 intovalue - the object the cell is representingselected - whether the cell is currently selectedexpanded - whether the cell is currently expandedleaf - whether the cell is a leaf cellrow - what row the cell is inhasFocus - whether the cell currently has the focus
- Returns:
- a Component, the component to display