Class PnmlOffset
- java.lang.Object
-
- org.processmining.plugins.pnml.base.PnmlElement
-
- org.processmining.plugins.pnml.elements.graphics.PnmlOffset
-
public class PnmlOffset extends PnmlElement
PNML graphics offset object.- Author:
- hverbeek
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML offset tag.-
Fields inherited from class org.processmining.plugins.pnml.base.PnmlElement
factory, lineNumber, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPnmlOffset()Creates a fresh PNML offset.protectedPnmlOffset(double x, double y)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Pnml pnml)Checks validity.PnmlOffsetconvertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)voidconvertToNet(org.processmining.models.graphbased.AbstractGraphElement element)Sets the offset of the given graph element to this offset.protected java.lang.StringexportAttributes(Pnml pnml)Exports the dimension.protected voidimportAttributes(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Imports the known attributes.-
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 offset 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
-
convertToNet
public void convertToNet(org.processmining.models.graphbased.AbstractGraphElement element)
Sets the offset of the given graph element to this offset.- Parameters:
element- The given element.
-
convertFromNet
public PnmlOffset convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
-
-