public abstract class Overlay extends Feature implements Cloneable
This is an abstract element and cannot be used directly in a KML file.
<!-- abstract element; do not create --> <!-- Overlay id="ID" --> <!-- GroundOverlay,ScreenOverlay --> <!-- inherited from Feature element --> <name>...</name> <!-- string --> <visibility>1</visibility> <!-- boolean --> <open>0</open> <!-- boolean --> <atom:author>...<atom:author> <!-- xmlns:atom --> <atom:link>...</atom:link> <!-- xmlns:atom --> <address>...</address> <!-- string --> <xal:AddressDetails>...</xal:AddressDetails> <!-- xmlns:xal -->Extends:
<phoneNumber>...</phoneNumber> <!-- string -->
<Snippet maxLines="2">...</Snippet> <!-- string --> <description>...</description> <!-- string --> <AbstractView>...</AbstractView> <!-- Camera or LookAt --> <TimePrimitive>...</TimePrimitive> <styleUrl>...</styleUrl> <!-- anyURI --> <StyleSelector>...</StyleSelector> <Region>...</Region> <Metadata>...</Metadata> <!-- deprecated in KML 2.2 --> <ExtendedData>...</ExtendedData> <!-- new in KML 2.2 --> <!-- specific to Overlay --> <color>ffffffff</color> <!-- kml:color --> <drawOrder>0</drawOrder> <!-- int --> <Icon> <href>...</href> </Icon> <!-- /Overlay -->
| Modifier and Type | Field and Description |
|---|---|
protected String |
color
|
protected int |
drawOrder
|
protected Icon |
icon
|
protected List<AbstractObject> |
overlayObjectExtension
|
protected List<Object> |
overlaySimpleExtension |
abstractView, address, atomAuthor, atomLink, description, extendedData, featureObjectExtension, featureSimpleExtension, metadata, name, open, phoneNumber, region, snippet, snippetd, styleSelector, styleUrl, timePrimitive, visibility, xalAddressDetailsid, objectSimpleExtension, targetId| Constructor and Description |
|---|
Overlay() |
| Modifier and Type | Method and Description |
|---|---|
Overlay |
addToFeatureObjectExtension(AbstractObject featureObjectExtension)
add a value to the featureObjectExtension property collection
|
Overlay |
addToFeatureSimpleExtension(Object featureSimpleExtension)
add a value to the featureSimpleExtension property collection
|
Overlay |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
Overlay |
addToOverlayObjectExtension(AbstractObject overlayObjectExtension)
add a value to the overlayObjectExtension property collection
|
Overlay |
addToOverlaySimpleExtension(Object overlaySimpleExtension)
add a value to the overlaySimpleExtension property collection
|
Overlay |
addToStyleSelector(StyleSelector styleSelector)
add a value to the styleSelector property collection
|
Overlay |
clone() |
Icon |
createAndSetIcon()
Creates a new instance of
Icon and set it to icon. |
boolean |
equals(Object obj) |
String |
getColor() |
int |
getDrawOrder() |
Icon |
getIcon() |
List<AbstractObject> |
getOverlayObjectExtension() |
List<Object> |
getOverlaySimpleExtension() |
int |
hashCode() |
void |
setColor(String value) |
void |
setDrawOrder(int value) |
void |
setFeatureObjectExtension(List<AbstractObject> featureObjectExtension) |
void |
setFeatureSimpleExtension(List<Object> featureSimpleExtension) |
void |
setIcon(Icon value) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setOverlayObjectExtension(List<AbstractObject> overlayObjectExtension) |
void |
setOverlaySimpleExtension(List<Object> overlaySimpleExtension) |
void |
setStyleSelector(List<StyleSelector> styleSelector) |
Overlay |
withAbstractView(AbstractView abstractView)
fluent setter
|
Overlay |
withAddress(String address)
fluent setter
|
Overlay |
withAtomAuthor(Author atomAuthor)
fluent setter
|
Overlay |
withAtomLink(Link atomLink)
fluent setter
|
Overlay |
withColor(String color)
fluent setter
|
Overlay |
withDescription(String description)
fluent setter
|
Overlay |
withDrawOrder(int drawOrder)
fluent setter
|
Overlay |
withExtendedData(ExtendedData extendedData)
fluent setter
|
Overlay |
withFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
fluent setter
|
Overlay |
withFeatureSimpleExtension(List<Object> featureSimpleExtension)
fluent setter
|
Overlay |
withIcon(Icon icon)
fluent setter
|
Overlay |
withId(String id)
fluent setter
|
Overlay |
withMetadata(Metadata metadata)
fluent setter
|
Overlay |
withName(String name)
fluent setter
|
Overlay |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
Overlay |
withOpen(Boolean open)
fluent setter
|
Overlay |
withOverlayObjectExtension(List<AbstractObject> overlayObjectExtension)
fluent setter
|
Overlay |
withOverlaySimpleExtension(List<Object> overlaySimpleExtension)
fluent setter
|
Overlay |
withPhoneNumber(String phoneNumber)
fluent setter
|
Overlay |
withRegion(Region region)
fluent setter
|
Overlay |
withSnippet(Snippet snippet)
fluent setter
|
Overlay |
withSnippetd(String snippetd)
fluent setter
|
Overlay |
withStyleSelector(List<StyleSelector> styleSelector)
fluent setter
|
Overlay |
withStyleUrl(String styleUrl)
fluent setter
|
Overlay |
withTargetId(String targetId)
fluent setter
|
Overlay |
withTimePrimitive(TimePrimitive timePrimitive)
fluent setter
|
Overlay |
withVisibility(Boolean visibility)
fluent setter
|
Overlay |
withXalAddressDetails(AddressDetails xalAddressDetails)
fluent setter
|
createAndAddStyle, createAndAddStyleMap, createAndSetAtomAuthor, createAndSetAtomLink, createAndSetCamera, createAndSetExtendedData, createAndSetLookAt, createAndSetMetadata, createAndSetRegion, createAndSetSnippet, createAndSetTimeSpan, createAndSetTimeStamp, createAndSetXalAddressDetails, getAbstractView, getAddress, getAtomAuthor, getAtomLink, getDescription, getExtendedData, getFeatureObjectExtension, getFeatureSimpleExtension, getMetadata, getName, getPhoneNumber, getRegion, getSnippet, getSnippetd, getStyleSelector, getStyleUrl, getTimePrimitive, getXalAddressDetails, isOpen, isVisibility, setAbstractView, setAddress, setAtomAuthor, setAtomLink, setDescription, setExtendedData, setMetadata, setName, setOpen, setPhoneNumber, setRegion, setSnippet, setSnippetd, setStyleUrl, setTimePrimitive, setVisibility, setXalAddressDetailsgetId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected String color
Color and opacity (alpha) values are expressed in hexadecimal notation. The range
of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent
and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00
to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example,
if you want to apply a blue color with 50 percent opacity to an overlay, you would
specify the following:
Color values are expressed in hexadecimal notation, including opacity (alpha) values.
The order of expression is alpha, blue, green, red (aabbggrr). The range of values
for any one color is 0 to 255 (00 to ff). For opacity, 00 is fully transparent and
ff is fully opaque. For example, if you want to apply a blue color with 50 percent
opacity to an overlay, you would specify the following:
Note: The
protected int drawOrder
This element defines the stacking order for the images in overlapping overlays.
Overlays with higher
protected Icon icon
A custom Icon. In
Defines an image associated with an Icon style or overlay.
Defines the image associated with the Overlay. The
<Icon id="ID">
<!-- specific to Icon -->
<href>...</href> <!-- anyURI -->
<refreshMode>onChange</refreshMode>
<!-- kml:refreshModeEnum: onChange, onInterval, or onExpire -->
<refreshInterval>4</refreshInterval> <!-- float -->
<viewRefreshMode>never</viewRefreshMode>
<!-- kml:viewRefreshModeEnum: never, onStop, onRequest, onRegion -->
<viewRefreshTime>4</viewRefreshTime> <!-- float -->
<viewBoundScale>1</viewBoundScale> <!-- float -->
<viewFormat>...</viewFormat> <!-- string -->
<httpQuery>...</httpQuery> <!-- string -->
</Icon>
Contained By:protected List<AbstractObject> overlayObjectExtension
public void setColor(String value)
value - allowed object is
Stringcolorpublic int getDrawOrder()
IntegerdrawOrderpublic void setDrawOrder(int value)
value - allowed object is
IntegerdrawOrderpublic List<Object> getOverlaySimpleExtension()
overlaySimpleExtensionpublic List<AbstractObject> getOverlayObjectExtension()
overlayObjectExtensionpublic Icon createAndSetIcon()
Icon and set it to icon.
This method is a short version for:
Icon icon = new Icon();
this.setIcon(icon); public void setOverlaySimpleExtension(List<Object> overlaySimpleExtension)
overlaySimpleExtension - overlaySimpleExtensionpublic Overlay addToOverlaySimpleExtension(Object overlaySimpleExtension)
overlaySimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setOverlayObjectExtension(List<AbstractObject> overlayObjectExtension)
overlayObjectExtension - overlayObjectExtensionpublic Overlay addToOverlayObjectExtension(AbstractObject overlayObjectExtension)
overlayObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class FeatureobjectSimpleExtensionpublic Overlay addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class FeatureobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setStyleSelector(List<StyleSelector> styleSelector)
setStyleSelector in class FeaturestyleSelectorpublic Overlay addToStyleSelector(StyleSelector styleSelector)
FeatureaddToStyleSelector in class FeaturestyleSelector - Objects of the following type are allowed in the list: <StyleJAXBElement<StyleSelectorJAXBElement<StyleMappublic void setFeatureSimpleExtension(List<Object> featureSimpleExtension)
setFeatureSimpleExtension in class FeaturefeatureSimpleExtensionpublic Overlay addToFeatureSimpleExtension(Object featureSimpleExtension)
FeatureaddToFeatureSimpleExtension in class FeaturefeatureSimpleExtension - Objects of the following type are allowed in the list: <DoubleJAXBElement<ObjectJAXBElement<Booleanpublic void setFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
setFeatureObjectExtension in class FeaturefeatureObjectExtensionpublic Overlay addToFeatureObjectExtension(AbstractObject featureObjectExtension)
FeatureaddToFeatureObjectExtension in class FeaturefeatureObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic Overlay withColor(String color)
color - required parametersetColor(String)public Overlay withDrawOrder(int drawOrder)
drawOrder - required parametersetDrawOrder(int)public Overlay withIcon(Icon icon)
icon - required parametersetIcon(Icon)public Overlay withOverlaySimpleExtension(List<Object> overlaySimpleExtension)
overlaySimpleExtension - required parameter#setOverlaySimpleExtension(Listpublic Overlay withOverlayObjectExtension(List<AbstractObject> overlayObjectExtension)
overlayObjectExtension - required parameter#setOverlayObjectExtension(List) public Overlay withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class FeatureobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic Overlay withId(String id)
AbstractObjectwithId in class Featureid - required parameterAbstractObject.setId(String)public Overlay withTargetId(String targetId)
AbstractObjectwithTargetId in class FeaturetargetId - required parameterAbstractObject.setTargetId(String)public Overlay withName(String name)
FeaturewithName in class Featurename - required parameterFeature.setName(String)public Overlay withVisibility(Boolean visibility)
FeaturewithVisibility in class Featurevisibility - required parameterFeature.setVisibility(Boolean)public Overlay withOpen(Boolean open)
FeaturewithOpen in class Featureopen - required parameterFeature.setOpen(Boolean)public Overlay withAtomAuthor(Author atomAuthor)
FeaturewithAtomAuthor in class FeatureatomAuthor - required parameterFeature.setAtomAuthor(Author)public Overlay withAtomLink(Link atomLink)
FeaturewithAtomLink in class FeatureatomLink - required parameterFeature.setAtomLink(Link)public Overlay withAddress(String address)
FeaturewithAddress in class Featureaddress - required parameterFeature.setAddress(String)public Overlay withXalAddressDetails(AddressDetails xalAddressDetails)
FeaturewithXalAddressDetails in class FeaturexalAddressDetails - required parameterFeature.setXalAddressDetails(AddressDetails)public Overlay withPhoneNumber(String phoneNumber)
FeaturewithPhoneNumber in class FeaturephoneNumber - required parameterFeature.setPhoneNumber(String)public Overlay withSnippet(Snippet snippet)
FeaturewithSnippet in class Featuresnippet - required parameterFeature.setSnippet(Snippet)public Overlay withSnippetd(String snippetd)
FeaturewithSnippetd in class Featuresnippetd - required parameterFeature.setSnippetd(String)public Overlay withDescription(String description)
FeaturewithDescription in class Featuredescription - required parameterFeature.setDescription(String)public Overlay withAbstractView(AbstractView abstractView)
FeaturewithAbstractView in class FeatureabstractView - required parameterFeature.setAbstractView(AbstractView)public Overlay withTimePrimitive(TimePrimitive timePrimitive)
FeaturewithTimePrimitive in class FeaturetimePrimitive - required parameterFeature.setTimePrimitive(TimePrimitive)public Overlay withStyleUrl(String styleUrl)
FeaturewithStyleUrl in class FeaturestyleUrl - required parameterFeature.setStyleUrl(String)public Overlay withStyleSelector(List<StyleSelector> styleSelector)
FeaturewithStyleSelector in class FeaturestyleSelector - required parameter#setStyleSelector(List) public Overlay withRegion(Region region)
FeaturewithRegion in class Featureregion - required parameterFeature.setRegion(Region)public Overlay withMetadata(Metadata metadata)
FeaturewithMetadata in class Featuremetadata - required parameterFeature.setMetadata(Metadata)public Overlay withExtendedData(ExtendedData extendedData)
FeaturewithExtendedData in class FeatureextendedData - required parameterFeature.setExtendedData(ExtendedData)public Overlay withFeatureSimpleExtension(List<Object> featureSimpleExtension)
FeaturewithFeatureSimpleExtension in class FeaturefeatureSimpleExtension - required parameter#setFeatureSimpleExtension(Listpublic Overlay withFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
FeaturewithFeatureObjectExtension in class FeaturefeatureObjectExtension - required parameter#setFeatureObjectExtension(List) Copyright © 2014 Micromata GmbH. All rights reserved.