public class TsmlDimension extends TsmlElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG
PNML dimension tag.
|
lineNumber, tag
Constructor and Description |
---|
TsmlDimension()
Creates a fresh PNML dimension.
|
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.
|
TsmlDimension |
marshall(org.processmining.models.graphbased.AbstractGraphElement element) |
void |
setX(java.lang.Double x) |
void |
setY(java.lang.Double y) |
void |
unmarshall(org.processmining.models.graphbased.AbstractGraphElement element,
org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> boundingBox)
Sets the size of the given graph element to this dimension.
|
exportAttribute, exportElement, exportElements, importElement, importElements, importText
public static final java.lang.String TAG
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)
element
- The given element.public TsmlDimension marshall(org.processmining.models.graphbased.AbstractGraphElement element)