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

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.FlyTo
All Implemented Interfaces:
java.lang.Cloneable

public class FlyTo
extends TourPrimitive
implements java.lang.Cloneable

specifies a point in space to which the browser will fly during a tour. It must contain one AbstractView, and should contain and elements, which specify the time it takes to fly to the defined point from the current point, and the method of flight, respectively.

Syntax:
<gx:FlyTo>
   <gx:duration>0.0</gx:duration>         <!-- double -->
   <gx:flyToMode>bounce</gx:duration>      <!-- smooth or bounce -->
   <!-- AbstractView -->                   <!-- Camera or LookAt --> 
     ...
   <!-- /AbstractView -->
 </gx:FlyTo>
Extends:


Field Summary
protected  AbstractView abstractView
          
protected  double duration
          
protected  FlyToMode flyToMode
           
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
FlyTo()
           
 
Method Summary
 FlyTo clone()
           
 Camera createAndSetCamera()
          Creates a new instance of Camera and set it to abstractView.
 LookAt createAndSetLookAt()
          Creates a new instance of LookAt and set it to abstractView.
 boolean equals(java.lang.Object obj)
           
 AbstractView getAbstractView()
           
 double getDuration()
           
 FlyToMode getFlyToMode()
           
 int hashCode()
           
 void setAbstractView(AbstractView value)
           
 void setDuration(double value)
           
 void setFlyToMode(FlyToMode value)
           
 FlyTo withAbstractView(AbstractView abstractView)
          fluent setter
 FlyTo withDuration(double duration)
          fluent setter
 FlyTo withFlyToMode(FlyToMode flyToMode)
          fluent setter
 FlyTo withId(java.lang.String id)
          fluent setter
 FlyTo withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 FlyTo withTargetId(java.lang.String targetId)
          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 -->
 


flyToMode

protected FlyToMode flyToMode

abstractView

protected AbstractView abstractView

Defines a viewpoint associated with any element derived from Feature. See and .

This is an abstract element and cannot be used directly in a KML file. This element is extended by the and elements.

Syntax:
<!-- abstract element; do not create -->
 <!-- AbstractView -->                   <!-- Camera, LookAt -->                
   <!-- extends Object -->
   <TimePrimitive>...</TimePrimitive>                        <!-- gx:TimeSpan or gx:TimeStamp -->
 <-- /AbstractView -->
Extends:

Constructor Detail

FlyTo

public FlyTo()
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

getFlyToMode

public FlyToMode getFlyToMode()
Returns:
possible object is FlyToMode
See Also:
flyToMode

setFlyToMode

public void setFlyToMode(FlyToMode value)
Parameters:
value - allowed object is FlyToMode
See Also:
flyToMode

getAbstractView

public AbstractView getAbstractView()
Returns:
possible object is <AbstractView <Camera <LookAt
See Also:
abstractView

setAbstractView

public void setAbstractView(AbstractView value)
Parameters:
value - allowed object is <AbstractView <Camera <LookAt
See Also:
abstractView

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractObject

equals

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

createAndSetCamera

public Camera createAndSetCamera()
Creates a new instance of Camera and set it to abstractView. This method is a short version for: Camera camera = new Camera(); this.setAbstractView(camera);


createAndSetLookAt

public LookAt createAndSetLookAt()
Creates a new instance of LookAt and set it to abstractView. This method is a short version for: LookAt lookAt = new LookAt(); this.setAbstractView(lookAt);


withDuration

public FlyTo withDuration(double duration)
fluent setter

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

withFlyToMode

public FlyTo withFlyToMode(FlyToMode flyToMode)
fluent setter

Parameters:
flyToMode - required parameter
See Also:
setFlyToMode(FlyToMode)

withAbstractView

public FlyTo withAbstractView(AbstractView abstractView)
fluent setter

Parameters:
abstractView - required parameter
See Also:
setAbstractView(AbstractView)

withObjectSimpleExtension

public FlyTo 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 FlyTo 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 FlyTo 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 FlyTo clone()
Overrides:
clone in class TourPrimitive