Package de.kappich.pat.gnd.properties
Enum DistanceRasterType
java.lang.Object
java.lang.Enum<DistanceRasterType>
de.kappich.pat.gnd.properties.DistanceRasterType
- All Implemented Interfaces:
PropertyValue
,java.io.Serializable
,java.lang.Comparable<DistanceRasterType>
,java.lang.constant.Constable
public enum DistanceRasterType extends java.lang.Enum<DistanceRasterType> implements PropertyValue
DistanceRasterType
ist eine Enumeration für die verschiedenen Abstandsstufen des Kilometrierungs- und des Stationierungs-Plugins.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description FIFTY
FIFTY
steht für die 50-Meter-StufeFIFTY_THOUSAND
FIFTY_THOUSAND
steht für die 50-Kilometer-StufeFIVE_HUNDRED
FIVE_HUNDRED
steht für die 500-Meter-StufeFIVE_THOUSAND
FIVE_THOUSAND
steht für die 5-Kilometer-StufeONE_HUNDRED
ONE_HUNDRED
steht für die 100-Meter-StufeONE_THOUSAND
ONE_THOUSAND
steht für die 1-Kilometer-StufeTEN
TEN
steht für die 10-Meter-StufeTEN_THOUSAND
TEN_THOUSAND
steht für die 10-Kilometer-Stufe -
Method Summary
Modifier and Type Method Description java.text.DecimalFormat
getFormat()
static DistanceRasterType
getType(int value)
int
getValue()
void
putPreferences(java.util.prefs.Preferences prefs)
Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.java.lang.String
toString()
static DistanceRasterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DistanceRasterType[]
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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
TEN
TEN
steht für die 10-Meter-Stufe -
FIFTY
FIFTY
steht für die 50-Meter-Stufe -
ONE_HUNDRED
ONE_HUNDRED
steht für die 100-Meter-Stufe -
FIVE_HUNDRED
FIVE_HUNDRED
steht für die 500-Meter-Stufe -
ONE_THOUSAND
ONE_THOUSAND
steht für die 1-Kilometer-Stufe -
FIVE_THOUSAND
FIVE_THOUSAND
steht für die 5-Kilometer-Stufe -
TEN_THOUSAND
TEN_THOUSAND
steht für die 10-Kilometer-Stufe -
FIFTY_THOUSAND
FIFTY_THOUSAND
steht für die 50-Kilometer-Stufe
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getType
- Parameters:
value
- ein Wert einer Kilometrierungsstufe- Returns:
- die zugehörige Kilometrierungsstufe oder
null
-
putPreferences
public void putPreferences(java.util.prefs.Preferences prefs)Description copied from interface:PropertyValue
Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.- Specified by:
putPreferences
in interfacePropertyValue
- Parameters:
prefs
- die Preferences
-
getValue
public int getValue()- Returns:
- den Wert der Kilometrierungsstufe
-
getFormat
public java.text.DecimalFormat getFormat()- Returns:
- das Dezimalformat zur Darstellung des Werts der Kilometrierungsstufe
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<DistanceRasterType>
-