|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
jsynoptic.plugins.java3d.tree.AbstractNode
public abstract class AbstractNode
A tree node to hold a SceneGraph object and provide dedicated feature
| Field Summary | |
|---|---|
protected java.lang.String |
_name
This node name |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
protected |
AbstractNode(Tree tree,
java.lang.Object graphObject,
boolean getChildren)
|
| Method Summary | |
|---|---|
static void |
addResource(java.lang.String className,
javax.swing.Icon icon,
java.lang.String description)
Add resources to display in the tree a scene graph object |
static void |
addResources(java.lang.String className,
java.lang.String id)
Add resources to display in the tree a scene graph object The loaded resources are the icon and the description |
protected AbstractNode |
createNode(java.lang.Object graphObject)
|
boolean |
getAllowsChildren()
|
int |
getChildCount()
|
protected abstract java.lang.Class<?> |
getChildrenNodeClass(java.lang.Object sceneGraphObject)
According to a child scene graph object, returns the class of the Node to hold it in the Tree |
static java.lang.String |
getDescription(java.lang.Object graphObject)
Get a node description according to the class name |
java.lang.Object |
getGraphObject()
|
static javax.swing.Icon |
getIcon(java.lang.Object graphObject)
Get a node icon according to the graph object class name |
java.lang.String |
getName()
|
Node |
getOwner()
Get the J3D Node owner of this scene graph object |
protected abstract void |
getSceneGraphChildren(java.util.ArrayList<java.lang.Object> list)
Get the list of children of this scene graph object |
Tree |
getTree()
|
void |
refresh()
|
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, 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, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _name
| Constructor Detail |
|---|
protected AbstractNode(Tree tree,
java.lang.Object graphObject,
boolean getChildren)
graphObject - getChildren - | Method Detail |
|---|
public static void addResources(java.lang.String className,
java.lang.String id)
className - scene graph object class nameid - the key to look for the resources
public static void addResource(java.lang.String className,
javax.swing.Icon icon,
java.lang.String description)
className - scene graph object class nameicon - the icon to displaydescription - the description to displaypublic static java.lang.String getDescription(java.lang.Object graphObject)
public static javax.swing.Icon getIcon(java.lang.Object graphObject)
public java.lang.String getName()
protected abstract void getSceneGraphChildren(java.util.ArrayList<java.lang.Object> list)
list - the list to fill with the scene graph childrenprotected abstract java.lang.Class<?> getChildrenNodeClass(java.lang.Object sceneGraphObject)
sceneGraphObject - a child object of this Node scene graph object
createNodepublic void refresh()
protected AbstractNode createNode(java.lang.Object graphObject)
public boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class javax.swing.tree.DefaultMutableTreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class javax.swing.tree.DefaultMutableTreeNodepublic Tree getTree()
public java.lang.Object getGraphObject()
public Node getOwner()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||