Package commands
Class CmdToBack
- java.lang.Object
-
- commands.CmdToBack
-
-
Field Summary
Fields Modifier and Type Field Description private intindexprivate DrawingModelmodelprivate Shapeshape
-
Constructor Summary
Constructors Constructor Description CmdToBack(DrawingModel model, Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Get index of shape, remove it from that position and add it to position at index less by one.voidunexecute()Get index of shape, remove it from previous position and return it to old position.
-
-
-
Field Detail
-
model
private DrawingModel model
-
shape
private Shape shape
-
index
private int index
-
-
Constructor Detail
-
CmdToBack
public CmdToBack(DrawingModel model, Shape shape)
-
-