java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.commands.transform.TransformCmd
All Implemented Interfaces:
SemiStatefulCommand

public class TransformCmd extends Command implements SemiStatefulCommand
A very complicated command which is a dispatcher for its specific transform subcommands.

This command, before dispatching to it's 3 possible subcommands requires that a selection be made first (enforced by SelectionPreCondition, making the command SemiStatefulCommand as after a selection is made it's "stateful" label is released.

The command does nothing more but setup inital state. The logic lies within the subcommands. RotateSelection, TranslateSelection and ScaleSelection

Aliases: selection, trans, t, tr

Author:
Lehlogonolo Poole
See Also:
  • Field Details

  • Constructor Details

    • TransformCmd

      public TransformCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.