Class ChangeAction


  • public class ChangeAction
    extends Object
    This class store undo and redo information...

    Possible changes to a pipeline:

    transform

    hop

    note

    connection

    Build an Undo/Redo class containing:

    Type of change

    Description of action

    Link to previous infomation

    • Constructor Detail

      • ChangeAction

        public ChangeAction()
    • Method Detail

      • setDelete

        public void setDelete​(Object[] prev,
                              int[] idx)
      • setChanged

        public void setChanged​(Object[] prev,
                               Object[] curr,
                               int[] idx)
      • setNew

        public void setNew​(Object[] prev,
                           int[] position)
      • setPosition

        public void setPosition​(Object[] obj,
                                int[] idx,
                                Point[] prev,
                                Point[] curr)
      • setItemMove

        public void setItemMove​(int[] prev,
                                int[] curr)
      • getPrevious

        public Object[] getPrevious()
      • getCurrent

        public Object[] getCurrent()
      • getPreviousLocation

        public Point[] getPreviousLocation()
      • getCurrentLocation

        public Point[] getCurrentLocation()
      • getPreviousIndex

        public int[] getPreviousIndex()
      • getCurrentIndex

        public int[] getCurrentIndex()
      • setNextAlso

        public void setNextAlso​(boolean nextAlso)
        Indicate that the next operations needs to be undone too.
        Parameters:
        nextAlso - The nextAlso to set.
      • getNextAlso

        public boolean getNextAlso()
        Get the status of the nextAlso flag.
        Returns:
        true if the next operation needs to be done too.