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