Class PnmlOffset


  • public class PnmlOffset
    extends PnmlElement
    PNML graphics offset object.
    Author:
    hverbeek
    • Constructor Detail

      • PnmlOffset

        protected PnmlOffset()
        Creates a fresh PNML offset.
      • PnmlOffset

        protected PnmlOffset​(double x,
                             double y)
    • 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)