|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.models.ModelHierarchy
public abstract class ModelHierarchy
Title:
Description:
Copyright: Copyright (c) 2004
Company:
Constructor Summary | |
---|---|
ModelHierarchy()
|
Method Summary | |
---|---|
java.lang.Object |
addHierarchyObject(java.lang.Object child,
java.lang.Object parent,
java.lang.String label)
Add an object to the hierarchy of objects. |
java.lang.Object |
addHierarchyObject(java.lang.Object child,
java.lang.String label)
Add an object to the hierarchy of objects. |
boolean |
copyFromHierarchy(ModelHierarchy org)
|
java.util.Collection |
getAllObjects()
This method returns a collection of objects representing the nodes in this hierarchy. |
java.util.Collection |
getChildren(java.lang.Object parent)
This method returns a collection of objects representing the children of the given parent object, or null if the parent object does not exist. |
java.lang.Object |
getParent(java.lang.Object child)
|
java.util.Collection |
getRoots()
This method returns a collection of the root elements of the hierarchy. |
java.lang.Object |
getSelectedNode()
Return the user object of the selected node in the JTree visualisation. |
javax.swing.JComponent |
getTreeVisualization()
Returns the visualization of the stored hierarchy |
protected abstract void |
selectionChanged(java.lang.Object selectedObject)
This method is called each time the user changes the selection in the list. |
void |
setSelectedNode(java.lang.Object selectObject)
Selects the node in the tree that points to the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelHierarchy()
Method Detail |
---|
public java.lang.Object addHierarchyObject(java.lang.Object child, java.lang.String label)
child
- Object to add as a childlabel
- String representing the label of the object in the tree
public java.lang.Object addHierarchyObject(java.lang.Object child, java.lang.Object parent, java.lang.String label)
child
- Object to add as a childparent
- Object that is the required parent of the childlabel
- String representing the label of the object in the tree
public java.util.Collection getChildren(java.lang.Object parent)
parent
- Object
public java.lang.Object getParent(java.lang.Object child)
child
- Object
public java.util.Collection getRoots()
public javax.swing.JComponent getTreeVisualization()
public java.lang.Object getSelectedNode()
public void setSelectedNode(java.lang.Object selectObject)
selectObject
- the object to select.public boolean copyFromHierarchy(ModelHierarchy org)
protected abstract void selectionChanged(java.lang.Object selectedObject)
initialized
to true
selectedObject
- The object that was selected.public java.util.Collection getAllObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |