org.argouml.ui.explorer
Class ExplorerPerspective
java.lang.Object
org.argouml.ui.explorer.ExplorerPerspective
public class ExplorerPerspective
- extends java.lang.Object
Represents a perspective (or view) of the uml model for display in the
explorer.
This class replaces the old NavPerspective class. This is much simpler.
The rules in the perspective generate child nodes for any given parent
node in the explorer tree view. Those nodes are then stored as user objects
in the ExplorerTreeModel for efficient rendering.
- Since:
- 0.15.2, Created on 27 September 2003, 09:32
|
Constructor Summary |
ExplorerPerspective(java.lang.String newName)
Creates a new instance of ExplorerPerspective. |
|
Method Summary |
void |
addRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
|
java.util.List<org.argouml.ui.explorer.rules.PerspectiveRule> |
getList()
|
java.lang.Object[] |
getRulesArray()
|
ExplorerPerspective |
makeNamedClone(java.lang.String newName)
Make a clone of this ExplorerPerspective with a different given name. |
void |
removeRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
|
protected void |
setName(java.lang.String theNewName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExplorerPerspective
public ExplorerPerspective(java.lang.String newName)
- Creates a new instance of ExplorerPerspective.
- Parameters:
newName - the to be localized name for the perspective
addRule
public void addRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
- Parameters:
rule - the rule to add
removeRule
public void removeRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
- Parameters:
rule - the rule to remove
getRulesArray
public java.lang.Object[] getRulesArray()
- Returns:
- the array with all the rules
getList
public java.util.List<org.argouml.ui.explorer.rules.PerspectiveRule> getList()
- Returns:
- the List with all the rules
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
makeNamedClone
public ExplorerPerspective makeNamedClone(java.lang.String newName)
- Make a clone of this ExplorerPerspective with a different given name.
- Parameters:
newName - the given name
- Returns:
- the new ExplorerPerspective
setName
protected void setName(java.lang.String theNewName)
- Parameters:
theNewName - the new name for the ExplorerPerspective