Class PnmlNodeGraphics
- java.lang.Object
-
- org.processmining.plugins.pnml.base.PnmlElement
-
- org.processmining.plugins.pnml.elements.graphics.PnmlNodeGraphics
-
public class PnmlNodeGraphics extends PnmlElement
PNML node graphics.- Author:
- hverbeek
-
-
Field Summary
Fields Modifier and Type Field Description protected PnmlDimensiondimensionDimension element.protected PnmlFillfillFill element.protected PnmlLinelineLine element.protected PnmlPositionpositionPosition element.static java.lang.StringTAGPNML node graphics tag.-
Fields inherited from class org.processmining.plugins.pnml.base.PnmlElement
factory, lineNumber, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPnmlNodeGraphics()Creates a fresh PNML node graphics.protectedPnmlNodeGraphics(java.lang.String tag)Creates a fresh PNML node graphics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValidity(Pnml pnml)Checks validity.PnmlNodeGraphicsconvertFromNet(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 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, Pnml pnml)Checks whether the current start tag is known.-
Methods inherited from class org.processmining.plugins.pnml.base.PnmlElement
exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText, setFactory
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
PNML node graphics tag.- See Also:
- Constant Field Values
-
position
protected PnmlPosition position
Position element.
-
fill
protected PnmlFill fill
Fill element.
-
line
protected PnmlLine line
Line element.
-
dimension
protected PnmlDimension dimension
Dimension 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 annotation graphics.- Overrides:
exportElementsin classPnmlElement- Returns:
-
checkValidity
protected void checkValidity(Pnml pnml)
Checks validity. Should have a position element.- Overrides:
checkValidityin classPnmlElement
-
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.
-
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:
net- The given net.subNet- The given sub net.element- The given element.
-
convertFromNet
public PnmlNodeGraphics convertFromNet(ExpandableSubNet parent, org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)
-
-