JClass DesktopViews 6.3.0 API
Documentation

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

Constructor Summary
DefaultTreeIconRenderer()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeIconRenderer

public DefaultTreeIconRenderer()
Method Detail

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 rendered
node - the node of the treemodel being rendered
value - the value of the node being rendered
object_class - the class of the value being rendered if know. null otherwise.
is_leaf - is the node a leaf or not
is_expanded - whether the node has been expanded or not
plaf_icon - the icon that the plaf would would like to draw
Returns:
icon to render

Copyright © 2004 Quest Software Inc..
All rights reserved.