Specifies the drawing style (color, color mode, and line width) for all line geometry.
Line geometry includes the outlines of outlined polygons and the extruded "tether"
of Placemark icons (if extrusion is enabled).
Syntax:
<LineStyle id="ID">
<!-- inherited from ColorStyle -->
<color>ffffffff</color> <!-- kml:color -->
<colorMode>normal</colorMode> <!-- colorModeEnum: normal or random -->
<!-- specific to LineStyle -->
<width>1</width> <!-- float -->
</LineStyle>
Extends:
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
width
protected double width
Width of the line, in pixels.
lineStyleSimpleExtension
protected java.util.List<java.lang.Object> lineStyleSimpleExtension
lineStyleObjectExtension
protected java.util.List<AbstractObject > lineStyleObjectExtension
This is an abstract base class and cannot be used directly in a KML file. It provides
the id attribute, which allows unique identification of a KML element, and the targetId
attribute, which is used to reference objects that have already been loaded into
Google Earth. The id attribute must be assigned if the mechanism is to
be used.
Syntax:
<!-- abstract element; do not create -->
<!-- Object id="ID" targetId="NCName" -->
<!-- /Object > -->
LineStyle
public LineStyle ()
getWidth
public double getWidth ()
Returns: possible object is
Double
See Also: width
setWidth
public void setWidth (double value)
Parameters: value
- allowed object is
Double
See Also: width
getLineStyleSimpleExtension
public java.util.List<java.lang.Object> getLineStyleSimpleExtension ()
See Also: lineStyleSimpleExtension
getLineStyleObjectExtension
public java.util.List<AbstractObject > getLineStyleObjectExtension ()
See Also: lineStyleObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class ColorStyle
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class ColorStyle
setLineStyleSimpleExtension
public void setLineStyleSimpleExtension (java.util.List<java.lang.Object> lineStyleSimpleExtension)
Parameters: lineStyleSimpleExtension
- See Also: lineStyleSimpleExtension
addToLineStyleSimpleExtension
public LineStyle addToLineStyleSimpleExtension (java.lang.Object lineStyleSimpleExtension)
add a value to the lineStyleSimpleExtension property collection
Parameters: lineStyleSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setLineStyleObjectExtension
public void setLineStyleObjectExtension (java.util.List<AbstractObject > lineStyleObjectExtension)
Parameters: lineStyleObjectExtension
- See Also: lineStyleObjectExtension
addToLineStyleObjectExtension
public LineStyle addToLineStyleObjectExtension (AbstractObject lineStyleObjectExtension)
add a value to the lineStyleObjectExtension property collection
Parameters: lineStyleObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
setObjectSimpleExtension
public void setObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Overrides: setObjectSimpleExtension
in class ColorStyle
See Also: objectSimpleExtension
addToObjectSimpleExtension
public LineStyle addToObjectSimpleExtension (java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection
Overrides: addToObjectSimpleExtension
in class ColorStyle
Parameters: objectSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setSubStyleSimpleExtension
public void setSubStyleSimpleExtension (java.util.List<java.lang.Object> subStyleSimpleExtension)
Description copied from class: SubStyle
Sets the value of the subStyleSimpleExtension property Objects of the following type(s) are allowed in the list List.
Note:
This method does not make use of the fluent pattern.If you would like to make it fluent, use SubStyle.withSubStyleSimpleExtension(java.util.List)
instead.
Overrides: setSubStyleSimpleExtension
in class ColorStyle
See Also: subStyleSimpleExtension
addToSubStyleSimpleExtension
public LineStyle addToSubStyleSimpleExtension (java.lang.Object subStyleSimpleExtension)
Description copied from class: SubStyle
add a value to the subStyleSimpleExtension property collection
Overrides: addToSubStyleSimpleExtension
in class ColorStyle
Parameters: subStyleSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setSubStyleObjectExtension
public void setSubStyleObjectExtension (java.util.List<AbstractObject > subStyleObjectExtension)
Description copied from class: SubStyle
Sets the value of the subStyleObjectExtension property Objects of the following type(s) are allowed in the list List.
Note:
This method does not make use of the fluent pattern.If you would like to make it fluent, use SubStyle.withSubStyleObjectExtension(java.util.List)
instead.
Overrides: setSubStyleObjectExtension
in class ColorStyle
See Also: subStyleObjectExtension
addToSubStyleObjectExtension
public LineStyle addToSubStyleObjectExtension (AbstractObject subStyleObjectExtension)
Description copied from class: SubStyle
add a value to the subStyleObjectExtension property collection
Overrides: addToSubStyleObjectExtension
in class ColorStyle
Parameters: subStyleObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
setColorStyleSimpleExtension
public void setColorStyleSimpleExtension (java.util.List<java.lang.Object> colorStyleSimpleExtension)
Overrides: setColorStyleSimpleExtension
in class ColorStyle
See Also: colorStyleSimpleExtension
addToColorStyleSimpleExtension
public LineStyle addToColorStyleSimpleExtension (java.lang.Object colorStyleSimpleExtension)
Description copied from class: ColorStyle
add a value to the colorStyleSimpleExtension property collection
Overrides: addToColorStyleSimpleExtension
in class ColorStyle
Parameters: colorStyleSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setColorStyleObjectExtension
public void setColorStyleObjectExtension (java.util.List<AbstractObject > colorStyleObjectExtension)
Overrides: setColorStyleObjectExtension
in class ColorStyle
See Also: colorStyleObjectExtension
addToColorStyleObjectExtension
public LineStyle addToColorStyleObjectExtension (AbstractObject colorStyleObjectExtension)
Description copied from class: ColorStyle
add a value to the colorStyleObjectExtension property collection
Overrides: addToColorStyleObjectExtension
in class ColorStyle
Parameters: colorStyleObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
withWidth
public LineStyle withWidth (double width)
fluent setter
Parameters: width
- required parameterSee Also: setWidth(double)
withLineStyleSimpleExtension
public LineStyle withLineStyleSimpleExtension (java.util.List<java.lang.Object> lineStyleSimpleExtension)
fluent setter
Parameters: lineStyleSimpleExtension
- required parameterSee Also: #setLineStyleSimpleExtension(List)
withLineStyleObjectExtension
public LineStyle withLineStyleObjectExtension (java.util.List<AbstractObject > lineStyleObjectExtension)
fluent setter
Parameters: lineStyleObjectExtension
- required parameterSee Also: #setLineStyleObjectExtension(List)
withObjectSimpleExtension
public LineStyle withObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter
Overrides: withObjectSimpleExtension
in class ColorStyle
Parameters: objectSimpleExtension
- required parameterSee Also: #setObjectSimpleExtension(List)
withId
public LineStyle withId (java.lang.String id)
Description copied from class: AbstractObject
fluent setter
Overrides: withId
in class ColorStyle
Parameters: id
- required parameterSee Also: AbstractObject.setId(String)
withTargetId
public LineStyle withTargetId (java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter
Overrides: withTargetId
in class ColorStyle
Parameters: targetId
- required parameterSee Also: AbstractObject.setTargetId(String)
withSubStyleSimpleExtension
public LineStyle withSubStyleSimpleExtension (java.util.List<java.lang.Object> subStyleSimpleExtension)
Description copied from class: SubStyle
fluent setter
Overrides: withSubStyleSimpleExtension
in class ColorStyle
Parameters: subStyleSimpleExtension
- required parameterSee Also: #setSubStyleSimpleExtension(List)
withSubStyleObjectExtension
public LineStyle withSubStyleObjectExtension (java.util.List<AbstractObject > subStyleObjectExtension)
Description copied from class: SubStyle
fluent setter
Overrides: withSubStyleObjectExtension
in class ColorStyle
Parameters: subStyleObjectExtension
- required parameterSee Also: #setSubStyleObjectExtension(List)
withColor
public LineStyle withColor (java.lang.String color)
Description copied from class: ColorStyle
fluent setter
Overrides: withColor
in class ColorStyle
Parameters: color
- required parameterSee Also: ColorStyle.setColor(String)
withColorMode
public LineStyle withColorMode (ColorMode colorMode)
Description copied from class: ColorStyle
fluent setter
Overrides: withColorMode
in class ColorStyle
Parameters: colorMode
- required parameterSee Also: ColorStyle.setColorMode(ColorMode)
withColorStyleSimpleExtension
public LineStyle withColorStyleSimpleExtension (java.util.List<java.lang.Object> colorStyleSimpleExtension)
Description copied from class: ColorStyle
fluent setter
Overrides: withColorStyleSimpleExtension
in class ColorStyle
Parameters: colorStyleSimpleExtension
- required parameterSee Also: #setColorStyleSimpleExtension(List)
withColorStyleObjectExtension
public LineStyle withColorStyleObjectExtension (java.util.List<AbstractObject > colorStyleObjectExtension)
Description copied from class: ColorStyle
fluent setter
Overrides: withColorStyleObjectExtension
in class ColorStyle
Parameters: colorStyleObjectExtension
- required parameterSee Also: #setColorStyleObjectExtension(List)
clone
public LineStyle clone ()
Overrides: clone
in class ColorStyle