com.jstatcom.component
Class TopFrameSettings

java.lang.Object
  extended by com.jstatcom.component.TopFrameSettings
All Implemented Interfaces:
SettingsElement

public final class TopFrameSettings
extends java.lang.Object
implements SettingsElement

Holds all settings of the TopFrame class that should be stored between application runs.

Author:
Markus Kraetzig

Field Summary
static javolution.xml.XmlFormat<TopFrameSettings> TopFrameSettings_XML
          XML format field for (de)serialization.
 
Constructor Summary
TopFrameSettings()
           
 
Method Summary
 JSCNArray getFrameBounds()
          Gets the 4x1 array holding location and size of the frame.
 JSCInt getIsOutputOn()
          Gets JSCInt indicating whether output is on.
 JSCInt getSplitLocation()
          Gets the position of the splitpane divider.
 void setElement()
          Implementations of this method should use the information stored in this SettingsElement to set the state of components at runtime.
 void setFrameBounds(JSCNArray frameBounds)
          Sets the 4x1 array holding location and size of the frame.
 void setIsOutputOn(JSCInt isOutputOn)
          Sets whether output is on.
 void setSplitLocation(JSCInt splitLocation)
          Sets the position of the splitpane divider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TopFrameSettings_XML

public static final javolution.xml.XmlFormat<TopFrameSettings> TopFrameSettings_XML
XML format field for (de)serialization.

Constructor Detail

TopFrameSettings

public TopFrameSettings()
Method Detail

setElement

public void setElement()
Description copied from interface: SettingsElement
Implementations of this method should use the information stored in this SettingsElement to set the state of components at runtime. For example, one implementation of this interface, the ProjectTreeNode, adds itself to the ProjectTree when this method is called. Before that, it has been restored from its serialization in an XML file.

Specified by:
setElement in interface SettingsElement

getFrameBounds

public JSCNArray getFrameBounds()
Gets the 4x1 array holding location and size of the frame.

Returns:
bounds array

setFrameBounds

public void setFrameBounds(JSCNArray frameBounds)
Sets the 4x1 array holding location and size of the frame.

Parameters:
frameBounds -
Throws:
java.lang.IllegalArgumentException - if (frameBounds == null)

getSplitLocation

public JSCInt getSplitLocation()
Gets the position of the splitpane divider.

Returns:
position of divider

setSplitLocation

public void setSplitLocation(JSCInt splitLocation)
Sets the position of the splitpane divider.

Parameters:
splitLocation - as integer
Throws:
java.lang.IllegalArgumentException - if (splitLocation == null)

getIsOutputOn

public JSCInt getIsOutputOn()
Gets JSCInt indicating whether output is on.

Returns:
JSCInt

setIsOutputOn

public void setIsOutputOn(JSCInt isOutputOn)
Sets whether output is on.

Parameters:
isOutputOn - as integer
Throws:
java.lang.IllegalArgumentException - if (isOutputOn == null)