de.micromata.opengis.kml.v_2_2_0.gx
Class AnimatedUpdate

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.AbstractObject
      extended by de.micromata.opengis.kml.v_2_2_0.gx.TourPrimitive
          extended by de.micromata.opengis.kml.v_2_2_0.gx.AnimatedUpdate
All Implemented Interfaces:
java.lang.Cloneable

public class AnimatedUpdate
extends TourPrimitive
implements java.lang.Cloneable

controls changes during a tour to KML features, using . Changes to KML features will not modify the DOM - that is, any changes will be reverted when the tour is over, and will not be saved in the KML at any time.

should also contain a value to specify the length of time in seconds 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.

Refer to Tour timelines in the Touring chapter of the KML Developer's Guide for information about and the tour timeline.

Syntax:
<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:


Field Summary
protected  double duration
          
protected  Update update
          
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
AnimatedUpdate()
           
 
Method Summary
 AnimatedUpdate clone()
           
 Update createAndSetUpdate(java.lang.String targetHref, java.util.List<java.lang.Object> createOrDeleteOrChange)
          Creates a new instance of Update and set it to update.
 boolean equals(java.lang.Object obj)
           
 double getDuration()
           
 Update getUpdate()
           
 int hashCode()
           
 void setDuration(double value)
           
 void setUpdate(Update value)
           
 AnimatedUpdate withDuration(double duration)
          fluent setter
 AnimatedUpdate withId(java.lang.String id)
          fluent setter
 AnimatedUpdate withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 AnimatedUpdate withTargetId(java.lang.String targetId)
          fluent setter
 AnimatedUpdate withUpdate(Update update)
          fluent setter
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
addToObjectSimpleExtension, getId, getObjectSimpleExtension, getTargetId, setId, setObjectSimpleExtension, setTargetId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

duration

protected double duration

5.0 ....

bounce 10.2 ...

extends gx:TourPrimitive by specifying a time-span for events. The time is written as seconds using XML's double datatype.

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 element, it specifies the length of time that the browser takes to fly from the previous point to the specified point.

Syntax:
<gx:duration>0.0</gx:duration>            <!-- double -->
 


update

protected Update update

Specifies an addition, change, or deletion to KML data that has already been loaded using the specified URL. The specifies the .kml or .kmz file whose data (within Google Earth) is to be modified. is always contained in a NetworkLinkControl. Furthermore, the file containing the NetworkLinkControl must have been loaded by a NetworkLink. See the "Topics in KML" page on Updates for a detailed example of how Update works.

With , you can specify any number of Change, Create, and Delete tags for a .kml file or .kmz archive that has previously been loaded with a network link. See .

Syntax:
<Update>
   <targetHref>...<targetHref>    <!-- URL -->
   <Change>...</Change>
   <Create>...</Create>
   <Delete>...</Delete>
 </Update>
Contained By:

Constructor Detail

AnimatedUpdate

public AnimatedUpdate()
Method Detail

getDuration

public double getDuration()
Returns:
possible object is Double
See Also:
duration

setDuration

public void setDuration(double value)
Parameters:
value - allowed object is Double
See Also:
duration

getUpdate

public Update getUpdate()
Returns:
possible object is Update
See Also:
update

setUpdate

public void setUpdate(Update value)
Parameters:
value - allowed object is Update
See Also:
update

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractObject

createAndSetUpdate

public Update createAndSetUpdate(java.lang.String targetHref,
                                 java.util.List<java.lang.Object> createOrDeleteOrChange)
Creates a new instance of Update and set it to update. This method is a short version for: Update update = new Update(); this.setUpdate(update);

Parameters:
createOrDeleteOrChange - required parameter
targetHref - required parameter

withDuration

public AnimatedUpdate withDuration(double duration)
fluent setter

Parameters:
duration - required parameter
See Also:
setDuration(double)

withUpdate

public AnimatedUpdate withUpdate(Update update)
fluent setter

Parameters:
update - required parameter
See Also:
setUpdate(Update)

withObjectSimpleExtension

public AnimatedUpdate withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter

Overrides:
withObjectSimpleExtension in class AbstractObject
Parameters:
objectSimpleExtension - required parameter
See Also:
#setObjectSimpleExtension(List)

withId

public AnimatedUpdate withId(java.lang.String id)
Description copied from class: AbstractObject
fluent setter

Overrides:
withId in class AbstractObject
Parameters:
id - required parameter
See Also:
AbstractObject.setId(String)

withTargetId

public AnimatedUpdate withTargetId(java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter

Overrides:
withTargetId in class AbstractObject
Parameters:
targetId - required parameter
See Also:
AbstractObject.setTargetId(String)

clone

public AnimatedUpdate clone()
Overrides:
clone in class TourPrimitive