org.argouml.ui.explorer
Class ExplorerPerspective

java.lang.Object
  extended byorg.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

Field Summary
private  String name
           
private  List rules
           
 
Constructor Summary
ExplorerPerspective(String newName)
          Creates a new instance of ExplorerPerspective.
 
Method Summary
 void addRule(PerspectiveRule rule)
           
 List getList()
           
 Object[] getRulesArray()
           
 ExplorerPerspective makeNamedClone(String newName)
          Make a clone of this ExplorerPerspective with a different given name.
 void removeRule(PerspectiveRule rule)
           
protected  void setName(String theNewName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rules

private List rules

name

private String name
Constructor Detail

ExplorerPerspective

public ExplorerPerspective(String newName)
Creates a new instance of ExplorerPerspective.

Parameters:
newName - the to be localized name for the perspective
Method Detail

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


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook