Class AddElementCommand
java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.command.AbstractCommand
rs.edu.raf.dsw.rudok.app.gui.swing.command.standard.AddElementCommand
public class AddElementCommand extends AbstractCommand
-
Constructor Summary
Constructors Constructor Description AddElementCommand(MindMap parent, int x, int y, int width, int height)
Adds a newTopic
.AddElementCommand(MindMap parent, Topic from, Topic to)
Adds a newConnection
between the givenTopic
s. -
Method Summary
Modifier and Type Method Description void
doCommand()
Executes the encapsulated command.void
redoCommand()
Executes the encapsulated command from previously calculated results.void
undoCommand()
Reverses the encapsulated command.Methods inherited from class rs.edu.raf.dsw.rudok.app.gui.swing.command.AbstractCommand
isCommitted, setCommitted
-
Constructor Details
-
AddElementCommand
Adds a newTopic
. -
AddElementCommand
Adds a newConnection
between the givenTopic
s.
-
-
Method Details
-
doCommand
public void doCommand()Description copied from class:AbstractCommand
Executes the encapsulated command.- Specified by:
doCommand
in classAbstractCommand
-
redoCommand
public void redoCommand()Description copied from class:AbstractCommand
Executes the encapsulated command from previously calculated results.- Specified by:
redoCommand
in classAbstractCommand
-
undoCommand
public void undoCommand()Description copied from class:AbstractCommand
Reverses the encapsulated command.- Specified by:
undoCommand
in classAbstractCommand
-