artisynth.core.gui.editorManager
Class TransformComponentsCommand

java.lang.Object
  extended by artisynth.core.gui.editorManager.TransformComponentsCommand
All Implemented Interfaces:
Command, java.lang.Cloneable, Clonable

public class TransformComponentsCommand
extends java.lang.Object
implements Command, Clonable


Constructor Summary
TransformComponentsCommand(java.lang.String name, java.util.LinkedList<ModelComponent> comps, AffineTransform3dBase X, int flags)
           
 
Method Summary
 TransformComponentsCommand clone()
           
 void execute()
          Executes this command.
 java.lang.String getName()
          Gets the name associated with this command.
 void setTransform(AffineTransform3dBase X)
           
 void undo()
          Undoes the result of executing this command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformComponentsCommand

public TransformComponentsCommand(java.lang.String name,
                                  java.util.LinkedList<ModelComponent> comps,
                                  AffineTransform3dBase X,
                                  int flags)
Method Detail

setTransform

public void setTransform(AffineTransform3dBase X)

execute

public void execute()
Description copied from interface: Command
Executes this command.

Specified by:
execute in interface Command

undo

public void undo()
Description copied from interface: Command
Undoes the result of executing this command.

Specified by:
undo in interface Command

getName

public java.lang.String getName()
Description copied from interface: Command
Gets the name associated with this command. This name will be used in creating entries in the undo menu.

Specified by:
getName in interface Command
Returns:
name associated with this command

clone

public TransformComponentsCommand clone()
                                 throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Clonable
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException