public class AnimatedUpdate extends TourPrimitive implements Cloneable
Refer to Tour timelines in the Touring chapter of the KML Developer's Guide for
information about
<gx:AnimatedUpdate>
<gx:duration>0.0</gx:duration> <!-- double, specifies time in seconds -->
<Update>
<targetHref>...</targetHref> <!-- required; can contain a URL or be left blank -->
<!-- (to target elements within the same file -->
<Change>...</Change>
<Create>...</Create>
<Delete>...</Delete>
</Update>
</gx:AnimatedUpdate>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected double |
delayedStart |
protected double |
duration
|
protected Update |
update
|
id, objectSimpleExtension, targetId| Constructor and Description |
|---|
AnimatedUpdate() |
| Modifier and Type | Method and Description |
|---|---|
AnimatedUpdate |
clone() |
Update |
createAndSetUpdate(String targetHref,
List<Object> createOrDeleteOrChange)
Creates a new instance of
Update and set it to update. |
boolean |
equals(Object obj) |
double |
getDelayedStart() |
double |
getDuration() |
Update |
getUpdate() |
int |
hashCode() |
void |
setDelayedStart(double value) |
void |
setDuration(double value) |
void |
setUpdate(Update value) |
AnimatedUpdate |
withDelayedStart(double delayedStart)
fluent setter
|
AnimatedUpdate |
withDuration(double duration)
fluent setter
|
AnimatedUpdate |
withId(String id)
fluent setter
|
AnimatedUpdate |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
AnimatedUpdate |
withTargetId(String targetId)
fluent setter
|
AnimatedUpdate |
withUpdate(Update update)
fluent setter
|
addToObjectSimpleExtension, getId, getObjectSimpleExtension, getTargetId, setId, setObjectSimpleExtension, setTargetIdprotected double duration
Duration and
Duration and
Specifies the length of time over which the update takes place. Integer, float, and color fields are smoothly animated from original to new value across the duration; boolean, string, and other values that don't lend to interpolation are updated at the end of the duration.
When a duration is included within a
<gx:duration>0.0</gx:duration> <!-- double -->
protected Update update
Specifies an addition, change, or deletion to KML data that has already been loaded
using the specified URL. The
With
<Update> <targetHref>...<targetHref> <!-- URL --> <Change>...</Change> <Create>...</Create> <Delete>...</Delete> </Update>Contained By:
protected double delayedStart
public double getDuration()
Doubledurationpublic void setDuration(double value)
value - allowed object is
Doubledurationpublic void setUpdate(Update value)
value - allowed object is
Updateupdatepublic double getDelayedStart()
DoubledelayedStartpublic void setDelayedStart(double value)
value - allowed object is
DoubledelayedStartpublic int hashCode()
hashCode in class AbstractObjectpublic boolean equals(Object obj)
equals in class AbstractObjectpublic Update createAndSetUpdate(String targetHref, List<Object> createOrDeleteOrChange)
Update and set it to update.
This method is a short version for:
Update update = new Update();
this.setUpdate(update); createOrDeleteOrChange - required parametertargetHref - required parameterpublic AnimatedUpdate withDuration(double duration)
duration - required parametersetDuration(double)public AnimatedUpdate withUpdate(Update update)
update - required parametersetUpdate(Update)public AnimatedUpdate withDelayedStart(double delayedStart)
delayedStart - required parametersetDelayedStart(double)public AnimatedUpdate withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic AnimatedUpdate withId(String id)
AbstractObjectwithId in class AbstractObjectid - required parameterAbstractObject.setId(String)public AnimatedUpdate withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractObjecttargetId - required parameterAbstractObject.setTargetId(String)public AnimatedUpdate clone()
clone in class TourPrimitiveCopyright © 2014 Micromata GmbH. All rights reserved.