public class KahinaPerspective
extends java.lang.Object
Main functionality is to represent sets of configurations.
A KahinaWindowManager
can build a Kahina environment or re-arrange it
according to the instructions contained in a perspective.
It is the task of the KahinaWindowManager
to react to user-imposed changes
of display options and window layout by changing the corresponding setting
in the current perspective.
A perspective defines one of the important parts of an application profile, and is therefore usually persistent across sessions.
Constructor and Description |
---|
KahinaPerspective(java.lang.String appID,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
KahinaPerspective |
copy() |
void |
disposeWindow(int winID)
Removes a window from the perspective.
|
boolean |
equals(java.lang.Object o)
Perspective equality is decided by their name only!
|
org.w3c.dom.Element |
exportXML(org.w3c.dom.Document dom) |
static KahinaPerspective |
generateDefaultPerspective(java.util.Map<java.lang.String,KahinaView<? extends KahinaObject>> nameToView) |
java.lang.String |
getAppID() |
KahinaArrangement |
getArrangement() |
KahinaViewConfiguration |
getConfiguration(int viewID) |
java.lang.String |
getName() |
static KahinaPerspective |
importXML(org.w3c.dom.Element topEl) |
boolean |
isVisible(int viewID) |
void |
setConfiguration(int viewID,
KahinaViewConfiguration conf) |
void |
setName(java.lang.String name) |
void |
setVisibility(int viewID,
boolean vis) |
void |
toggleVisibility(int viewID) |
public KahinaPerspective(java.lang.String appID, java.lang.String name)
public KahinaPerspective copy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static KahinaPerspective generateDefaultPerspective(java.util.Map<java.lang.String,KahinaView<? extends KahinaObject>> nameToView)
public static KahinaPerspective importXML(org.w3c.dom.Element topEl)
public void disposeWindow(int winID)
winID
- the ID of the window to be removedpublic org.w3c.dom.Element exportXML(org.w3c.dom.Document dom)
public KahinaViewConfiguration getConfiguration(int viewID)
public void setConfiguration(int viewID, KahinaViewConfiguration conf)
public java.lang.String getAppID()
public java.lang.String getName()
public void setName(java.lang.String name)
public KahinaArrangement getArrangement()
public void setVisibility(int viewID, boolean vis)
public void toggleVisibility(int viewID)
public boolean isVisible(int viewID)