接口的使用
com.example.graphics.command.Command
使用Command的程序包
-
com.example.graphics.command中Command的使用
修饰符和类型类说明class
Command for adding a shape to a collection.class
Command for moving a shape to a new position.class
Command for removing a shape from a collection.类型参数类型为Command的com.example.graphics.command中的字段参数类型为Command的com.example.graphics.command中的方法修饰符和类型方法说明void
CommandManager.executeCommand
(Command command) Execute a command and add it to the undo stack