public enum Place extends java.lang.Enum<Place>
| Enum Constant and Description |
|---|
archipelago |
borough |
city |
continent |
country |
county |
district |
hamlet |
island |
islet |
isolated_dwelling |
locality |
neighbourhood |
province |
region |
state |
suburb |
town |
township |
user_defined |
village |
| Modifier and Type | Method and Description |
|---|---|
WayType |
getAdminLevel()
Gets the numeric administrative level that is associated with this level of place.
|
float |
getMaxZoom()
Get the scale value below which labels for this kind of Place will be displayed.
|
float |
getMinZoom()
Get the scale value above which labels for this kind of Place will be displayed.
|
void |
loadZoom(java.util.prefs.Preferences node)
Load persisted configuration data for this Place enum
|
static Place[] |
nonClonedValues() |
void |
saveZoom(java.util.prefs.Preferences node)
Save persisted configuration data for this Place enum
|
void |
setMaxZoom(float maxZoom)
Set the scale value below which labels for this kind of Place will be displayed.
|
void |
setMinZoom(float minZoom)
Set the scale value above which labels for this kind of Place will be displayed.
|
static Place |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static Place |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Place[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Place user_defined
public static final Place isolated_dwelling
public static final Place neighbourhood
public static final Place hamlet
public static final Place village
public static final Place town
public static final Place suburb
public static final Place city
public static final Place continent
public static final Place country
public static final Place county
public static final Place region
public static final Place state
public static final Place locality
public static final Place district
public static final Place borough
public static final Place island
public static final Place islet
public static final Place archipelago
public static final Place township
public static final Place province
public static Place[] values()
for (Place c : Place.values()) System.out.println(c);
public static Place valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Place[] nonClonedValues()
public float getMinZoom()
public void setMinZoom(float minZoom)
minZoom - scale valuepublic float getMaxZoom()
public void setMaxZoom(float maxZoom)
maxZoom - scale valuepublic WayType getAdminLevel()
public static Place value(java.lang.String name)
name - String to convert into an Enumpublic void loadZoom(java.util.prefs.Preferences node)
node - the Preferences node containing persisted Place datapublic void saveZoom(java.util.prefs.Preferences node)
node - the Preferences node containing persisted Place data