Package commands
Class CmdAddShape
- java.lang.Object
-
- commands.CmdAddShape
-
-
Field Summary
Fields Modifier and Type Field Description private DrawingModel
model
private Shape
shape
-
Constructor Summary
Constructors Constructor Description CmdAddShape(Shape shape, DrawingModel model)
-
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.
-
-
-
Field Detail
-
shape
private Shape shape
-
model
private DrawingModel model
-
-
Constructor Detail
-
CmdAddShape
public CmdAddShape(Shape shape, DrawingModel model)
-
-