Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.borg.ui
Class ViewSize

    java.lang.Object
      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.

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

### ViewSize

    public ViewSize()

  Instantiates a ViewSize

Method Detail

### getHeight

    public int getHeight()

  Gets the height.

  Returns:
    the height

### setHeight

    public void setHeight(int height)

  Sets the height.

  Parameters:
    `height` - the new height

### isMaximized

    public boolean isMaximized()

  Checks if is maximized.

  Returns:
    true, if is maximized

### setMaximized

    public void setMaximized(boolean maximized)

  Sets the maximized flag.

  Parameters:
    `maximized` - the new maximized value

### getWidth

    public int getWidth()

  Gets the width.

  Returns:
    the width

### setWidth

    public void setWidth(int width)

  Sets the width.

  Parameters:
    `width` - the new width

### getX

    public int getX()

  Gets the x.

  Returns:
    the x

### setX

    public void setX(int x)

  Sets the x position.

  Parameters:
    `x` - the new x position

### getY

    public int getY()

  Gets the y position.

  Returns:
    the y position

### setY

    public void setY(int y)

  Sets the y.

  Parameters:
    `y` - the new y

### fromString

    public static ViewSize fromString(String s)

  creates a ViewSize instance From a string.

  Parameters:
    `s` - the string
  Returns:
    the ViewSize instance

### toString

    public String toString()

  get the ViewSize data in a string

  Overrides:
    `toString` in class `Object`
  Returns:
    the string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic