Class Manipulation<V>

  • Type Parameters:
    V - The type of elements that are manipulated

    public class Manipulation<V>
    extends java.lang.Object
    Contains information regarding to how an element is manipulated
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte TRANS_MOVE
      Flag indicating the element was moved
      static byte TRANS_PULL_LINE_END
      Flag indicating the element was pulled from its end point
      static byte TRANS_PULL_LINE_MID
      Flag indicating the element was pulled from one of its middle points
      static byte TRANS_PULL_LINE_START
      Flag indicating the element was pulled from its start point
    • Constructor Summary

      Constructors 
      Constructor Description
      Manipulation​(V element, byte transformFlags)
      Allocates a new manipulation instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChangeFlag​(byte changeFlag)
      Adds a flag which represents a transformation being performed in the manipulation
      boolean containsTransformFlags​(byte transformFlag)
      Tells whether the manipulation contains the given transform flags
      boolean equals​(java.lang.Object obj)  
      JGeometry getChangedGeometry()
      Gets the element's geometry after the manipulation
      V getElement()
      Gets the manipulated element
      byte getTransformFlags()
      Gets all the transform flags of the manipulation
      void setChangedGeometry​(JGeometry changedGeometry)
      Sets the element's geometry after the manipulation
      void setElement​(V element)
      Sets the manipulated element
      void setTransformFlags​(byte transformFlags)
      Overwrites the manipulation transform flags
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TRANS_MOVE

        public static byte TRANS_MOVE
        Flag indicating the element was moved
      • TRANS_PULL_LINE_START

        public static byte TRANS_PULL_LINE_START
        Flag indicating the element was pulled from its start point
      • TRANS_PULL_LINE_END

        public static byte TRANS_PULL_LINE_END
        Flag indicating the element was pulled from its end point
      • TRANS_PULL_LINE_MID

        public static byte TRANS_PULL_LINE_MID
        Flag indicating the element was pulled from one of its middle points
    • Constructor Detail

      • Manipulation

        public Manipulation​(V element,
                            byte transformFlags)
        Allocates a new manipulation instance
        Parameters:
        element - the element being manipulated
        transformFlags - the transform flags describing the manipulation
    • Method Detail

      • addChangeFlag

        public void addChangeFlag​(byte changeFlag)
        Adds a flag which represents a transformation being performed in the manipulation
        Parameters:
        changeFlag - a transform flag
      • containsTransformFlags

        public boolean containsTransformFlags​(byte transformFlag)
        Tells whether the manipulation contains the given transform flags
        Parameters:
        transformFlag - transform flags
        Returns:
      • getTransformFlags

        public byte getTransformFlags()
        Gets all the transform flags of the manipulation
        Returns:
        transform flags
      • setTransformFlags

        public void setTransformFlags​(byte transformFlags)
        Overwrites the manipulation transform flags
        Parameters:
        transformFlags - transform flags
      • getElement

        public V getElement()
        Gets the manipulated element
        Returns:
        the manipulated element
      • setElement

        public void setElement​(V element)
        Sets the manipulated element
        Parameters:
        element - the manipulated element
      • getChangedGeometry

        public JGeometry getChangedGeometry()
        Gets the element's geometry after the manipulation
        Returns:
        an SDO geometry
      • setChangedGeometry

        public void setChangedGeometry​(JGeometry changedGeometry)
        Sets the element's geometry after the manipulation
        Parameters:
        changedGeometry - an SDO geometry
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object