Class TLcdKML22AbstractColorStyle

All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable
Direct Known Subclasses:
TLcdKML22IconStyle, TLcdKML22LabelStyle, TLcdKML22LineStyle, TLcdKML22PolyStyle

public class TLcdKML22AbstractColorStyle extends TLcdKML22AbstractSubStyle
Domain class modeling the KML AbstractColorStyleType type.

Since:
10.0
  • Field Details

    • 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

    • TLcdKML22AbstractColorStyle

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

    • getColor

      public Color getColor()

      Retrieves the color for this abstract color style. If no color was defined, it will return a default color, otherwise it will return super#getColor().

      If the color mode is random, this method will generate a random color and return it.

      Returns:
      a Color
    • getColorMode

      public ELcdKML22ColorMode getColorMode()
      Returns the color mode of this abstract color style. If no color mode was defined, it will return ELcdKML22ColorMode.NORMAL.
      Returns:
      An ELcdKML22ColorMode
    • 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.