接口 Command

所有已知实现类:
AddShapeCommand, MoveShapeCommand, RemoveShapeCommand

public interface Command
Command interface for implementing the Command pattern. This allows operations to be encapsulated as objects.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Execute the command
    void
    Undo the command
  • 方法详细资料

    • execute

      void execute()
      Execute the command
    • undo

      void undo()
      Undo the command