|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
org.jgraph.example.IconExample.CustomCell
public class IconExample.CustomCell
CustomCell that allows user to define an icon and a description for the graph vertex.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
IconExample.CustomCell(javax.swing.ImageIcon icon,
java.lang.String description)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
javax.swing.ImageIcon |
getIcon()
|
void |
setUserObject(java.lang.Object obj)
Sets the description on a cell. |
java.lang.String |
toString()
Return the description of the cell so that it will be the initial value of the in-graph editor. |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
---|
addPort, addPort, addPort, changeAttributes, clone, getAttributes, getChildren, setAttributes |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IconExample.CustomCell(javax.swing.ImageIcon icon, java.lang.String description)
Method Detail |
---|
public java.lang.String getDescription()
public javax.swing.ImageIcon getIcon()
public void setUserObject(java.lang.Object obj)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |