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-Stufe
    FIFTY_THOUSAND
    FIFTY_THOUSAND steht für die 50-Kilometer-Stufe
    FIVE_HUNDRED
    FIVE_HUNDRED steht für die 500-Meter-Stufe
    FIVE_THOUSAND
    FIVE_THOUSAND steht für die 5-Kilometer-Stufe
    ONE_HUNDRED
    ONE_HUNDRED steht für die 100-Meter-Stufe
    ONE_THOUSAND
    ONE_THOUSAND steht für die 1-Kilometer-Stufe
    TEN
    TEN steht für die 10-Meter-Stufe
    TEN_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

      public static final DistanceRasterType TEN
      TEN steht für die 10-Meter-Stufe
    • FIFTY

      public static final DistanceRasterType FIFTY
      FIFTY steht für die 50-Meter-Stufe
    • ONE_HUNDRED

      public static final DistanceRasterType ONE_HUNDRED
      ONE_HUNDRED steht für die 100-Meter-Stufe
    • FIVE_HUNDRED

      public static final DistanceRasterType FIVE_HUNDRED
      FIVE_HUNDRED steht für die 500-Meter-Stufe
    • ONE_THOUSAND

      public static final DistanceRasterType ONE_THOUSAND
      ONE_THOUSAND steht für die 1-Kilometer-Stufe
    • FIVE_THOUSAND

      public static final DistanceRasterType FIVE_THOUSAND
      FIVE_THOUSAND steht für die 5-Kilometer-Stufe
    • TEN_THOUSAND

      public static final DistanceRasterType TEN_THOUSAND
      TEN_THOUSAND steht für die 10-Kilometer-Stufe
    • FIFTY_THOUSAND

      public static final DistanceRasterType FIFTY_THOUSAND
      FIFTY_THOUSAND steht für die 50-Kilometer-Stufe
  • Method Details

    • values

      public static DistanceRasterType[] 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

      public static DistanceRasterType valueOf​(java.lang.String name)
      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 name
      java.lang.NullPointerException - if the argument is null
    • getType

      @Nullable public static DistanceRasterType getType​(int value)
      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 interface PropertyValue
      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 class java.lang.Enum<DistanceRasterType>