All Known Implementing Classes:
StateManager

public interface IStateManager

State Manager

Manages the states of the app interaction.
  • Method Summary

    Modifier and Type Method Description
    IState getState()
    Current app IState.
    void init()
    Initializes all states.
    void rollback()
    Rolls back to the previous state.
    void setAddTopic()
    Sets the state of adding a new topic.
    void setDeleteElement()
    Sets the state of deleting an element.
    void setDrawConnection()
    Sets the state of drawing a new connection.
    void setMoveTopic()
    Sets the state of moving topics.
    void setSelectTopic()
    Sets the state of selecting a topic.
  • Method Details

    • init

      void init()
      Initializes all states.
    • setAddTopic

      void setAddTopic()
      Sets the state of adding a new topic.
    • setSelectTopic

      void setSelectTopic()
      Sets the state of selecting a topic.
    • setMoveTopic

      void setMoveTopic()
      Sets the state of moving topics.
    • setDrawConnection

      void setDrawConnection()
      Sets the state of drawing a new connection.
    • setDeleteElement

      void setDeleteElement()
      Sets the state of deleting an element.
    • getState

      IState getState()
      Current app IState.
      Returns:
      Current app IState.
    • rollback

      void rollback()
      Rolls back to the previous state.