org.argouml.ui.explorer
Class ExplorerPerspective
java.lang.Object
org.argouml.ui.explorer.ExplorerPerspective
- public class ExplorerPerspective
- extends 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
rules
private List rules
name
private String name
ExplorerPerspective
public ExplorerPerspective(String newName)
- Creates a new instance of ExplorerPerspective.
- Parameters:
newName
- the to be localized name for the perspective
addRule
public void addRule(PerspectiveRule rule)
- Parameters:
rule
- the rule to add
removeRule
public void removeRule(PerspectiveRule rule)
- Parameters:
rule
- the rule to remove
getRulesArray
public Object[] getRulesArray()
- Returns:
- the array with all the rules
getList
public List getList()
- Returns:
- the List with all the rules
toString
public String toString()
- See Also:
Object.toString()
makeNamedClone
public ExplorerPerspective makeNamedClone(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(String theNewName)
- Parameters:
theNewName
- the new name for the ExplorerPerspective