Enum Class OsmLineType

java.lang.Object
java.lang.Enum<OsmLineType>
org.ka2ddo.yaac.osm.OsmLineType
All Implemented Interfaces:
Serializable, Comparable<OsmLineType>, Constable

public enum OsmLineType extends Enum<OsmLineType>
Enumerate the types of lines that can be drawn on rendered OSM maps.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • SOLID_STROKE

      public static final OsmLineType SOLID_STROKE
      AWT Stroke for a solid line 1 pixel wide.
    • DASHED_STROKE

      public static final OsmLineType DASHED_STROKE
      AWT Stroke for a dashed (6 pixels long) line 1 pixel wide.
    • DOTTED_STROKE

      public static final OsmLineType DOTTED_STROKE
      AWT Stroke for a dotted line 1 pixel wide.
    • LONG_DOTTED_STROKE

      public static final OsmLineType LONG_DOTTED_STROKE
      AWT Stroke for a 1-pixel-wide line with long dots (3 pixels long).
    • DASH_DOT_STROKE

      public static final OsmLineType DASH_DOT_STROKE
      AWT Stroke for a 1-pixel-wide line of alternating dots and dashes.
    • W_SOLID_STROKE

      public static final OsmLineType W_SOLID_STROKE
      AWT Stroke for a 2-pixel-wide solid line.
    • DW_SOLID_STROKE

      public static final OsmLineType DW_SOLID_STROKE
      AWT Stroke for a 4-pixel-wide solid line.
    • RAILROAD_STROKE

      public static final OsmLineType RAILROAD_STROKE
      The default stroke for drawing a railroad track Way.
    • PIPELINE_STROKE

      public static final OsmLineType PIPELINE_STROKE
      The default stroke for drawing a pipeline.
  • Method Details

    • values

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

      public static OsmLineType valueOf(String name)
      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 name
      NullPointerException - if the argument is null