|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.micromata.opengis.kml.v_2_2_0.AbstractObject
de.micromata.opengis.kml.v_2_2_0.BasicLink
de.micromata.opengis.kml.v_2_2_0.Link
public class Link
(required). see .
specifies the location of any of the following:
If the file specified in
KML files fetched by network links Image files used in any Overlay (the
Specifies the URL of the website containing this KML or KMZ file. Be sure to include the namespace for this element in any KML file that uses it: xmlns:atom="http://www.w3.org/2005/Atom" (see the sample that follows).
Specifies the file to load and optional refresh parameters. See .
The element replaces the
The file is conditionally loaded and refreshed, depending on the refresh parameters
supplied here. Two different sets of refresh parameters can be specified: one set
is based on time (
Tip: To display the top-level Folder or Document within a Network Link in the List View, assign an ID to the Folder or Document. Without this ID, only the child object names are displayed in the List View.
When a file is fetched, the URL that is sent to the server is composed of three pieces of information:
the href (Hypertext Reference) that specifies the file to load. an arbitrary format
string that is created from (a) parameters that you specify in the
<Link id="ID">
<!-- specific to Link -->
<href>...</href> <!-- string -->
<refreshMode>onChange</refreshMode>
<!-- refreshModeEnum: onChange, onInterval, or onExpire -->
<refreshInterval>4</refreshInterval> <!-- float -->
<viewRefreshMode>never</viewRefreshMode>
<!-- viewRefreshModeEnum: never, onStop, onRequest, onRegion -->
<viewRefreshTime>4</viewRefreshTime> <!-- float -->
<viewBoundScale>1</viewBoundScale> <!-- float -->
<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</viewFormat>
<!-- string -->
<httpQuery>...</httpQuery> <!-- string -->
</Link>
Extends:
| Field Summary | |
|---|---|
protected java.lang.String |
httpQuery
|
protected java.util.List<AbstractObject> |
linkObjectExtension
|
protected java.util.List<java.lang.Object> |
linkSimpleExtension
|
protected double |
refreshInterval
|
protected RefreshMode |
refreshMode
RefreshMode |
protected double |
viewBoundScale
|
protected java.lang.String |
viewFormat
|
protected ViewRefreshMode |
viewRefreshMode
ViewRefreshMode |
protected double |
viewRefreshTime
|
| Fields inherited from class de.micromata.opengis.kml.v_2_2_0.BasicLink |
|---|
basicLinkObjectExtension, basicLinkSimpleExtension, href |
| Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject |
|---|
id, objectSimpleExtension, targetId |
| Constructor Summary | |
|---|---|
Link()
|
|
| Method Summary | |
|---|---|
Link |
addToBasicLinkObjectExtension(AbstractObject basicLinkObjectExtension)
add a value to the basicLinkObjectExtension property collection |
Link |
addToBasicLinkSimpleExtension(java.lang.Object basicLinkSimpleExtension)
add a value to the basicLinkSimpleExtension property collection |
Link |
addToLinkObjectExtension(AbstractObject linkObjectExtension)
add a value to the linkObjectExtension property collection |
Link |
addToLinkSimpleExtension(java.lang.Object linkSimpleExtension)
add a value to the linkSimpleExtension property collection |
Link |
addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection |
Link |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHttpQuery()
|
java.util.List<AbstractObject> |
getLinkObjectExtension()
|
java.util.List<java.lang.Object> |
getLinkSimpleExtension()
|
double |
getRefreshInterval()
|
RefreshMode |
getRefreshMode()
|
double |
getViewBoundScale()
|
java.lang.String |
getViewFormat()
|
ViewRefreshMode |
getViewRefreshMode()
|
double |
getViewRefreshTime()
|
int |
hashCode()
|
void |
setBasicLinkObjectExtension(java.util.List<AbstractObject> basicLinkObjectExtension)
Sets the value of the basicLinkObjectExtension property Objects of the following type(s) are allowed in the list List |
void |
setBasicLinkSimpleExtension(java.util.List<java.lang.Object> basicLinkSimpleExtension)
Sets the value of the basicLinkSimpleExtension property Objects of the following type(s) are allowed in the list List |
void |
setHttpQuery(java.lang.String value)
|
void |
setLinkObjectExtension(java.util.List<AbstractObject> linkObjectExtension)
|
void |
setLinkSimpleExtension(java.util.List<java.lang.Object> linkSimpleExtension)
|
void |
setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
|
void |
setRefreshInterval(double value)
|
void |
setRefreshMode(RefreshMode value)
|
void |
setViewBoundScale(double value)
|
void |
setViewFormat(java.lang.String value)
|
void |
setViewRefreshMode(ViewRefreshMode value)
|
void |
setViewRefreshTime(double value)
|
Link |
withBasicLinkObjectExtension(java.util.List<AbstractObject> basicLinkObjectExtension)
fluent setter |
Link |
withBasicLinkSimpleExtension(java.util.List<java.lang.Object> basicLinkSimpleExtension)
fluent setter |
Link |
withHref(java.lang.String href)
fluent setter |
Link |
withHttpQuery(java.lang.String httpQuery)
fluent setter |
Link |
withId(java.lang.String id)
fluent setter |
Link |
withLinkObjectExtension(java.util.List<AbstractObject> linkObjectExtension)
fluent setter |
Link |
withLinkSimpleExtension(java.util.List<java.lang.Object> linkSimpleExtension)
fluent setter |
Link |
withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
fluent setter |
Link |
withRefreshInterval(double refreshInterval)
fluent setter |
Link |
withRefreshMode(RefreshMode refreshMode)
fluent setter |
Link |
withTargetId(java.lang.String targetId)
fluent setter |
Link |
withViewBoundScale(double viewBoundScale)
fluent setter |
Link |
withViewFormat(java.lang.String viewFormat)
fluent setter |
Link |
withViewRefreshMode(ViewRefreshMode viewRefreshMode)
fluent setter |
Link |
withViewRefreshTime(double viewRefreshTime)
fluent setter |
| Methods inherited from class de.micromata.opengis.kml.v_2_2_0.BasicLink |
|---|
getBasicLinkObjectExtension, getBasicLinkSimpleExtension, getHref, setHref |
| Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject |
|---|
getId, getObjectSimpleExtension, getTargetId, setId, setTargetId |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RefreshMode refreshMode
onChange, onInterval, onExpire
See Also: See
protected double refreshInterval
Indicates to refresh the file every n seconds.
protected ViewRefreshMode viewRefreshMode
never, onRequest, onStop, onRegion
See Also: See
protected double viewRefreshTime
After camera movement stops, specifies the number of seconds to wait before refreshing
the view. (See
protected double viewBoundScale
Scales the BBOX parameters before sending them to the server. A value less than 1 specifies to use less than the full view (screen). A value greater than 1 specifies to fetch an area that extends beyond the edges of the current view.
protected java.lang.String viewFormat
BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]
If you specify a
If you specify an empty
Specifies the format of the query string that is appended to the Link's
This information matches the Web Map Service (WMS) bounding box specification.
You can also specify a custom set of viewing parameters to add to the query string. If you supply a format string, it is used instead of the BBOX information. If you also want the BBOX information, you need to add those parameters along with the custom parameters.
You can use any of the following parameters in your format string (and Google Earth
will substitute the appropriate current value at the time it creates the query string):
[lookatLon], [lookatLat] - longitude and latitude of the point that
protected java.lang.String httpQuery
Appends information to the query string, based on the parameters specified. (Google Earth substitutes the appropriate current value at the time it creates the query string.) The following parameters are supported: [clientVersion] [kmlVersion] [clientName] [language]
protected java.util.List<java.lang.Object> linkSimpleExtension
protected java.util.List<AbstractObject> linkObjectExtension
| Constructor Detail |
|---|
public Link()
| Method Detail |
|---|
public RefreshMode getRefreshMode()
RefreshModerefreshModepublic void setRefreshMode(RefreshMode value)
value - allowed object is
RefreshModerefreshModepublic double getRefreshInterval()
DoublerefreshIntervalpublic void setRefreshInterval(double value)
value - allowed object is
DoublerefreshIntervalpublic ViewRefreshMode getViewRefreshMode()
ViewRefreshModeviewRefreshModepublic void setViewRefreshMode(ViewRefreshMode value)
value - allowed object is
ViewRefreshModeviewRefreshModepublic double getViewRefreshTime()
DoubleviewRefreshTimepublic void setViewRefreshTime(double value)
value - allowed object is
DoubleviewRefreshTimepublic double getViewBoundScale()
DoubleviewBoundScalepublic void setViewBoundScale(double value)
value - allowed object is
DoubleviewBoundScalepublic java.lang.String getViewFormat()
StringviewFormatpublic void setViewFormat(java.lang.String value)
value - allowed object is
StringviewFormatpublic java.lang.String getHttpQuery()
StringhttpQuerypublic void setHttpQuery(java.lang.String value)
value - allowed object is
StringhttpQuerypublic java.util.List<java.lang.Object> getLinkSimpleExtension()
linkSimpleExtensionpublic java.util.List<AbstractObject> getLinkObjectExtension()
linkObjectExtensionpublic int hashCode()
hashCode in class BasicLinkpublic boolean equals(java.lang.Object obj)
equals in class BasicLinkpublic void setLinkSimpleExtension(java.util.List<java.lang.Object> linkSimpleExtension)
linkSimpleExtension - linkSimpleExtensionpublic Link addToLinkSimpleExtension(java.lang.Object linkSimpleExtension)
linkSimpleExtension - Objects of the following type are allowed in the list: Object
public void setLinkObjectExtension(java.util.List<AbstractObject> linkObjectExtension)
linkObjectExtension - linkObjectExtensionpublic Link addToLinkObjectExtension(AbstractObject linkObjectExtension)
linkObjectExtension - Objects of the following type are allowed in the list: AbstractObject
public void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
setObjectSimpleExtension in class BasicLinkobjectSimpleExtensionpublic Link addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
AbstractObject
addToObjectSimpleExtension in class BasicLinkobjectSimpleExtension - Objects of the following type are allowed in the list: Object
public void setBasicLinkSimpleExtension(java.util.List<java.lang.Object> basicLinkSimpleExtension)
BasicLinkpublic Link addToBasicLinkSimpleExtension(java.lang.Object basicLinkSimpleExtension)
BasicLink
addToBasicLinkSimpleExtension in class BasicLinkbasicLinkSimpleExtension - Objects of the following type are allowed in the list: Object
public void setBasicLinkObjectExtension(java.util.List<AbstractObject> basicLinkObjectExtension)
BasicLinkNote:
This method does not make use of the fluent pattern.If you would like to make it fluent, use BasicLink.withBasicLinkObjectExtension(java.util.List instead.
setBasicLinkObjectExtension in class BasicLinkbasicLinkObjectExtensionpublic Link addToBasicLinkObjectExtension(AbstractObject basicLinkObjectExtension)
BasicLink
addToBasicLinkObjectExtension in class BasicLinkbasicLinkObjectExtension - Objects of the following type are allowed in the list: AbstractObject
public Link withRefreshMode(RefreshMode refreshMode)
refreshMode - required parametersetRefreshMode(RefreshMode)public Link withRefreshInterval(double refreshInterval)
refreshInterval - required parametersetRefreshInterval(double)public Link withViewRefreshMode(ViewRefreshMode viewRefreshMode)
viewRefreshMode - required parametersetViewRefreshMode(ViewRefreshMode)public Link withViewRefreshTime(double viewRefreshTime)
viewRefreshTime - required parametersetViewRefreshTime(double)public Link withViewBoundScale(double viewBoundScale)
viewBoundScale - required parametersetViewBoundScale(double)public Link withViewFormat(java.lang.String viewFormat)
viewFormat - required parametersetViewFormat(String)public Link withHttpQuery(java.lang.String httpQuery)
httpQuery - required parametersetHttpQuery(String)public Link withLinkSimpleExtension(java.util.List<java.lang.Object> linkSimpleExtension)
linkSimpleExtension - required parameter#setLinkSimpleExtension(Listpublic Link withLinkObjectExtension(java.util.List<AbstractObject> linkObjectExtension)
linkObjectExtension - required parameter#setLinkObjectExtension(List) public Link withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
AbstractObject
withObjectSimpleExtension in class BasicLinkobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic Link withId(java.lang.String id)
AbstractObject
withId in class BasicLinkid - required parameterAbstractObject.setId(String)public Link withTargetId(java.lang.String targetId)
AbstractObject
withTargetId in class BasicLinktargetId - required parameterAbstractObject.setTargetId(String)public Link withHref(java.lang.String href)
BasicLink
withHref in class BasicLinkhref - required parameterBasicLink.setHref(String)public Link withBasicLinkSimpleExtension(java.util.List<java.lang.Object> basicLinkSimpleExtension)
BasicLink
withBasicLinkSimpleExtension in class BasicLinkbasicLinkSimpleExtension - required parameter#setBasicLinkSimpleExtension(Listpublic Link withBasicLinkObjectExtension(java.util.List<AbstractObject> basicLinkObjectExtension)
BasicLink
withBasicLinkObjectExtension in class BasicLinkbasicLinkObjectExtension - required parameter#setBasicLinkObjectExtension(List) public Link clone()
clone in class BasicLink
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||