Class TransformCmd
java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.commands.transform.TransformCmd
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]private ArrayList<TaggedArgValue<?>> private SafeJLabelprivate SelectionPreConditionprivate StringFields inherited from class com.j3d.engine.interact.cmd.base.Command
aliases, args, description, usages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs) The method to be overridden by subclasses to implement command functionality.Methods inherited from class com.j3d.engine.interact.cmd.base.Command
addNoArgUsage, aliases, aliasStream, args, dispatchToSubcommands, getUsages, hasNoArgs, parseUsages, usages, varTaggedArgsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j3d.engine.interact.cmd.base.SemiStatefulCommand
fire
-
Field Details
-
selectionPreCondition
-
subcommandName
-
logLabel
-
_args
-
_taggedArgs
-
-
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:CommandThe method to be overridden by subclasses to implement command functionality.
-