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 FIFTYFIFTYsteht für die 50-Meter-StufeFIFTY_THOUSANDFIFTY_THOUSANDsteht für die 50-Kilometer-StufeFIVE_HUNDREDFIVE_HUNDREDsteht für die 500-Meter-StufeFIVE_THOUSANDFIVE_THOUSANDsteht für die 5-Kilometer-StufeONE_HUNDREDONE_HUNDREDsteht für die 100-Meter-StufeONE_THOUSANDONE_THOUSANDsteht für die 1-Kilometer-StufeTENTENsteht für die 10-Meter-StufeTEN_THOUSANDTEN_THOUSANDsteht für die 10-Kilometer-Stufe -
Method Summary
Modifier and Type Method Description java.text.DecimalFormatgetFormat()static DistanceRasterTypegetType(int value)intgetValue()voidputPreferences(java.util.prefs.Preferences prefs)Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.java.lang.StringtoString()static DistanceRasterTypevalueOf(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, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
TEN
TENsteht für die 10-Meter-Stufe -
FIFTY
FIFTYsteht für die 50-Meter-Stufe -
ONE_HUNDRED
ONE_HUNDREDsteht für die 100-Meter-Stufe -
FIVE_HUNDRED
FIVE_HUNDREDsteht für die 500-Meter-Stufe -
ONE_THOUSAND
ONE_THOUSANDsteht für die 1-Kilometer-Stufe -
FIVE_THOUSAND
FIVE_THOUSANDsteht für die 5-Kilometer-Stufe -
TEN_THOUSAND
TEN_THOUSANDsteht für die 10-Kilometer-Stufe -
FIFTY_THOUSAND
FIFTY_THOUSANDsteht 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:PropertyValueDiese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.- Specified by:
putPreferencesin 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:
toStringin classjava.lang.Enum<DistanceRasterType>
-