|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Place>
org.ka2ddo.yaac.osm.Place
public enum Place
Supported types of the OSM place="*" attribute. See the definition of place on the OpenStreetMap wiki.
Enum Constant Summary | |
---|---|
archipelago
|
|
borough
|
|
city
|
|
continent
|
|
country
|
|
county
|
|
district
|
|
hamlet
|
|
island
|
|
islet
|
|
isolated_dwelling
|
|
locality
|
|
neighbourhood
|
|
province
|
|
region
|
|
state
|
|
suburb
|
|
town
|
|
township
|
|
user_defined
|
|
village
|
Method Summary | |
---|---|
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. |
boolean |
isVisible()
Indicate whether OSM objects tagged with this enum are visible. |
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. |
void |
setVisible(boolean visible)
Set whether OSM objects tagged with this enum should be visible. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ka2ddo.yaac.osm.VisibleEnum |
---|
name, toString |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic static Place[] nonClonedValues()
public boolean isVisible()
isVisible
in interface VisibleEnum
public void setVisible(boolean visible)
setVisible
in interface VisibleEnum
visible
- boolean true if tagged objects should be visiblepublic 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 Enum
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |