Package com.j3d.engine.interact.macros
Enum Class InstructionType
- All Implemented Interfaces:
Serializable,Comparable<InstructionType>,Constable
The type of instruction for a given
MacroLine.- Author:
- Lehlogonlo Poole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe line represents a camera movement position.The line is a command execution string to be pasted into the command paletteunused.The line represents a selection box with a specific type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstructionTypeConverts the given 3-character string into an instruction type enumgetId()Gets the id of the instruction.static InstructionTypeReturns the enum constant of this class with the specified name.static InstructionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND_EXEC
The line is a command execution string to be pasted into the command palette -
MOUSE_MOVE
unused. -
SELECTION
The line represents a selection box with a specific type -
CAMERA
The line represents a camera movement position.
-
-
Field Details
-
id
The serialized form of the instruction type
-
-
Constructor Details
-
InstructionType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
Gets the id of the instruction. The 3 character string which defines the line- Returns:
- The Instruction Id
-
fromId
Converts the given 3-character string into an instruction type enum- Parameters:
id- The incoming id- Returns:
- The enum which this id belongs to or null if not found.
-