Enum VectorCommand
- java.lang.Object
-
- java.lang.Enum<VectorCommand>
-
- io.github.applecommander.bastools.api.shapes.VectorCommand
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VectorCommand>
public enum VectorCommand extends java.lang.Enum<VectorCommand>
Represents all "plot vectors" available in an Applesoft shape table.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOVE_DOWNMOVE_LEFTMOVE_RIGHTMOVE_UPPLOT_DOWNPLOT_LEFTPLOT_RIGHTPLOT_UP
-
Field Summary
Fields Modifier and Type Field Description booleanhorizontaljava.lang.StringlongCommandbooleanplotcharshortCommandbooleanverticalintxmoveintymove
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorCommandmove()VectorCommandopposite()VectorCommandplot()static VectorCommandvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static VectorCommand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVE_UP
public static final VectorCommand MOVE_UP
-
MOVE_RIGHT
public static final VectorCommand MOVE_RIGHT
-
MOVE_DOWN
public static final VectorCommand MOVE_DOWN
-
MOVE_LEFT
public static final VectorCommand MOVE_LEFT
-
PLOT_UP
public static final VectorCommand PLOT_UP
-
PLOT_RIGHT
public static final VectorCommand PLOT_RIGHT
-
PLOT_DOWN
public static final VectorCommand PLOT_DOWN
-
PLOT_LEFT
public static final VectorCommand PLOT_LEFT
-
-
Method Detail
-
values
public static VectorCommand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VectorCommand c : VectorCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VectorCommand valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
opposite
public VectorCommand opposite()
-
plot
public VectorCommand plot()
-
move
public VectorCommand move()
-
-