com.sas.swing.models
Class NodeIconCellRenderer
com.sas.swing.models.NodeIconCellRenderer
All Implemented Interfaces: java.awt.image.ImageObserver , java.awt.MenuContainer , java.io.Serializable , javax.accessibility.Accessible , javax.swing.SwingConstants , javax.swing.tree.TreeCellRenderer
public class NodeIconCellRenderer
See Also: Serialized Form
NodeIconCellRenderer
public NodeIconCellRenderer ()
getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent (javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Configures the renderer based on the passed in components.
The value is set from messaging the tree with
convertValueToText
, which ultimately invokes
toString
on value
.
The foreground color is set based on the selection and the icon
is set based on on leaf and expanded.
Specified by: getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
Overrides: getTreeCellRendererComponent
in class javax.swing.tree.DefaultTreeCellRenderer
Copyright © 2009 SAS Institute Inc. All Rights Reserved.