Class TLcdKML22LineStyle
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.style.TLcdKML22AbstractSubStyle
com.luciad.format.kml22.model.style.TLcdKML22AbstractColorStyle
com.luciad.format.kml22.model.style.TLcdKML22LineStyle
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractColorStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractColorStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractSubStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractSubStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thecolorModeelement.static final TLcdDataPropertyData property that maps to thecolorelement.static final Colorstatic final doublestatic final TLcdDataPropertyData property that maps to theLineStyleObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theLineStyleSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thewidthelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22LineStyle(TLcdDataType aType) Creates a newTLcdKML22LineStylewith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptiongetWidth()Returns the width of this line style.voidSets the value of the property that maps to thecolorelement.voidsetColorMode(ELcdKML22ColorMode aValue) Sets the value of the property that maps to thecolorModeelement.voidSets the value of the property that maps to thewidthelement.Methods inherited from class com.luciad.format.kml22.model.style.TLcdKML22AbstractColorStyle
getColor, getColorModeMethods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
-
Field Details
-
DEFAULT_COLOR
-
DEFAULT_WIDTH
public static final double DEFAULT_WIDTH- See Also:
-
WIDTH_PROPERTY
Data property that maps to thewidthelement. The possible values for this property are instances ofDouble. -
LINE_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theLineStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
LINE_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theLineStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
COLOR_PROPERTY
Data property that maps to thecolorelement. The possible values for this property are instances ofColor. -
COLOR_MODE_PROPERTY
Data property that maps to thecolorModeelement. The possible values for this property are instances ofELcdKML22ColorMode. -
ABSTRACT_COLOR_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_COLOR_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractColorStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractSubStyleObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22LineStyle
Creates a newTLcdKML22LineStylewith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
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
Sets the value of the property that maps to thewidthelement.- Parameters:
aValue- the value to set for theWIDTH_PROPERTYproperty.
-
setColor
Sets the value of the property that maps to thecolorelement.- Parameters:
aValue- the value to set for theCOLOR_PROPERTYproperty.
-
setColorMode
Sets the value of the property that maps to thecolorModeelement.- Parameters:
aValue- the value to set for theCOLOR_MODE_PROPERTYproperty.
-