Note: The tag is deprecated. Use instead.
Specifies how the of a Feature is drawn in the 3D viewer. A custom color,
color mode, and scale for the label (name) can be specified.
Syntax:
<LabelStyle id="ID">
<!-- inherited from ColorStyle -->
<color>ffffffff</color> <!-- kml:color -->
<colorMode>normal</colorMode> <!-- kml:colorModeEnum: normal or random -->
<!-- specific to LabelStyle -->
<scale>1</scale> <!-- float -->
</LabelStyle>
Extends:
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
scale
protected double scale
Note: The tag has been deprecated. Use instead.
Resizes the icon.
Scales a model along the x, y, and z axes in the model's coordinate space.
2.5 2.5 3.5
labelStyleSimpleExtension
protected java.util.List<java.lang.Object> labelStyleSimpleExtension
labelStyleObjectExtension
protected java.util.List<AbstractObject > labelStyleObjectExtension
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 > -->
LabelStyle
public LabelStyle ()
getScale
public double getScale ()
Returns: possible object is
Double
See Also: scale
setScale
public void setScale (double value)
Parameters: value
- allowed object is
Double
See Also: scale
getLabelStyleSimpleExtension
public java.util.List<java.lang.Object> getLabelStyleSimpleExtension ()
See Also: labelStyleSimpleExtension
getLabelStyleObjectExtension
public java.util.List<AbstractObject > getLabelStyleObjectExtension ()
See Also: labelStyleObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class ColorStyle
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class ColorStyle
setLabelStyleSimpleExtension
public void setLabelStyleSimpleExtension (java.util.List<java.lang.Object> labelStyleSimpleExtension)
Parameters: labelStyleSimpleExtension
- See Also: labelStyleSimpleExtension
addToLabelStyleSimpleExtension
public LabelStyle addToLabelStyleSimpleExtension (java.lang.Object labelStyleSimpleExtension)
add a value to the labelStyleSimpleExtension property collection
Parameters: labelStyleSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setLabelStyleObjectExtension
public void setLabelStyleObjectExtension (java.util.List<AbstractObject > labelStyleObjectExtension)
Parameters: labelStyleObjectExtension
- See Also: labelStyleObjectExtension
addToLabelStyleObjectExtension
public LabelStyle addToLabelStyleObjectExtension (AbstractObject labelStyleObjectExtension)
add a value to the labelStyleObjectExtension property collection
Parameters: labelStyleObjectExtension
- 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 ).
withScale
public LabelStyle withScale (double scale)
fluent setter
Parameters: scale
- required parameterSee Also: setScale(double)
withLabelStyleSimpleExtension
public LabelStyle withLabelStyleSimpleExtension (java.util.List<java.lang.Object> labelStyleSimpleExtension)
fluent setter
Parameters: labelStyleSimpleExtension
- required parameterSee Also: #setLabelStyleSimpleExtension(List)
withLabelStyleObjectExtension
public LabelStyle withLabelStyleObjectExtension (java.util.List<AbstractObject > labelStyleObjectExtension)
fluent setter
Parameters: labelStyleObjectExtension
- required parameterSee Also: #setLabelStyleObjectExtension(List)
withObjectSimpleExtension
public LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle 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 LabelStyle clone ()
Overrides: clone
in class ColorStyle