net.sf.doolin.gui.window.support
Class WindowSize

java.lang.Object
  extended by net.sf.doolin.gui.window.support.WindowSize

public class WindowSize
extends Object

Window size specification.


Constructor Summary
WindowSize()
           
 
Method Summary
 int getHeight()
          Gets the height.
 int getWidth()
          Gets the width.
 boolean isCentered()
          Checks if the window must be centred on the screen
 boolean isMaximized()
          Checks if is maximized.
 boolean isPack()
          Checks if is pack.
 boolean isSaveInPrefs()
          Checks if is save in prefs.
 void setCentered(boolean centered)
          Sets if the window must be centred on the screen
 void setHeight(int height)
          Sets the height.
 void setMaximized(boolean maximized)
          Sets the maximized.
 void setPack(boolean pack)
          Sets the pack.
 void setSaveInPrefs(boolean saveInPrefs)
          Sets the save in prefs.
 void setWidth(int width)
          Sets the width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowSize

public WindowSize()
Method Detail

getHeight

public int getHeight()
Gets the height.

Returns:
the height

getWidth

public int getWidth()
Gets the width.

Returns:
the width

isCentered

public boolean isCentered()
Checks if the window must be centred on the screen

Returns:
true if the window must be centred on the screen

isMaximized

public boolean isMaximized()
Checks if is maximized.

Returns:
true, if is maximized

isPack

public boolean isPack()
Checks if is pack.

Returns:
true, if is pack

isSaveInPrefs

public boolean isSaveInPrefs()
Checks if is save in prefs.

Returns:
true, if is save in prefs

setCentered

public void setCentered(boolean centered)
Sets if the window must be centred on the screen

Parameters:
centered - true if the window must be centred on the screen

setHeight

public void setHeight(int height)
Sets the height.

Parameters:
height - the new height

setMaximized

public void setMaximized(boolean maximized)
Sets the maximized.

Parameters:
maximized - the new maximized

setPack

public void setPack(boolean pack)
Sets the pack.

Parameters:
pack - the new pack

setSaveInPrefs

public void setSaveInPrefs(boolean saveInPrefs)
Sets the save in prefs.

Parameters:
saveInPrefs - the new save in prefs

setWidth

public void setWidth(int width)
Sets the width.

Parameters:
width - the new width


Copyright © 2011. All Rights Reserved.