Class PnmlDimension
- java.lang.Object
-
- org.processmining.plugins.pnml.base.PnmlElement
-
- org.processmining.plugins.pnml.elements.graphics.PnmlDimension
-
public class PnmlDimension extends PnmlElement
PNML graphics dimension object.- Author:
- hverbeek
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML dimension tag.-
Fields inherited from class org.processmining.plugins.pnml.base.PnmlElement
factory, lineNumber, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPnmlDimension()Creates a fresh PNML dimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Pnml pnml)Checks validity.PnmlDimensionconvertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)voidconvertToNet(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.protected java.lang.StringexportAttributes(Pnml pnml)Exports the dimension.protected doublegetX()protected doublegetY()protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Imports the known attributes.protected voidsetX(java.lang.Double x)protected voidsetY(java.lang.Double y)-
Methods inherited from class org.processmining.plugins.pnml.base.PnmlElement
exportAttribute, exportElement, exportElements, importElement, importElements, importText, setFactory
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML dimension tag.- See Also:
- Constant Field Values
-
-
Method Detail
-
importAttributes
protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Imports the known attributes.- Overrides:
importAttributesin classPnmlElement
-
exportAttributes
protected java.lang.String exportAttributes(Pnml pnml)
Exports the dimension.- Overrides:
exportAttributesin classPnmlElement- Returns:
-
checkValidity
protected void checkValidity(Pnml pnml)
Checks validity. Should have both an x and a y attribute.- Overrides:
checkValidityin classPnmlElement
-
getX
protected double getX()
-
getY
protected double getY()
-
setX
protected void setX(java.lang.Double x)
-
setY
protected void setY(java.lang.Double y)
-
convertToNet
public void convertToNet(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.- Parameters:
element- The given element.
-
convertFromNet
public PnmlDimension convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
-
-