Package commands

Class CmdAddShape

  • All Implemented Interfaces:
    Command

    public class CmdAddShape
    extends java.lang.Object
    implements Command
    Class that represent command for add new shape to the draw.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Add new shape to the draw.
      void unexecute()
      Remove previous added shape to the draw.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public void execute()
        Add new shape to the draw.
        Specified by:
        execute in interface Command
      • unexecute

        public void unexecute()
        Remove previous added shape to the draw.
        Specified by:
        unexecute in interface Command