|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.vergil.tree.EntityTreeModel
ptolemy.vergil.tree.ClassAndEntityTreeModel
ptolemy.vergil.tree.FullTreeModel
public class FullTreeModel
A tree model for Ptolemy II models. Nodes in this tree contain the following child elements, in this order:
Red (johnr) |
Red (eal) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.vergil.tree.EntityTreeModel |
---|
EntityTreeModel.TreeUpdateListener |
Field Summary |
---|
Fields inherited from class ptolemy.vergil.tree.EntityTreeModel |
---|
_root |
Constructor Summary | |
---|---|
FullTreeModel(CompositeEntity root)
Create a new tree model with the specified root. |
Method Summary | |
---|---|
protected java.util.List |
_attributes(java.lang.Object object)
Return the list of attributes, or an empty list if there are none. |
protected java.util.List |
_ports(java.lang.Object object)
Return the list of ports, or an empty list if there are none. |
protected java.util.List |
_relations(java.lang.Object object)
Return the list of relations, or an empty list if there are none. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Get the child of the given parent at the given index. |
int |
getChildCount(java.lang.Object parent)
Return the number of children of the given parent. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Return the index of the given child within the given parent. |
boolean |
isLeaf(java.lang.Object object)
Return true if the object is a leaf node. |
Methods inherited from class ptolemy.vergil.tree.ClassAndEntityTreeModel |
---|
_classes |
Methods inherited from class ptolemy.vergil.tree.EntityTreeModel |
---|
addTreeModelListener, getRoot, removeTreeModelListener, setRoot, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullTreeModel(CompositeEntity root)
root
- The root of the tree.Method Detail |
---|
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
getChild
in class ClassAndEntityTreeModel
parent
- A node in the tree.index
- The index of the desired child.
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
getChildCount
in class ClassAndEntityTreeModel
parent
- A parent node.
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
getIndexOfChild
in class ClassAndEntityTreeModel
parent
- The parent.child
- The child.
public boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class ClassAndEntityTreeModel
object
- The object.
protected java.util.List _attributes(java.lang.Object object)
object
- The object.
protected java.util.List _ports(java.lang.Object object)
object
- The object.
protected java.util.List _relations(java.lang.Object object)
object
- The object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |