Package commands

Class CmdBringToBack

  • All Implemented Interfaces:
    Command

    public class CmdBringToBack
    extends java.lang.Object
    implements Command
    Class that represent command to bring some shape to the back.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Get index of shape, remove it from that place and add it to the first place.
      void unexecute()
      Remove shape from first place and return it to the previous (original) position.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • execute

        public void execute()
        Get index of shape, remove it from that place and add it to the first place.
        Specified by:
        execute in interface Command
      • unexecute

        public void unexecute()
        Remove shape from first place and return it to the previous (original) position.
        Specified by:
        unexecute in interface Command