Class IState
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 Summary
Constructors Constructor Description IState()
-
Method Summary
Modifier and Type Method Description void
clear()
Clears the history stack.protected void
commit(Object... params)
Performs theIState
migration.void
migrate(MindMap parent, int x1, int y1)
Performs the migration ofIState
with the given parameters.void
migrate(MindMap parent, int x1, int y1, int x2, int y2, boolean complete)
Performs the migration ofIState
with the given parameters.void
migrate(MindMap parent, Topic... topics)
Performs the migration ofIState
with the given parameters.void
migrate(MindMap parent, Topic t, int x1, int y1, boolean complete)
Performs the migration ofIState
with the given parameters.void
migrate(MindMap parent, Topic t1, Topic t2)
Performs the migration ofIState
with the given parameters.void
rollback()
Rolls back the previous state.void
rollback(Object... params)
Rolls back the previous state.
-
Constructor Details
-
IState
public IState()
-
-
Method Details
-
commit
Performs theIState
migration.- Parameters:
params
- Parameters.
-
migrate
Performs the migration ofIState
with the given parameters. May produce no result if not implemented.- Parameters:
parent
-x1
-y1
-x2
-y2
-complete
-
-
migrate
Performs the migration ofIState
with the given parameters. May produce no result if not implemented.- Parameters:
parent
-t1
-t2
-
-
migrate
Performs the migration ofIState
with the given parameters. May produce no result if not implemented.- Parameters:
parent
-x1
-y1
-
-
migrate
Performs the migration ofIState
with the given parameters. May produce no result if not implemented.- Parameters:
parent
-topics
-
-
migrate
Performs the migration ofIState
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
Rolls back the previous state.- Parameters:
params
- Parameters.
-
clear
public void clear()Clears the history stack.
-