Class StateManager
java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.mindmappanel.statemanager.StateManager
- All Implemented Interfaces:
IStateManager
public class StateManager extends Object implements IStateManager
-
Constructor Summary
Constructors Constructor Description StateManager(MindMap parent) -
Method Summary
Modifier and Type Method Description IStategetState()Current appIState.voidinit()Initializes all states.voidrollback()Rolls back to the previous state.voidsetAddTopic()Sets the state of adding a new topic.voidsetDeleteElement()Sets the state of deleting an element.voidsetDrawConnection()Sets the state of drawing a new connection.voidsetMoveTopic()Sets the state of moving topics.voidsetSelectTopic()Sets the state of selecting a topic.
-
Constructor Details
-
StateManager
-
-
Method Details
-
init
public void init()Description copied from interface:IStateManagerInitializes all states.- Specified by:
initin interfaceIStateManager
-
setAddTopic
public void setAddTopic()Description copied from interface:IStateManagerSets the state of adding a new topic.- Specified by:
setAddTopicin interfaceIStateManager
-
setSelectTopic
public void setSelectTopic()Description copied from interface:IStateManagerSets the state of selecting a topic.- Specified by:
setSelectTopicin interfaceIStateManager
-
setMoveTopic
public void setMoveTopic()Description copied from interface:IStateManagerSets the state of moving topics.- Specified by:
setMoveTopicin interfaceIStateManager
-
setDrawConnection
public void setDrawConnection()Description copied from interface:IStateManagerSets the state of drawing a new connection.- Specified by:
setDrawConnectionin interfaceIStateManager
-
setDeleteElement
public void setDeleteElement()Description copied from interface:IStateManagerSets the state of deleting an element.- Specified by:
setDeleteElementin interfaceIStateManager
-
getState
Description copied from interface:IStateManagerCurrent appIState.- Specified by:
getStatein interfaceIStateManager- Returns:
- Current app
IState.
-
rollback
public void rollback()Description copied from interface:IStateManagerRolls back to the previous state.- Specified by:
rollbackin interfaceIStateManager
-