Class TsmlNodeGraphics
- java.lang.Object
-
- org.processmining.plugins.tsml.TsmlElement
-
- org.processmining.plugins.tsml.graphics.TsmlNodeGraphics
-
public class TsmlNodeGraphics extends TsmlElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGPNML node graphics tag.-
Fields inherited from class org.processmining.plugins.tsml.TsmlElement
lineNumber, tag
-
-
Constructor Summary
Constructors Constructor Description TsmlNodeGraphics()Creates a fresh PNML node graphics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringexportElements(Tsml tsml)Exports the annotation graphics.org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double>getBoundingBox()Gets the bounding box for this node.protected booleanimportElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)Checks whether the current start tag is known.TsmlNodeGraphicsmarshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)voidunmarshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)Sets the graphics for the given graph element.-
Methods inherited from class org.processmining.plugins.tsml.TsmlElement
checkValidity, exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML node graphics tag.- See Also:
- Constant Field Values
-
-
Method Detail
-
importElements
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Tsml tsml)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 classTsmlElement- Returns:
- Whether the start tag was known.
-
exportElements
protected java.lang.String exportElements(Tsml tsml)
Exports the annotation graphics.- Overrides:
exportElementsin classTsmlElement- Returns:
-
getBoundingBox
public org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> getBoundingBox()
Gets the bounding box for this node.- Returns:
- The bounding box of this object.
-
unmarshall
public void unmarshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)Sets the graphics for the given graph element.- Parameters:
net- The given net.subNet- The given sub net.element- The given element.
-
marshall
public TsmlNodeGraphics marshall(org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)
-
-