net.sf.borg.ui
Class ViewSize

java.lang.Object
  extended by net.sf.borg.ui.ViewSize

 class ViewSize
extends Object

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

ViewSize

public ViewSize()
Instantiates a ViewSize

Method Detail

fromString

public static ViewSize fromString(String s)
creates a ViewSize instance From a string.

Parameters:
s - the string
Returns:
the ViewSize instance

getDock

public ViewSize.DockType getDock()
get dock/undock flag

Returns:

setDock

public void setDock(ViewSize.DockType dock)
set dock/undock flag

Parameters:
dock -

getHeight

public int getHeight()
Gets the height.

Returns:
the height

getWidth

public int getWidth()
Gets the width.

Returns:
the width

getX

public int getX()
Gets the x.

Returns:
the x

getY

public int getY()
Gets the y position.

Returns:
the y position

isMaximized

public boolean isMaximized()
Checks if is maximized.

Returns:
true, if is maximized

setHeight

public void setHeight(int height)
Sets the height.

Parameters:
height - the new height

setMaximized

public void setMaximized(boolean maximized)
Sets the maximized flag.

Parameters:
maximized - the new maximized value

setWidth

public void setWidth(int width)
Sets the width.

Parameters:
width - the new width

setX

public void setX(int x)
Sets the x position.

Parameters:
x - the new x position

setY

public void setY(int y)
Sets the y.

Parameters:
y - the new y

toString

public String toString()
get the ViewSize data in a string

Overrides:
toString in class Object
Returns:
the string


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae