Package org.ka2ddo.yaac.osm
Enum Class WayType
- All Implemented Interfaces:
Serializable
,Comparable<WayType>
,Constable
,EnumWithImageName
,EnumMayHaveFlags
This enumeration lists all the supported categories of Ways that can be rendered on the map.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal ColorType
Get the coloring style that should be used by default for this WayType.int
Get the number of lanes normally associated with this type of road.short
Indicates any flag bits implied by this enum type.Return the relative path name of the image file for this enum value.byte
getLayer()
Returns the rendering Z-layer for Ways of this WayType.final float
Get the default maximum zoom level at which labels for this WayType will be rendered.final float
Get the default maximum zoom level at which this WayType will be rendered.final OsmLineType
Get the line-drawing stroke style that should be used by default for this WayType.boolean
Indicate if this WayType represents an administrative or political boundary that shouldn't be tagged with "highway" signs (even if the "ref" tag was used to provide an abbreviated name for the boundary).static WayType[]
Get a non-copied ordered array of all the defined WayType enum values.static WayType
Returns the enum constant of this class with the specified name.static WayType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HWY_MOTORWAY
-
HWY_MOTORWAY_LINK
-
HWY_TRUNK
-
HWY_TRUNK_LINK
-
HWY_PRIMARY
-
HWY_PRIMARY_LINK
-
HWY_SECONDARY
-
HWY_SECONDARY_LINK
-
HWY_TERTIARY
-
HWY_RESIDENTIAL
-
HWY_UNCLASSIFIED
-
HWY_ROAD
-
HWY_LIVING_STREET
-
HWY_SERVICE
-
HWY_TRACK
-
HWY_RACEWAY
-
HWY_SERVICES
-
HWY_REST_AREA
-
HWY_BUS_GUIDEWAY
-
HWY_PATH
-
HWY_CYCLEWAY
-
HWY_FOOTWAY
-
HWY_BRIDLEWAY
-
HWY_BYWAY
-
WWY_UNKNOWN
-
WWY_STREAM
-
WWY_RIVER
-
WWY_RIVERBANK
-
WWY_CANAL
-
WWY_DITCH
-
WWY_RAPIDS
-
WWY_WATERFALL
-
RWY_RAIL
-
RWY_TRAM
-
RWY_LIGHT_RAIL
-
RWY_DISUSED
-
RWY_MONORAIL
-
RWY_UNKNOWN
-
AWY_UNKNOWN
-
AWY_AERODROME
-
AWY_RUNWAY
-
BDY_UNKNOWN
-
BDY_LANDUSE_FOREST
-
BDY_SUBDIVISION
-
BDY_MARITIME
-
BDY_COASTLINE
-
BDY_PARK
-
BDY_PROTECTED_AREA
-
BDY_ADMINISTRATIVE
-
PWR_LINE
-
DONT_SHOW
-
AMENITY
-
NAT_WETLAND
-
BDY_ADMIN_1
-
BDY_ADMIN_2
-
BDY_ADMIN_3
-
BDY_ADMIN_4
-
BDY_ADMIN_5
-
BDY_ADMIN_6
-
BDY_ADMIN_7
-
BDY_ADMIN_8
-
BDY_ADMIN_9
-
BDY_ADMIN_10
-
BDY_ADMIN_11
-
BDY_LANDUSE_GREEN
-
BDY_LANDUSE_INDUSTRIAL
-
AWY_TAXIWAY
-
AWY_APRON
-
WWY_LAKE
-
WWY_POND
-
BDY_LANDUSE_FARM
-
HWY_CONSTRUCTION
-
BDY_LANDUSE_LANDFILL
-
HWY_STEPS
-
BDY_SHORELINE
-
NAT_GLACIER
-
WWY_ROUTE
-
WWY_SEA
-
PIPELINE
-
WALL
-
FENCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getColorType
Get the coloring style that should be used by default for this WayType.- Returns:
- ColorType enum
-
getStroke
Get the line-drawing stroke style that should be used by default for this WayType. Meaningless for area type Ways.- Returns:
- OsmLineType enum
-
getMaxZoomLevel
public final float getMaxZoomLevel()Get the default maximum zoom level at which this WayType will be rendered.- Returns:
- float zoom level
-
getMaxLabelZoom
public final float getMaxLabelZoom()Get the default maximum zoom level at which labels for this WayType will be rendered.- Returns:
- float zoom level
-
nonClonedValues
Get a non-copied ordered array of all the defined WayType enum values.- Returns:
- array of WayTypes
-
getFlagMask
public short getFlagMask()Indicates any flag bits implied by this enum type.- Specified by:
getFlagMask
in interfaceEnumMayHaveFlags
- Returns:
- bitmask of flags if this enum implies flags
-
getLayer
public byte getLayer()Returns the rendering Z-layer for Ways of this WayType. Used by the OpenStreetMap importers to sort less important Ways underneath other Ways.- Returns:
- Z-layer for this WayType
-
getDefaultLaneCount
public int getDefaultLaneCount()Get the number of lanes normally associated with this type of road.- Returns:
- lane count for a one-way version of this road (or approximation for non-roads)
-
getImagePath
Return the relative path name of the image file for this enum value.- Specified by:
getImagePath
in interfaceEnumWithImageName
- Returns:
- path name String, or a two-character APRS symbol table ID and code
-
isAdminBoundary
public boolean isAdminBoundary()Indicate if this WayType represents an administrative or political boundary that shouldn't be tagged with "highway" signs (even if the "ref" tag was used to provide an abbreviated name for the boundary).- Returns:
- boolean true if Ways of this WayType should be rendered as administrative boundaries
-