|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.ui.explorer.PerspectiveManager
public final class PerspectiveManager
Provides a model and event management for perspectives(views) of the Explorer.
This class defines the complete list of perspective rules, and knows the default perspectives and their contents.
| Method Summary | |
|---|---|
void |
addAllPerspectives(java.util.Collection<ExplorerPerspective> newPerspectives)
|
void |
addListener(PerspectiveManagerListener listener)
|
void |
addPerspective(ExplorerPerspective perspective)
|
void |
addRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
Add a rule to the list of rules. |
java.util.Collection<ExplorerPerspective> |
getDefaultPerspectives()
|
static PerspectiveManager |
getInstance()
|
java.util.List<ExplorerPerspective> |
getPerspectives()
|
java.util.Collection<org.argouml.ui.explorer.rules.PerspectiveRule> |
getRules()
|
void |
loadDefaultPerspectives()
Loads a pre-defined default set of perspectives. |
void |
loadRules()
Get the predefined rules. |
void |
loadUserPerspectives()
Tries to load user defined perspectives, if it can't it loads the (predefined) default perspectives. |
void |
removeAllPerspectives()
Remove all perspectives. |
void |
removeListener(PerspectiveManagerListener listener)
|
void |
removePerspective(ExplorerPerspective perspective)
|
void |
removeRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
Remove a rule from the list. |
void |
saveUserPerspectives()
Save the user perspectives in the ArgoUML configuration. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static PerspectiveManager getInstance()
public void addListener(PerspectiveManagerListener listener)
listener - the listener to be addedpublic void removeListener(PerspectiveManagerListener listener)
listener - the listener to be removedpublic void addPerspective(ExplorerPerspective perspective)
perspective - the perspective to be addedpublic void addAllPerspectives(java.util.Collection<ExplorerPerspective> newPerspectives)
newPerspectives - the collection of perspectives to be addedpublic void removePerspective(ExplorerPerspective perspective)
perspective - the perspective to be removedpublic void removeAllPerspectives()
public java.util.List<ExplorerPerspective> getPerspectives()
public void loadUserPerspectives()
public void loadDefaultPerspectives()
public java.util.Collection<ExplorerPerspective> getDefaultPerspectives()
public void loadRules()
This is a hard coded rules library for now, since it is quite a lot of work to get all possible rule names in "org.argouml.ui.explorer.rules" from the classpath (which would also not allow adding rules from other locations).
public void addRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
rule - the PerspectiveRule to be addedpublic void removeRule(org.argouml.ui.explorer.rules.PerspectiveRule rule)
rule - the PerspectiveRule to be removedpublic java.util.Collection<org.argouml.ui.explorer.rules.PerspectiveRule> getRules()
public void saveUserPerspectives()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |