java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.mindmappanel.statemanager.IState
Direct Known Subclasses:
StateAddTopic, StateDeleteElement, StateDrawConnection, StateMoveTopic, StateSelectTopic

public abstract class IState
extends Object

State

Application interaction state.
  • Constructor Details

    • IState

      public IState()
  • Method Details

    • commit

      protected void commit​(Object... params)
      Performs the IState migration.
      Parameters:
      params - Parameters.
    • migrate

      public void migrate​(MindMap parent, int x1, int y1, int x2, int y2, boolean complete)
      Performs the migration of IState with the given parameters. May produce no result if not implemented.
      Parameters:
      parent -
      x1 -
      y1 -
      x2 -
      y2 -
      complete -
    • migrate

      public void migrate​(MindMap parent, Topic t1, Topic t2)
      Performs the migration of IState with the given parameters. May produce no result if not implemented.
      Parameters:
      parent -
      t1 -
      t2 -
    • migrate

      public void migrate​(MindMap parent, int x1, int y1)
      Performs the migration of IState with the given parameters. May produce no result if not implemented.
      Parameters:
      parent -
      x1 -
      y1 -
    • migrate

      public void migrate​(MindMap parent, Topic... topics)
      Performs the migration of IState with the given parameters. May produce no result if not implemented.
      Parameters:
      parent -
      topics -
    • migrate

      public void migrate​(MindMap parent, Topic t, int x1, int y1, boolean complete)
      Performs the migration of IState with the given parameters. May produce no result if not implemented.
      Parameters:
      parent -
      t -
      x1 -
      y1 -
      complete -
    • rollback

      public void rollback()
      Rolls back the previous state.
    • rollback

      public void rollback​(Object... params)
      Rolls back the previous state.
      Parameters:
      params - Parameters.
    • clear

      public void clear()
      Clears the history stack.