org.vectomatic.client.rep.command
Class TransformShapeCommand

java.lang.Object
  extended by org.vectomatic.client.rep.command.CommandBase
      extended by org.vectomatic.client.rep.command.TransformShapeCommand
All Implemented Interfaces:
ICommand

public class TransformShapeCommand
extends CommandBase

Command to alter the 2D transform of a shape


Field Summary
static int ROTATE
           
static int SCALE
           
static int TRANSLATE
           
 
Fields inherited from class org.vectomatic.client.rep.command.CommandBase
_app
 
Constructor Summary
TransformShapeCommand(RepApplication app, TransformMatrix t, TransformMatrix mSelection, int kind, MouseControllerSelector selector, SelectShapeController selectShapeController)
          Constructor
 
Method Summary
 void execute()
          Execute the command
 String getDescription()
          Get the description of the command
 void unexecute()
          Undo the command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TransformShapeCommand

public TransformShapeCommand(RepApplication app,
                             TransformMatrix t,
                             TransformMatrix mSelection,
                             int kind,
                             MouseControllerSelector selector,
                             SelectShapeController selectShapeController)
Constructor

Parameters:
selection - The selection object
t - The transform to apply to all shapes positional matrix
mSelection - The positional matrix of the selection before the transform was applied
kind - The kind of transformation (SCALING, ROTATION, TRANSLATION)
selector - The controller selector
selectShapeController -
Method Detail

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.