|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.ui.ViewSize
class ViewSize
ViewSize contains the data associated with a windows's position, size, and maximization state It also contains the logic to convert this data to and from a String so that it can be stored.
| Nested Class Summary | |
|---|---|
static class |
ViewSize.DockType
DockType stores the various dock statuses for a view - always DOCK, always UNDOCK, or NOT_SET - whoch means to use the default preference |
| Constructor Summary | |
|---|---|
ViewSize()
Instantiates a ViewSize |
|
| Method Summary | |
|---|---|
static ViewSize |
fromString(String s)
creates a ViewSize instance From a string. |
ViewSize.DockType |
getDock()
get dock/undock flag |
int |
getHeight()
Gets the height. |
int |
getWidth()
Gets the width. |
int |
getX()
Gets the x. |
int |
getY()
Gets the y position. |
boolean |
isMaximized()
Checks if is maximized. |
void |
setDock(ViewSize.DockType dock)
set dock/undock flag |
void |
setHeight(int height)
Sets the height. |
void |
setMaximized(boolean maximized)
Sets the maximized flag. |
void |
setWidth(int width)
Sets the width. |
void |
setX(int x)
Sets the x position. |
void |
setY(int y)
Sets the y. |
String |
toString()
get the ViewSize data in a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ViewSize()
| Method Detail |
|---|
public static ViewSize fromString(String s)
s - the string
public ViewSize.DockType getDock()
public void setDock(ViewSize.DockType dock)
dock - public int getHeight()
public int getWidth()
public int getX()
public int getY()
public boolean isMaximized()
public void setHeight(int height)
height - the new heightpublic void setMaximized(boolean maximized)
maximized - the new maximized valuepublic void setWidth(int width)
width - the new widthpublic void setX(int x)
x - the new x positionpublic void setY(int y)
y - the new ypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||