Class PnmlArcGraphics
- java.lang.Object
-
- org.processmining.plugins.pnml.base.PnmlElement
-
- org.processmining.plugins.pnml.elements.graphics.PnmlArcGraphics
-
public class PnmlArcGraphics extends PnmlElement
PNML arc graphics.- Author:
- hverbeek
-
-
Field Summary
Fields Modifier and Type Field Description protected PnmlLinelineLine element.protected java.util.List<PnmlPosition>positionListPositions elements (may be multiple).static java.lang.StringTAGPNML annotation graphics tag.-
Fields inherited from class org.processmining.plugins.pnml.base.PnmlElement
factory, lineNumber, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPnmlArcGraphics()Creates a fresh PNML arc graphics.protectedPnmlArcGraphics(java.lang.String tag)Creates a fresh PNML arc graphics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PnmlArcGraphicsconvertFromNet(ExpandableSubNet parent, org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)voidconvertToNet(ExpandableSubNet subNet, org.processmining.models.graphbased.AbstractGraphElement element, java.awt.geom.Point2D.Double displacement, org.processmining.models.connections.GraphLayoutConnection layout)Sets the graphics for the given graph element.protected java.lang.StringexportElements(Pnml pnml)Exports the arc graphics.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Checks whether the current start tag is known.-
Methods inherited from class org.processmining.plugins.pnml.base.PnmlElement
checkValidity, exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText, setFactory
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML annotation graphics tag.- See Also:
- Constant Field Values
-
positionList
protected final java.util.List<PnmlPosition> positionList
Positions elements (may be multiple).
-
line
protected PnmlLine line
Line element.
-
-
Method Detail
-
importElements
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)Checks whether the current start tag is known. If known, it imports the corresponding child element and returns true. Otherwise, it returns false.- Overrides:
importElementsin classPnmlElement- Returns:
- Whether the start tag was known.
-
exportElements
protected java.lang.String exportElements(Pnml pnml)
Exports the arc graphics.- Overrides:
exportElementsin classPnmlElement- Returns:
-
convertToNet
public void convertToNet(ExpandableSubNet subNet, org.processmining.models.graphbased.AbstractGraphElement element, java.awt.geom.Point2D.Double displacement, org.processmining.models.connections.GraphLayoutConnection layout)
Sets the graphics for the given graph element.- Parameters:
subNet- The given sub net.element- The given element.displacement- The displacement for this sub net.
-
convertFromNet
public PnmlArcGraphics convertFromNet(ExpandableSubNet parent, org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)
-
-