|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.hierarchy.HierarchyTreeCellRenderer
Default TreeCellRenderer to visualize elements within
HierarchyTreeModel
.
This renderer uses an alternative value to render the root graph of the graph hierarchy. Node elements will be passed unchanged to a delegate tree cell renderer.
Constructor Summary | |
HierarchyTreeCellRenderer()
Creates a new instance of HierarchyTreeCellRenderer. |
|
HierarchyTreeCellRenderer(TreeCellRenderer delegateRenderer)
Creates a new instance of HierarchyTreeCellRenderer. |
Method Summary | |
Object |
getRootValue()
Returns the value used to render the root graph of the hierarchy. |
Component |
getTreeCellRendererComponent(JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
void |
setRootValue(Object value)
Sets the value used to render the root graph of the hierarchy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HierarchyTreeCellRenderer()
DefaultTreeCellRenderer
as its delegate. Therefore nodes will be visualized
by their string representation.
public HierarchyTreeCellRenderer(TreeCellRenderer delegateRenderer)
Method Detail |
public Object getRootValue()
By default the String "Root" will be returned.
public void setRootValue(Object value)
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface TreeCellRenderer
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |