public class TLcdKML22LineStyle extends TLcdKML22AbstractColorStyle
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.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractColorStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractColorStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
COLOR_MODE_PROPERTY
Data property that maps to the
colorMode element. |
static TLcdDataProperty |
COLOR_PROPERTY
Data property that maps to the
color element. |
static Color |
DEFAULT_COLOR |
static double |
DEFAULT_WIDTH |
static TLcdDataProperty |
LINE_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
LineStyleObjectExtensionGroup element. |
static TLcdDataProperty |
LINE_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
LineStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
WIDTH_PROPERTY
Data property that maps to the
width element. |
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22LineStyle(TLcdDataType aType)
Creates a new
TLcdKML22LineStyle with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
Double |
getWidth()
Returns the width of this line style.
|
void |
setColor(Color aValue)
Sets the value of the property that maps to the
color element. |
void |
setColorMode(ELcdKML22ColorMode aValue)
Sets the value of the property that maps to the
colorMode element. |
void |
setWidth(Double aValue)
Sets the value of the property that maps to the
width element. |
getColor, getColorMode
getId, getTargetId, setId, setTargetId
public static final Color DEFAULT_COLOR
public static final double DEFAULT_WIDTH
public static final TLcdDataProperty WIDTH_PROPERTY
width
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty LINE_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
LineStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty LINE_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
LineStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty COLOR_PROPERTY
color
element.
The possible values for this property are instances of Color
.public static final TLcdDataProperty COLOR_MODE_PROPERTY
colorMode
element.
The possible values for this property are instances of ELcdKML22ColorMode
.public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractColorStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractColorStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractSubStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractSubStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22LineStyle(TLcdDataType aType)
TLcdKML22LineStyle
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public Double getWidth()
public void setWidth(Double aValue)
width
element.aValue
- the value to set for the WIDTH_PROPERTY
property.public void setColor(Color aValue)
color
element.aValue
- the value to set for the COLOR_PROPERTY
property.public void setColorMode(ELcdKML22ColorMode aValue)
colorMode
element.aValue
- the value to set for the COLOR_MODE_PROPERTY
property.