com.jstatcom.component
Class TopFrameSettings
- java.lang.Object
-
- com.jstatcom.component.TopFrameSettings
-
- All Implemented Interfaces:
- SettingsElement
public final class TopFrameSettings extends java.lang.Object implements SettingsElement
Holds all settings of theTopFrameclass that should be stored between application runs.
-
-
Field Summary
Fields Modifier and Type Field and Description static XmlFormat<TopFrameSettings>TopFrameSettings_XMLXML format field for (de)serialization.
-
Constructor Summary
Constructors Constructor and Description TopFrameSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JSCNArraygetFrameBounds()Gets the 4x1 array holding location and size of the frame.JSCIntgetIsOutputOn()GetsJSCIntindicating whether output is on.JSCIntgetSplitLocation()Gets the position of the splitpane divider.voidsetElement()Implementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime.voidsetFrameBounds(JSCNArray frameBounds)Sets the 4x1 array holding location and size of the frame.voidsetIsOutputOn(JSCInt isOutputOn)Sets whether output is on.voidsetSplitLocation(JSCInt splitLocation)Sets the position of the splitpane divider.
-
-
-
Field Detail
-
TopFrameSettings_XML
public static final XmlFormat<TopFrameSettings> TopFrameSettings_XML
XML format field for (de)serialization.
-
-
Method Detail
-
setElement
public void setElement()
Description copied from interface:SettingsElementImplementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime. For example, one implementation of this interface, theProjectTreeNode, adds itself to theProjectTreewhen this method is called. Before that, it has been restored from its serialization in an XML file.- Specified by:
setElementin interfaceSettingsElement
-
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()
GetsJSCIntindicating 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)
-
-
DMelt 3.0 © DataMelt by jWork.ORG