public class PnmlNodeGraphics extends PnmlElement
Modifier and Type | Field and Description |
---|---|
protected PnmlDimension |
dimension
Dimension element.
|
protected PnmlFill |
fill
Fill element.
|
protected PnmlLine |
line
Line element.
|
protected PnmlPosition |
position
Position element.
|
static java.lang.String |
TAG
PNML node graphics tag.
|
factory, lineNumber, tag
Modifier | Constructor and Description |
---|---|
protected |
PnmlNodeGraphics()
Creates a fresh PNML node graphics.
|
protected |
PnmlNodeGraphics(java.lang.String tag)
Creates a fresh PNML node graphics.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkValidity(Pnml pnml)
Checks validity.
|
PnmlNodeGraphics |
convertFromNet(ExpandableSubNet parent,
org.processmining.models.graphbased.AbstractGraphElement element,
org.processmining.models.connections.GraphLayoutConnection layout) |
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.
|
protected java.lang.String |
exportElements(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 boolean |
importElements(org.xmlpull.v1.XmlPullParser xpp,
Pnml pnml)
Checks whether the current start tag is known.
|
exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText, setFactory
public static final java.lang.String TAG
protected PnmlPosition position
protected PnmlFill fill
protected PnmlLine line
protected PnmlDimension dimension
protected PnmlNodeGraphics()
protected PnmlNodeGraphics(java.lang.String tag)
protected boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
importElements
in class PnmlElement
protected java.lang.String exportElements(Pnml pnml)
exportElements
in class PnmlElement
protected void checkValidity(Pnml pnml)
checkValidity
in class PnmlElement
public org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,java.awt.geom.Point2D.Double> getBoundingBox()
public void convertToNet(ExpandableSubNet subNet, org.processmining.models.graphbased.AbstractGraphElement element, java.awt.geom.Point2D.Double displacement, org.processmining.models.connections.GraphLayoutConnection layout)
net
- The given net.subNet
- The given sub net.element
- The given element.public PnmlNodeGraphics convertFromNet(ExpandableSubNet parent, org.processmining.models.graphbased.AbstractGraphElement element, org.processmining.models.connections.GraphLayoutConnection layout)