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 voidclear()Clears the history stack.protected voidcommit(Object... params)Performs theIStatemigration.voidmigrate(MindMap parent, int x1, int y1)Performs the migration ofIStatewith the given parameters.voidmigrate(MindMap parent, int x1, int y1, int x2, int y2, boolean complete)Performs the migration ofIStatewith the given parameters.voidmigrate(MindMap parent, Topic... topics)Performs the migration ofIStatewith the given parameters.voidmigrate(MindMap parent, Topic t, int x1, int y1, boolean complete)Performs the migration ofIStatewith the given parameters.voidmigrate(MindMap parent, Topic t1, Topic t2)Performs the migration ofIStatewith the given parameters.voidrollback()Rolls back the previous state.voidrollback(Object... params)Rolls back the previous state.
-
Constructor Details
-
IState
public IState()
-
-
Method Details
-
commit
Performs theIStatemigration.- Parameters:
params- Parameters.
-
migrate
Performs the migration ofIStatewith the given parameters. May produce no result if not implemented.- Parameters:
parent-x1-y1-x2-y2-complete-
-
migrate
Performs the migration ofIStatewith the given parameters. May produce no result if not implemented.- Parameters:
parent-t1-t2-
-
migrate
Performs the migration ofIStatewith the given parameters. May produce no result if not implemented.- Parameters:
parent-x1-y1-
-
migrate
Performs the migration ofIStatewith the given parameters. May produce no result if not implemented.- Parameters:
parent-topics-
-
migrate
Performs the migration ofIStatewith 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.
-