org.vectomatic.client.rep.command
Class TransformShapeCommand
java.lang.Object
org.vectomatic.client.rep.command.CommandBase
org.vectomatic.client.rep.command.TransformShapeCommand
- All Implemented Interfaces:
- ICommand
public class TransformShapeCommand
- extends CommandBase
Command to alter the 2D transform of a shape
Fields inherited from class org.vectomatic.client.rep.command.CommandBase |
_app |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCALE
public static final int SCALE
- See Also:
- Constant Field Values
ROTATE
public static final int ROTATE
- See Also:
- Constant Field Values
TRANSLATE
public static final int TRANSLATE
- See Also:
- Constant Field Values
TransformShapeCommand
public TransformShapeCommand(RepApplication app,
TransformMatrix t,
TransformMatrix mSelection,
int kind,
MouseControllerSelector selector,
SelectShapeController selectShapeController)
- Constructor
- Parameters:
selection
- The selection objectt
- The transform to apply to all shapes positional matrixmSelection
- The positional matrix of the selection before the transform was appliedkind
- The kind of transformation (SCALING, ROTATION, TRANSLATION)selector
- The controller selectorselectShapeController
-
getDescription
public String getDescription()
- Description copied from interface:
ICommand
- Get the description of the command
unexecute
public void unexecute()
- Description copied from interface:
ICommand
- Undo the command
execute
public void execute()
- Description copied from interface:
ICommand
- Execute the command
Copyright © 2010. All Rights Reserved.