org.processmining.plugins.pnml.graphics
Class PnmlOffset

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

public class PnmlOffset
extends PnmlElement

PNML graphics offset object.

Author:
hverbeek

Field Summary
static java.lang.String TAG
          PNML offset tag.
 
Fields inherited from class org.processmining.plugins.pnml.PnmlElement
lineNumber, tag
 
Constructor Summary
PnmlOffset()
          Creates a fresh PNML offset.
 
Method Summary
protected  void checkValidity(Pnml pnml)
          Checks validity.
 PnmlOffset convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)
           
 void convertToNet(org.processmining.models.graphbased.AbstractGraphElement element)
          Sets the offset of the given graph element to this offset.
protected  java.lang.String exportAttributes(Pnml pnml)
          Exports the dimension.
protected  void importAttributes(org.xmlpull.v1.XmlPullParser xpp, Pnml pnml)
          Imports the known attributes.
 
Methods inherited from class org.processmining.plugins.pnml.PnmlElement
exportAttribute, exportElement, exportElements, importElement, importElements, 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 offset tag.

See Also:
Constant Field Values
Constructor Detail

PnmlOffset

public PnmlOffset()
Creates a fresh PNML offset.

Method Detail

importAttributes

protected void importAttributes(org.xmlpull.v1.XmlPullParser xpp,
                                Pnml pnml)
Imports the known attributes.

Overrides:
importAttributes in class PnmlElement

exportAttributes

protected java.lang.String exportAttributes(Pnml pnml)
Exports the dimension.

Overrides:
exportAttributes in class PnmlElement
Returns:

checkValidity

protected void checkValidity(Pnml pnml)
Checks validity. Should have both an x and a y attribute.

Overrides:
checkValidity in class PnmlElement

convertToNet

public void convertToNet(org.processmining.models.graphbased.AbstractGraphElement element)
Sets the offset of the given graph element to this offset.

Parameters:
element - The given element.

convertFromNet

public PnmlOffset convertFromNet(org.processmining.models.graphbased.AbstractGraphElement element)