|
||||||||||
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.
Constructor Summary | |
---|---|
ViewSize()
Instantiates a ViewSize |
Method Summary | |
---|---|
static ViewSize |
fromString(String s)
creates a ViewSize instance From a string. |
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 |
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 int getHeight()
public void setHeight(int height)
height
- the new heightpublic boolean isMaximized()
public void setMaximized(boolean maximized)
maximized
- the new maximized valuepublic int getWidth()
public void setWidth(int width)
width
- the new widthpublic int getX()
public void setX(int x)
x
- the new x positionpublic int getY()
public void setY(int y)
y
- the new ypublic static ViewSize fromString(String s)
s
- the string
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |