public class PnmlPosition extends PnmlElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasX
Whether the coordinates are valid.
|
protected boolean |
hasY |
protected static double |
SCALE |
static java.lang.String |
TAG
PNML position tag.
|
protected double |
x
The coordinates.
|
protected double |
y |
factory, lineNumber, tag| Modifier | Constructor and Description |
|---|---|
protected |
PnmlPosition()
Creates a fresh PNML position.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValidity(Pnml pnml)
Checks validity.
|
PnmlPosition |
convertFromNet(ExpandableSubNet parent,
org.processmining.models.graphbased.AbstractGraphElement element,
org.processmining.models.connections.GraphLayoutConnection layout)
Creates a PnmlPosition object for the given element with the given
parent.
|
PnmlPosition |
convertFromNet(ExpandableSubNet parent,
java.awt.geom.Point2D point) |
void |
convertToNet(ExpandableSubNet subNet,
org.processmining.models.graphbased.AbstractGraphElement element,
java.util.List<java.awt.geom.Point2D> list,
java.awt.geom.Point2D.Double displacement)
Extends the positions of the given graph element (should be an edge) with
this position.
|
void |
convertToNet(ExpandableSubNet subNet,
org.processmining.models.graphbased.AbstractGraphElement element,
java.awt.geom.Point2D.Double displacement,
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.
|
protected java.lang.String |
exportAttributes(Pnml pnml)
Exports the dimension.
|
protected double |
getX() |
protected double |
getY() |
protected void |
importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Pnml pnml)
Imports the known attributes.
|
protected void |
setX(java.lang.Double x) |
protected void |
setY(java.lang.Double y) |
exportAttribute, exportElement, exportElements, importElement, importElements, importText, setFactorypublic static final java.lang.String TAG
protected boolean hasX
protected boolean hasY
protected double x
protected double y
protected static final double SCALE
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp,
Pnml pnml)
importAttributes in class PnmlElementprotected java.lang.String exportAttributes(Pnml pnml)
exportAttributes in class PnmlElementprotected void checkValidity(Pnml pnml)
checkValidity in class PnmlElementprotected double getX()
protected double getY()
protected void setX(java.lang.Double x)
protected void setY(java.lang.Double y)
public void convertToNet(ExpandableSubNet subNet, org.processmining.models.graphbased.AbstractGraphElement element, java.awt.geom.Point2D.Double displacement, org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> boundingBox, org.processmining.models.connections.GraphLayoutConnection layout)
subNet - The given sub net.element - The given element.public void convertToNet(ExpandableSubNet subNet, org.processmining.models.graphbased.AbstractGraphElement element, java.util.List<java.awt.geom.Point2D> list, java.awt.geom.Point2D.Double displacement)
subNet - The given sub net.element - The given element.displacement - The displacement for this sub net.public PnmlPosition convertFromNet(ExpandableSubNet parent, org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)
parent - The given parent.element - The given element.public PnmlPosition convertFromNet(ExpandableSubNet parent, java.awt.geom.Point2D point)