Class TLcdKML22LineStyle

All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdKML22LineStyle extends TLcdKML22AbstractColorStyle
Domain class modeling the KML LineStyleType type.

OGC KML Specification description:

 This element can be used wherever the following element is referenced:

  -kml:AbstractColorStyleGroup

 Specifies the drawing style (color, color mode, and line width) for all line geometry. Line
 geometry includes the kml:Polygon boundaries (kml:LinearRings) for which the
 applicable kml:PolyStyle outline element value is 1 or true, and lines connecting extruded
 kml:Placemarks with a kml:Point geometry to the ground. Use kml:LineStyle to specify
 the color, color mode, and width of the line. For extruded kml:LineStrings, the line itself
 uses the current kml:LineStyle, and the extrusion uses the current kml:PolyStyle.
 

Since:
10.0
  • Field Details

    • DEFAULT_COLOR

      public static final Color DEFAULT_COLOR
    • DEFAULT_WIDTH

      public static final double DEFAULT_WIDTH
      See Also:
    • WIDTH_PROPERTY

      public static final TLcdDataProperty WIDTH_PROPERTY
      Data property that maps to the width element. The possible values for this property are instances of Double.
    • LINE_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty LINE_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
      Data property that maps to the LineStyleSimpleExtensionGroup element. The possible values for this property are instances of List<String>.
    • LINE_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty LINE_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
      Data property that maps to the LineStyleObjectExtensionGroup element. The possible values for this property are instances of List<TLcdKML22AbstractObject>.
    • COLOR_PROPERTY

      public static final TLcdDataProperty COLOR_PROPERTY
      Data property that maps to the color element. The possible values for this property are instances of Color.
    • COLOR_MODE_PROPERTY

      public static final TLcdDataProperty COLOR_MODE_PROPERTY
      Data property that maps to the colorMode element. The possible values for this property are instances of ELcdKML22ColorMode.
    • ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
      Data property that maps to the AbstractColorStyleSimpleExtensionGroup element. The possible values for this property are instances of List<String>.
    • ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
      Data property that maps to the AbstractColorStyleObjectExtensionGroup element. The possible values for this property are instances of List<TLcdKML22AbstractObject>.
    • ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
      Data property that maps to the AbstractSubStyleSimpleExtensionGroup element. The possible values for this property are instances of List<String>.
    • ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY

      public static final TLcdDataProperty ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
      Data property that maps to the AbstractSubStyleObjectExtensionGroup element. The possible values for this property are instances of List<TLcdKML22AbstractObject>.
  • Constructor Details

    • TLcdKML22LineStyle

      public TLcdKML22LineStyle(TLcdDataType aType)
      Creates a new TLcdKML22LineStyle with a custom TLcdDataType.
      Parameters:
      aType - a custom TLcdDataType
  • Method Details

    • getWidth

      public Double getWidth()
      Returns the width of this line style. If no width was defined, it will return the default width of (1.0).
      Returns:
      The width of this line style
    • setWidth

      public void setWidth(Double aValue)
      Sets the value of the property that maps to the width element.
      Parameters:
      aValue - the value to set for the WIDTH_PROPERTY property.
    • setColor

      public void setColor(Color aValue)
      Sets the value of the property that maps to the color element.
      Parameters:
      aValue - the value to set for the COLOR_PROPERTY property.
    • setColorMode

      public void setColorMode(ELcdKML22ColorMode aValue)
      Sets the value of the property that maps to the colorMode element.
      Parameters:
      aValue - the value to set for the COLOR_MODE_PROPERTY property.