public class TsmlPosition extends TsmlElement
Modifier and Type | Field and Description |
---|---|
static double |
SCALE |
static java.lang.String |
TAG
PNML position tag.
|
lineNumber, tag
Constructor and Description |
---|
TsmlPosition()
Creates a fresh PNML position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkValidity(Tsml tsml)
Checks validity.
|
protected java.lang.String |
exportAttributes(Tsml tsml)
Exports the dimension.
|
double |
getX() |
double |
getY() |
protected void |
importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Tsml tsml)
Imports the known attributes.
|
TsmlPosition |
marshall(org.processmining.models.graphbased.AbstractGraphElement element,
org.processmining.models.connections.GraphLayoutConnection layout)
Creates a TsmlPosition object for the given element with the given
parent.
|
TsmlPosition |
marshall(java.awt.geom.Point2D point) |
void |
setX(java.lang.Double x) |
void |
setY(java.lang.Double y) |
void |
unmarshall(org.processmining.models.graphbased.AbstractGraphElement element,
java.util.List<java.awt.geom.Point2D> list)
Extends the positions of the given graph element (should be an edge) with
this position.
|
void |
unmarshall(org.processmining.models.graphbased.AbstractGraphElement element,
org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> boundingBox,
org.processmining.models.connections.GraphLayoutConnection layout)
Sets the position of the given graph element to this position.
|
exportAttribute, exportElement, exportElements, importElement, importElements, importText
public static final java.lang.String TAG
public static final double SCALE
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)
importAttributes
in class TsmlElement
protected java.lang.String exportAttributes(Tsml tsml)
exportAttributes
in class TsmlElement
protected void checkValidity(Tsml tsml)
checkValidity
in class TsmlElement
public double getX()
public double getY()
public void setX(java.lang.Double x)
public void setY(java.lang.Double y)
public void unmarshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> boundingBox, org.processmining.models.connections.GraphLayoutConnection layout)
element
- The given element.public void unmarshall(org.processmining.models.graphbased.AbstractGraphElement element, java.util.List<java.awt.geom.Point2D> list)
element
- The given element.displacement
- The displacement for this sub net.public TsmlPosition marshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)
element
- The given element.public TsmlPosition marshall(java.awt.geom.Point2D point)