Class TsmlDimension

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TAG
      PNML dimension tag.
    • Constructor Summary

      Constructors 
      Constructor Description
      TsmlDimension()
      Creates a fresh PNML dimension.
    • Constructor Detail

      • TsmlDimension

        public TsmlDimension()
        Creates a fresh PNML dimension.
    • Method Detail

      • importAttributes

        protected void importAttributes​(org.xmlpull.v1.XmlPullParser xpp,
                                        Tsml tsml)
        Imports the known attributes.
        Overrides:
        importAttributes in class TsmlElement
      • exportAttributes

        protected java.lang.String exportAttributes​(Tsml tsml)
        Exports the dimension.
        Overrides:
        exportAttributes in class TsmlElement
        Returns:
      • checkValidity

        protected void checkValidity​(Tsml tsml)
        Checks validity. Should have both an x and a y attribute.
        Overrides:
        checkValidity in class TsmlElement
      • getX

        public double getX()
      • getY

        public double getY()
      • setX

        public void setX​(java.lang.Double x)
      • setY

        public void setY​(java.lang.Double y)
      • unmarshall

        public void unmarshall​(org.processmining.models.graphbased.AbstractGraphElement element,
                               org.processmining.framework.util.Pair<java.awt.geom.Point2D.Double,​java.awt.geom.Point2D.Double> boundingBox)
        Sets the size of the given graph element to this dimension.
        Parameters:
        element - The given element.
      • marshall

        public TsmlDimension marshall​(org.processmining.models.graphbased.AbstractGraphElement element)