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
This command adds a new Element of the given type to its parent MindMap.
  • Constructor Details

    • AddElementCommand

      public AddElementCommand​(MindMap parent, int x, int y, int width, int height)
      Adds a new Topic.
      Parameters:
      parent - Parent MindMap.
      x - Topic x position.
      y - Topic y position.
      width - Topic width.
      height - Topic height.
    • AddElementCommand

      public AddElementCommand​(MindMap parent, Topic from, Topic to)
      Adds a new Connection between the given Topics.
      Parameters:
      parent - Parent MindMap.
      from - Starting Topic.
      to - Ending Topic.
  • Method Details