Package org.openstreetmap.josm.gui.layer
Enum MapGridPaintable.GridType
- java.lang.Object
-
- java.lang.Enum<MapGridPaintable.GridType>
-
- org.openstreetmap.josm.gui.layer.MapGridPaintable.GridType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MapGridPaintable.GridType>
- Enclosing class:
- MapGridPaintable
public static enum MapGridPaintable.GridType extends java.lang.Enum<MapGridPaintable.GridType>
The kind of coordinates a grid is aligned to.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateGridType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MapGridPaintable.GridTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MapGridPaintable.GridType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LATLON
public static final MapGridPaintable.GridType LATLON
lines of constant latitude and longitude, spacing in degrees
-
PROJECTED
public static final MapGridPaintable.GridType PROJECTED
lines of constant projected east/north coordinate (optionally rotated), spacing in metres
-
-
Constructor Detail
-
GridType
private GridType()
-
-
Method Detail
-
values
public static MapGridPaintable.GridType[] 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 (MapGridPaintable.GridType c : MapGridPaintable.GridType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapGridPaintable.GridType 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
-
-