Class MoveTopicCommand

java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.command.AbstractCommand
rs.edu.raf.dsw.rudok.app.gui.swing.command.standard.MoveTopicCommand

public class MoveTopicCommand
extends AbstractCommand
This command moves the passed Topics along the X/Y axis by the given amount. NOTE: this command considers the movement to have been ALREADY completed. doCommand() method does nothing. This command is simply a wrapper to record the history of Topics movement and enable redoing/undoing.
  • Constructor Details

    • MoveTopicCommand

      public MoveTopicCommand​(int dX, int dY, Topic... targets)
      Default constructor.
      Parameters:
      dX - Change in position along the X-axis.
      dY - Change in position along the Y-axis.
      targets - Moved topics.
  • Method Details