Package org.openstreetmap.josm.actions
Enum AutoScaleAction.AutoScaleMode
- java.lang.Object
-
- java.lang.Enum<AutoScaleAction.AutoScaleMode>
-
- org.openstreetmap.josm.actions.AutoScaleAction.AutoScaleMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AutoScaleAction.AutoScaleMode>
- Enclosing class:
- AutoScaleAction
public static enum AutoScaleAction.AutoScaleMode extends java.lang.Enum<AutoScaleAction.AutoScaleMode>
A list of things we can zoom to. The zoom target is given depending on the mode.- Since:
- 14221
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFLICT
Zoom to the first selected conflictDATA
Zoom the window so that all the data fills the window areaDOWNLOAD
Zoom the view to last downloaded dataLAYER
Zoom the window so that all the data on the currently selected layer fills the window areaNEXT
Zoom to the next zoomed to scale and location (zoom redo)PREVIOUS
Zoom to the previous zoomed to scale and location (zoom undo)PROBLEM
Zoom the view to problemSELECTION
Zoom the window so that only data which is currently selected fills the window area
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
label
-
Constructor Summary
Constructors Modifier Constructor Description private
AutoScaleMode(java.lang.String label)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEnglishLabel()
Returns the English label.java.lang.String
getLocalizedLabel()
Returns the localized label.static AutoScaleAction.AutoScaleMode
of(java.lang.String englishLabel)
ReturnsAutoScaleMode
for a given English labelstatic AutoScaleAction.AutoScaleMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AutoScaleAction.AutoScaleMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA
public static final AutoScaleAction.AutoScaleMode DATA
Zoom the window so that all the data fills the window area
-
LAYER
public static final AutoScaleAction.AutoScaleMode LAYER
Zoom the window so that all the data on the currently selected layer fills the window area
-
SELECTION
public static final AutoScaleAction.AutoScaleMode SELECTION
Zoom the window so that only data which is currently selected fills the window area
-
CONFLICT
public static final AutoScaleAction.AutoScaleMode CONFLICT
Zoom to the first selected conflict
-
DOWNLOAD
public static final AutoScaleAction.AutoScaleMode DOWNLOAD
Zoom the view to last downloaded data
-
PROBLEM
public static final AutoScaleAction.AutoScaleMode PROBLEM
Zoom the view to problem
-
PREVIOUS
public static final AutoScaleAction.AutoScaleMode PREVIOUS
Zoom to the previous zoomed to scale and location (zoom undo)
-
NEXT
public static final AutoScaleAction.AutoScaleMode NEXT
Zoom to the next zoomed to scale and location (zoom redo)
-
-
Field Detail
-
label
private final java.lang.String label
-
-
Constructor Detail
-
AutoScaleMode
private AutoScaleMode(java.lang.String label)
-
-
Method Detail
-
values
public static AutoScaleAction.AutoScaleMode[] 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 (AutoScaleAction.AutoScaleMode c : AutoScaleAction.AutoScaleMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutoScaleAction.AutoScaleMode 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
-
getEnglishLabel
public java.lang.String getEnglishLabel()
Returns the English label. Used for retrieving icons.- Returns:
- the English label
-
getLocalizedLabel
public java.lang.String getLocalizedLabel()
Returns the localized label. Used for display- Returns:
- the localized label
-
of
public static AutoScaleAction.AutoScaleMode of(java.lang.String englishLabel)
ReturnsAutoScaleMode
for a given English label- Parameters:
englishLabel
- English label- Returns:
AutoScaleMode
for given English label- Throws:
java.lang.IllegalArgumentException
- if English label is unknown
-
-