Package commands
Class CmdBringToFront
- java.lang.Object
-
- commands.CmdBringToFront
-
-
Constructor Summary
Constructors Constructor Description CmdBringToFront(DrawingModel model, Shape shape, int size)
-
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 last place.void
unexecute()
Remove shape from last place and return it to the previous (original) position.
-
-
-
Field Detail
-
model
private DrawingModel model
-
shape
private Shape shape
-
size
private int size
-
index
private int index
-
-
Constructor Detail
-
CmdBringToFront
public CmdBringToFront(DrawingModel model, Shape shape, int size)
-
-