Syntax:
<PolyStyle id="ID">
<!-- inherited from ColorStyle -->
<color>ffffffff</color> <!-- kml:color -->
<colorMode>normal</colorMode> <!-- kml:colorModeEnum: normal or random -->
<!-- specific to PolyStyle -->
<fill>1</fill> <!-- boolean -->
<outline>1</outline> <!-- boolean -->
</PolyStyle>
Extends:
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fill
protected java.lang.Boolean fill
Boolean value. Specifies whether to fill the polygon.
outline
protected java.lang.Boolean outline
Boolean value. Specifies whether to outline the polygon. Polygon outlines use the
current LineStyle.
polyStyleSimpleExtension
protected java.util.List<java.lang.Object> polyStyleSimpleExtension
polyStyleObjectExtension
protected java.util.List<AbstractObject > polyStyleObjectExtension
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 > -->
PolyStyle
public PolyStyle ()
isFill
public java.lang.Boolean isFill ()
Returns: possible object is
Boolean
setFill
public void setFill (java.lang.Boolean value)
Parameters: value
- allowed object is
Boolean
See Also: fill
isOutline
public java.lang.Boolean isOutline ()
Returns: possible object is
Boolean
setOutline
public void setOutline (java.lang.Boolean value)
Parameters: value
- allowed object is
Boolean
See Also: outline
getPolyStyleSimpleExtension
public java.util.List<java.lang.Object> getPolyStyleSimpleExtension ()
See Also: polyStyleSimpleExtension
getPolyStyleObjectExtension
public java.util.List<AbstractObject > getPolyStyleObjectExtension ()
See Also: polyStyleObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class ColorStyle
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class ColorStyle
setPolyStyleSimpleExtension
public void setPolyStyleSimpleExtension (java.util.List<java.lang.Object> polyStyleSimpleExtension)
Parameters: polyStyleSimpleExtension
- See Also: polyStyleSimpleExtension
addToPolyStyleSimpleExtension
public PolyStyle addToPolyStyleSimpleExtension (java.lang.Object polyStyleSimpleExtension)
add a value to the polyStyleSimpleExtension property collection
Parameters: polyStyleSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setPolyStyleObjectExtension
public void setPolyStyleObjectExtension (java.util.List<AbstractObject > polyStyleObjectExtension)
Parameters: polyStyleObjectExtension
- See Also: polyStyleObjectExtension
addToPolyStyleObjectExtension
public PolyStyle addToPolyStyleObjectExtension (AbstractObject polyStyleObjectExtension)
add a value to the polyStyleObjectExtension property collection
Parameters: polyStyleObjectExtension
- 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 ).
withFill
public PolyStyle withFill (java.lang.Boolean fill)
fluent setter
Parameters: fill
- required parameterSee Also: setFill(Boolean)
withOutline
public PolyStyle withOutline (java.lang.Boolean outline)
fluent setter
Parameters: outline
- required parameterSee Also: setOutline(Boolean)
withPolyStyleSimpleExtension
public PolyStyle withPolyStyleSimpleExtension (java.util.List<java.lang.Object> polyStyleSimpleExtension)
fluent setter
Parameters: polyStyleSimpleExtension
- required parameterSee Also: #setPolyStyleSimpleExtension(List)
withPolyStyleObjectExtension
public PolyStyle withPolyStyleObjectExtension (java.util.List<AbstractObject > polyStyleObjectExtension)
fluent setter
Parameters: polyStyleObjectExtension
- required parameterSee Also: #setPolyStyleObjectExtension(List)
withObjectSimpleExtension
public PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle 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 PolyStyle clone ()
Overrides: clone
in class ColorStyle