Package evo.search.io.entities
Class Workspace
- java.lang.Object
-
- evo.search.io.entities.Workspace
-
-
Constructor Summary
Constructors Constructor Description Workspace()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)PointgetConfigLocation()Location of the config panels window.DimensiongetConfigSize()Dimensions of the config panels window.intgetLogDividerLocation()Divider location of the log split pane (horizontal).intgetMainDividerLocation()Divider location of the main split pane (vertical).PointgetMainLocation()Location of the main forms window.DimensiongetMainSize()Dimensions of the main forms window.intgetSelectedConfiguration()Index of the configuration selected in theMainForm.inthashCode()Workspaceparse(org.dom4j.Element element)Parse a workspace from aElement.static DimensionparseDimension(org.dom4j.Element element)Parse aDimensionfrom aElement.static PointparsePoint(org.dom4j.Element element)Parse aPointfrom aElement.org.dom4j.Elementserialize()Serialize the workspace to a xmlDocument.static org.dom4j.Elementserialize(String name, Dimension dimension)Serialize aDimensionto a xml element.static org.dom4j.Elementserialize(String name, Point point)Serialize aPointto a xml element.voidsetConfigLocation(Point configLocation)Location of the config panels window.voidsetConfigSize(Dimension configSize)Dimensions of the config panels window.voidsetLogDividerLocation(int logDividerLocation)Divider location of the log split pane (horizontal).voidsetMainDividerLocation(int mainDividerLocation)Divider location of the main split pane (vertical).voidsetMainLocation(Point mainLocation)Location of the main forms window.voidsetMainSize(Dimension mainSize)Dimensions of the main forms window.voidsetSelectedConfiguration(int selectedConfiguration)Index of the configuration selected in theMainForm.StringtoString()
-
-
-
Method Detail
-
serialize
public static org.dom4j.Element serialize(String name, Point point)
Serialize aPointto a xml element. The result element looks like this:<[name] x="[x]" y="[y]"/>.- Parameters:
name- name of this dimensions elementpoint- point to serialize- Returns:
- serialized point element
-
serialize
public static org.dom4j.Element serialize(String name, Dimension dimension)
Serialize aDimensionto a xml element. The result element looks like this:<[name] width="[w]" height="[h]"/>.- Parameters:
name- name of this dimensions elementdimension- dimension to serialize- Returns:
- serialized dimension element
-
parsePoint
public static Point parsePoint(org.dom4j.Element element)
Parse aPointfrom aElement.- Parameters:
element- element to parse- Returns:
- parsed point
-
parseDimension
public static Dimension parseDimension(org.dom4j.Element element)
Parse aDimensionfrom aElement.- Parameters:
element- element to parse- Returns:
- parsed dimension
-
serialize
public org.dom4j.Element serialize()
Serialize the workspace to a xmlDocument. The root element is named workspace.
-
parse
public Workspace parse(org.dom4j.Element element)
Parse a workspace from aElement.
-
getMainLocation
public Point getMainLocation()
Location of the main forms window.
-
getMainSize
public Dimension getMainSize()
Dimensions of the main forms window.
-
getConfigLocation
public Point getConfigLocation()
Location of the config panels window.
-
getConfigSize
public Dimension getConfigSize()
Dimensions of the config panels window.
-
getSelectedConfiguration
public int getSelectedConfiguration()
Index of the configuration selected in theMainForm.
-
getMainDividerLocation
public int getMainDividerLocation()
Divider location of the main split pane (vertical).
-
getLogDividerLocation
public int getLogDividerLocation()
Divider location of the log split pane (horizontal).
-
setMainLocation
public void setMainLocation(Point mainLocation)
Location of the main forms window.
-
setMainSize
public void setMainSize(Dimension mainSize)
Dimensions of the main forms window.
-
setConfigLocation
public void setConfigLocation(Point configLocation)
Location of the config panels window.
-
setConfigSize
public void setConfigSize(Dimension configSize)
Dimensions of the config panels window.
-
setSelectedConfiguration
public void setSelectedConfiguration(int selectedConfiguration)
Index of the configuration selected in theMainForm.
-
setMainDividerLocation
public void setMainDividerLocation(int mainDividerLocation)
Divider location of the main split pane (vertical).
-
setLogDividerLocation
public void setLogDividerLocation(int logDividerLocation)
Divider location of the log split pane (horizontal).
-
canEqual
protected boolean canEqual(Object other)
-
-