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 boolean
canEqual(Object other)
boolean
equals(Object o)
Point
getConfigLocation()
Location of the config panels window.Dimension
getConfigSize()
Dimensions of the config panels window.int
getLogDividerLocation()
Divider location of the log split pane (horizontal).int
getMainDividerLocation()
Divider location of the main split pane (vertical).Point
getMainLocation()
Location of the main forms window.Dimension
getMainSize()
Dimensions of the main forms window.int
getSelectedConfiguration()
Index of the configuration selected in theMainForm
.int
hashCode()
Workspace
parse(org.dom4j.Element element)
Parse a workspace from aElement
.static Dimension
parseDimension(org.dom4j.Element element)
Parse aDimension
from aElement
.static Point
parsePoint(org.dom4j.Element element)
Parse aPoint
from aElement
.org.dom4j.Element
serialize()
Serialize the workspace to a xmlDocument
.static org.dom4j.Element
serialize(String name, Dimension dimension)
Serialize aDimension
to a xml element.static org.dom4j.Element
serialize(String name, Point point)
Serialize aPoint
to a xml element.void
setConfigLocation(Point configLocation)
Location of the config panels window.void
setConfigSize(Dimension configSize)
Dimensions of the config panels window.void
setLogDividerLocation(int logDividerLocation)
Divider location of the log split pane (horizontal).void
setMainDividerLocation(int mainDividerLocation)
Divider location of the main split pane (vertical).void
setMainLocation(Point mainLocation)
Location of the main forms window.void
setMainSize(Dimension mainSize)
Dimensions of the main forms window.void
setSelectedConfiguration(int selectedConfiguration)
Index of the configuration selected in theMainForm
.String
toString()
-
-
-
Method Detail
-
serialize
public static org.dom4j.Element serialize(String name, Point point)
Serialize aPoint
to 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 aDimension
to 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 aPoint
from aElement
.- Parameters:
element
- element to parse- Returns:
- parsed point
-
parseDimension
public static Dimension parseDimension(org.dom4j.Element element)
Parse aDimension
from 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)
-
-