public enum Place extends java.lang.Enum<Place> implements EnumMayHaveFlags
Enum Constant and Description |
---|
allotments |
archipelago |
borough |
city |
city_block |
continent |
country |
county |
district |
farm |
hamlet |
island |
islet |
isolated_dwelling |
locality |
municipality |
neighbourhood |
ocean |
plot |
polder |
province |
quarter |
region |
sea |
square |
state |
subdistrict |
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.
|
short |
getFlagMask()
Indicates any flag bits implied by this enum type.
|
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
|
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 final Place sea
public static final Place ocean
public static final Place farm
public static final Place square
public static final Place subdistrict
public static final Place municipality
public static final Place quarter
public static final Place city_block
public static final Place plot
public static final Place allotments
public static final Place polder
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 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 datapublic short getFlagMask()
getFlagMask
in interface EnumMayHaveFlags