Enum SelectAction.Mode
- java.lang.Object
-
- java.lang.Enum<SelectAction.Mode>
-
- org.openstreetmap.josm.actions.mapmode.SelectAction.Mode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SelectAction.Mode>
- Enclosing class:
- SelectAction
public static enum SelectAction.Mode extends java.lang.Enum<SelectAction.Mode>
Select action mode.- Since:
- 7543
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOVE
"MOVE" means either dragging or select if no mouse movement occurs (i.e.ROTATE
"ROTATE" allows to apply a rotation transformation on the selected object (seeRotateCommand
)SCALE
"SCALE" allows to apply a scaling transformation on the selected object (seeScaleCommand
)SELECT
"SELECT" means the selection rectangle
-
Constructor Summary
Constructors Modifier Constructor Description private
Mode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SelectAction.Mode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SelectAction.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVE
public static final SelectAction.Mode MOVE
"MOVE" means either dragging or select if no mouse movement occurs (i.e. just clicking)
-
ROTATE
public static final SelectAction.Mode ROTATE
"ROTATE" allows to apply a rotation transformation on the selected object (seeRotateCommand
)
-
SCALE
public static final SelectAction.Mode SCALE
"SCALE" allows to apply a scaling transformation on the selected object (seeScaleCommand
)
-
SELECT
public static final SelectAction.Mode SELECT
"SELECT" means the selection rectangle
-
-
Constructor Detail
-
Mode
private Mode()
-
-
Method Detail
-
values
public static SelectAction.Mode[] 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 (SelectAction.Mode c : SelectAction.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SelectAction.Mode 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
-
-