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 IState
getState()
Current appIState
.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.
-
Constructor Details
-
StateManager
-
-
Method Details
-
init
public void init()Description copied from interface:IStateManager
Initializes all states.- Specified by:
init
in interfaceIStateManager
-
setAddTopic
public void setAddTopic()Description copied from interface:IStateManager
Sets the state of adding a new topic.- Specified by:
setAddTopic
in interfaceIStateManager
-
setSelectTopic
public void setSelectTopic()Description copied from interface:IStateManager
Sets the state of selecting a topic.- Specified by:
setSelectTopic
in interfaceIStateManager
-
setMoveTopic
public void setMoveTopic()Description copied from interface:IStateManager
Sets the state of moving topics.- Specified by:
setMoveTopic
in interfaceIStateManager
-
setDrawConnection
public void setDrawConnection()Description copied from interface:IStateManager
Sets the state of drawing a new connection.- Specified by:
setDrawConnection
in interfaceIStateManager
-
setDeleteElement
public void setDeleteElement()Description copied from interface:IStateManager
Sets the state of deleting an element.- Specified by:
setDeleteElement
in interfaceIStateManager
-
getState
Description copied from interface:IStateManager
Current appIState
.- Specified by:
getState
in interfaceIStateManager
- Returns:
- Current app
IState
.
-
rollback
public void rollback()Description copied from interface:IStateManager
Rolls back to the previous state.- Specified by:
rollback
in interfaceIStateManager
-