java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.args.Subcommand
com.j3d.engine.interact.cmd.commands.transform.qtrans.QuickTranslateCmd
All Implemented Interfaces:
Argument, SemiStatefulCommand, StatefulCommand<Void>

public class QuickTranslateCmd extends Subcommand implements StatefulCommand<Void>
  • Field Details

    • qTranslateMouseOwner

      public static QTranslateMouseOwner qTranslateMouseOwner
      The mouse owner for QuickTranslateCmd to function
    • qTransCmdUUID

      public UUID qTransCmdUUID
      The UUID which the orbit command uses to identify stuff registered by it. i.e. events or keybinds
    • objectOriginalPosiions

      ArrayList<Vector3> objectOriginalPosiions
    • pointsToTransform

      ArrayList<GPoint> pointsToTransform
  • Constructor Details

    • QuickTranslateCmd

      public QuickTranslateCmd()
  • 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.
    • onStart

      public void onStart(Void object, SafeJLabel label)
      Description copied from interface: StatefulCommand
      Called when the command is first started.
      Specified by:
      onStart in interface StatefulCommand<Void>
      Parameters:
      object - The object that the command operates on.
      label - The SafeJLabel instance.
    • cleanup

      public void cleanup(SafeJLabel label)
    • onEnter

      public void onEnter(Void object, SafeJLabel label)
      Description copied from interface: StatefulCommand
      Called when the 'Enter' key is pressed.
      Specified by:
      onEnter in interface StatefulCommand<Void>
      Parameters:
      object - The object that the command operates on.
      label - The SafeJLabel instance.
    • onEsc

      public void onEsc(Void object, SafeJLabel label)
      Description copied from interface: StatefulCommand
      Called when the 'Escape' key is pressed.
      Specified by:
      onEsc in interface StatefulCommand<Void>
      Parameters:
      object - The object that the command operates on.
      label - The SafeJLabel instance.