类 MoveShapeCommand
java.lang.Object
com.example.graphics.command.MoveShapeCommand
- 所有已实现的接口:
Command
Command for moving a shape to a new position.
This is an implementation of the Command pattern.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
shape
-
newX
private final int newX -
newY
private final int newY -
oldX
private final int oldX -
oldY
private final int oldY
-
-
构造器详细资料
-
MoveShapeCommand
Constructor for the MoveShapeCommand- 参数:
shape
- the shape to movenewX
- the new x coordinatenewY
- the new y coordinate
-
-
方法详细资料