org.processmining.plugins.pnml.graphics
Class PnmlArcGraphics

java.lang.Object
  extended by org.processmining.plugins.pnml.PnmlElement
      extended by org.processmining.plugins.pnml.graphics.PnmlArcGraphics

public class PnmlArcGraphics
extends PnmlElement

PNML arc graphics.

Author:
hverbeek

Field Summary
static java.lang.String TAG
          PNML annotation graphics tag.
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlArcGraphics()
          Creates a fresh PNML arc graphics.
 
Method Summary
 PnmlArcGraphics 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 arc graphics.
protected  boolean importElements(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Checks whether the current start tag is known.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
checkValidity, exportAttribute, exportAttributes, exportElement, importAttributes, importElement, importText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final java.lang.String TAG
PNML annotation graphics tag.

See Also:
Constant Field Values
Constructor Detail

PnmlArcGraphics

public PnmlArcGraphics()
Creates a fresh PNML arc graphics.

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:
importElements in class PnmlElement
Returns:
Whether the start tag was known.

exportElements

protected java.lang.String exportElements(Pnml pnml)
Exports the arc graphics.

Overrides:
exportElements in class PnmlElement
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)