net.sf.genuine.organizer.internal
Class Size

java.lang.Object
  extended bynet.sf.genuine.organizer.internal.Size

public class Size
extends java.lang.Object

Encapsulation of a size declaration in an configuration file. Additionally applies the size values to given JDialog or JInternalFrame objects.

A Size object either has explicit width and height in pixels or it is declared to take all space that is available.


Constructor Summary
Size(org.jdom.Element sizeElement)
          Initialization by XML element.
 
Method Summary
 void applySize(javax.swing.JInternalFrame frame)
          Applies the size values to the given internal frame.
 void applySize(java.awt.Window window)
          Applies the size values to the given window.
(package private)  int getHeight()
          Returns the height.
(package private)  int getWidth()
          Returns the width.
(package private)  boolean isMaximized()
          Returns true if size is declared to take all available space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size

public Size(org.jdom.Element sizeElement)
     throws ConfigurationException
Initialization by XML element. See application.dtd file.

Method Detail

isMaximized

boolean isMaximized()
Returns true if size is declared to take all available space.


getHeight

int getHeight()
Returns the height. Valid only if maximized is not set to true.


getWidth

int getWidth()
Returns the width. Valid only if maximized is not set to true.


applySize

public void applySize(javax.swing.JInternalFrame frame)
Applies the size values to the given internal frame.


applySize

public void applySize(java.awt.Window window)
Applies the size values to the given window.