public class KahinaArrangement
extends java.lang.Object
This class represents the arrangement, size and position of all the windows in a Kahina perspective. It can be used as an instruction package for a KahinaWindowManager how to arrange and combine view windows. Manipulating this does NOT directly affect window configuration, an arrangement needs to be processed by the KahinaWindowManager.
Arrangements can be stored and restored as parts of profiles for persistence.
Modifier and Type | Field and Description |
---|---|
static boolean |
VERBOSE |
Constructor and Description |
---|
KahinaArrangement() |
Modifier and Type | Method and Description |
---|---|
void |
addWindow(int winID) |
void |
bindWindow(int windowID,
java.lang.String binding) |
KahinaArrangement |
copy() |
void |
disposeWindow(int winID)
Removes all the data for some window, only for internal use.
|
org.w3c.dom.Element |
exportXML(org.w3c.dom.Document dom) |
java.util.List<java.lang.Integer> |
getAllWindows() |
java.lang.String |
getBindingForWinID(int winID) |
java.util.Set<java.lang.Integer> |
getContentWindows() |
java.util.Set<java.lang.Integer> |
getContentWindowsWithoutMainWindow() |
int |
getEmbeddingWindowID(int windowID) |
int |
getHeight(int windowID) |
int |
getMainWindowID() |
int |
getPrimaryWinIDForName(java.lang.String name) |
double |
getResizeWeight(int winID) |
java.lang.String |
getTitle(int windowID) |
java.util.Set<java.lang.Integer> |
getTopLevelWindows() |
java.util.Set<java.lang.Integer> |
getTopLevelWindowsWithoutMainWindow() |
int |
getWidth(int windowID) |
int |
getWindowType(int windowID) |
int |
getXPos(int windowID) |
int |
getYPos(int windowID) |
boolean |
hasBorder(int viewID) |
static KahinaArrangement |
importXML(org.w3c.dom.Element topEl) |
boolean |
isScrollable(int viewID) |
void |
setBorder(int viewID,
boolean bor) |
void |
setEmbeddingWindowID(int windowID,
int embeddingID) |
void |
setHeight(int windowID,
int h) |
void |
setMainWindowID(int mainWindowID) |
void |
setPrimaryWindow(java.lang.String binding,
int winID) |
void |
setResizeWeight(int windowID,
double resizeWeight) |
void |
setScrollable(int viewID,
boolean value) |
void |
setSize(int windowID,
int w,
int h) |
void |
setTitle(int windowID,
java.lang.String t) |
void |
setWidth(int windowID,
int w) |
void |
setWindowType(int windowID,
int type)
Sets the window type for some windowID.
|
void |
setXPos(int windowID,
int pos) |
void |
setYPos(int windowID,
int pos) |
public KahinaArrangement copy()
public void addWindow(int winID)
public void setXPos(int windowID, int pos)
public void setYPos(int windowID, int pos)
public void setHeight(int windowID, int h)
public void setWidth(int windowID, int w)
public void setSize(int windowID, int w, int h)
public void setResizeWeight(int windowID, double resizeWeight)
public void setTitle(int windowID, java.lang.String t)
public void setWindowType(int windowID, int type)
windowID
- type
- public void setBorder(int viewID, boolean bor)
public void setScrollable(int viewID, boolean value)
public void setEmbeddingWindowID(int windowID, int embeddingID)
public void setPrimaryWindow(java.lang.String binding, int winID)
public void bindWindow(int windowID, java.lang.String binding)
public void disposeWindow(int winID)
winID
- the ID of the window to be removedpublic int getXPos(int windowID)
public int getYPos(int windowID)
public int getHeight(int windowID)
public int getWidth(int windowID)
public double getResizeWeight(int winID)
public java.lang.String getTitle(int windowID)
public int getWindowType(int windowID)
public boolean hasBorder(int viewID)
public boolean isScrollable(int viewID)
public int getEmbeddingWindowID(int windowID)
public java.lang.String getBindingForWinID(int winID)
public int getPrimaryWinIDForName(java.lang.String name)
public java.util.List<java.lang.Integer> getAllWindows()
public java.util.Set<java.lang.Integer> getTopLevelWindows()
public java.util.Set<java.lang.Integer> getTopLevelWindowsWithoutMainWindow()
public java.util.Set<java.lang.Integer> getContentWindows()
public java.util.Set<java.lang.Integer> getContentWindowsWithoutMainWindow()
public static KahinaArrangement importXML(org.w3c.dom.Element topEl)
public org.w3c.dom.Element exportXML(org.w3c.dom.Document dom)
public void setMainWindowID(int mainWindowID)
public int getMainWindowID()