com.klg.jclass.util.treetable
Class DefaultTreeIconRenderer
java.lang.Object
|
+--com.klg.jclass.util.treetable.DefaultTreeIconRenderer
- All Implemented Interfaces:
- JCTreeIconRenderer, Serializable
- public class DefaultTreeIconRenderer
- extends Object
- implements JCTreeIconRenderer, Serializable
Simple icon renderer for the default handling of icons in trees.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTreeIconRenderer
public DefaultTreeIconRenderer()
getNodeIcon
public Icon getNodeIcon(TreeModel treemodel,
Object node,
Object value,
Class object_class,
boolean is_leaf,
boolean is_expanded,
Icon plaf_icon)
- Returns the icon to render to the right of the specified value. This
simple implementation returns the
plaf_icon
passed to it.
- Specified by:
getNodeIcon
in interface JCTreeIconRenderer
- Parameters:
treemodel
- the treemodel being renderednode
- the node of the treemodel being renderedvalue
- the value of the node being renderedobject_class
- the class of the value being rendered if know.
null otherwise.is_leaf
- is the node a leaf or notis_expanded
- whether the node has been expanded or notplaf_icon
- the icon that the plaf would would like to draw
- Returns:
- icon to render