Class SelectionMemento

java.lang.Object
fr.istic.aco.editor.memento.SelectionMemento
All Implemented Interfaces:
Memento

public class SelectionMemento extends Object implements Memento
Memento to save the parameters of MoveSelection Commands.
  • Constructor Details

    • SelectionMemento

      public SelectionMemento()
  • Method Details

    • setBegin

      public void setBegin(int begin)
      Sets the beginning index of the Selection memento
      Parameters:
      begin - the new starting index as an int
    • setEnd

      public void setEnd(int end)
      Sets the ending index of the Selection memento
      Parameters:
      end - the new ending index as an int
    • getBegin

      public int getBegin()
      Retrieves the beginning index of the memento
      Returns:
      the beginning index as an int
    • getEnd

      public int getEnd()
      Retrieves the ending index of the memento
      Returns:
      the ending index as an int