org.argouml.ui
Class NavPerspective
java.lang.Object
org.argouml.ui.PerspectiveSupport
org.argouml.ui.TreeModelSupport
org.argouml.ui.TreeModelComposite
org.argouml.ui.NavPerspective
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeModel
Deprecated. since 0.15.2 replace with ExplorerPerspective,
remove in 0.15.3
- public class NavPerspective
- extends TreeModelComposite
- implements java.io.Serializable, java.lang.Cloneable
This class represents 3 concepts, although it should only represent
a navigation perspective, TODO: separate.
This class represents:
- a navigation tree model / perspective (which is a collection of GoRules)
- See Also:
- Serialized Form
Constructor Summary |
NavPerspective(java.lang.String name)
Deprecated. needs documenting |
Method Summary |
java.lang.Object |
clone()
Deprecated. required for the nav config dialog |
private int |
getHelperIndex(AbstractGoRule rule,
java.lang.Object parent,
java.lang.Object child)
Deprecated. I think this only gets called during argo initialisation |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Deprecated. Will return the first found child object in the navtree. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, removeTreeModelListener |
NavPerspective
public NavPerspective(java.lang.String name)
- Deprecated.
- needs documenting
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
- Deprecated.
- Will return the first found child object in the navtree. The
child can be a TreeNode in case the super will be called to
handle this. In all other cases we try to handle it in a
recursive way.
TODO this does not work yet since the implementation of getChildren of
AbstractGoRule only takes one level into account.
- Specified by:
getIndexOfChild
in interface javax.swing.tree.TreeModel
- Overrides:
getIndexOfChild
in class TreeModelComposite
- See Also:
TreeModel.getIndexOfChild(java.lang.Object,
java.lang.Object)
getHelperIndex
private int getHelperIndex(AbstractGoRule rule,
java.lang.Object parent,
java.lang.Object child)
- Deprecated.
- I think this only gets called during argo initialisation
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Deprecated.
- required for the nav config dialog
- Throws:
java.lang.CloneNotSupportedException