public class FlyTo extends TourPrimitive implements Cloneable
<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:| Modifier and Type | Field and Description |
|---|---|
protected AbstractView |
abstractView
|
protected double |
duration
|
protected FlyToMode |
flyToMode |
id, objectSimpleExtension, targetId| Constructor and Description |
|---|
FlyTo() |
| Modifier and Type | Method and Description |
|---|---|
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(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(String id)
fluent setter
|
FlyTo |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
FlyTo |
withTargetId(String targetId)
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 FlyToMode flyToMode
protected AbstractView abstractView
Defines a viewpoint associated with any element derived from Feature. See
This is an abstract element and cannot be used directly in a KML file. This element
is extended by the
<!-- abstract element; do not create -->
<!-- AbstractView --> <!-- Camera, LookAt -->
<!-- extends Object -->
<TimePrimitive>...</TimePrimitive> <!-- gx:TimeSpan or gx:TimeStamp -->
<-- /AbstractView -->
Extends:public double getDuration()
Doubledurationpublic void setDuration(double value)
value - allowed object is
Doubledurationpublic void setFlyToMode(FlyToMode value)
value - allowed object is
FlyToModeflyToModepublic AbstractView getAbstractView()
<AbstractView
<LookAt
<CameraabstractViewpublic void setAbstractView(AbstractView value)
value - allowed object is
<AbstractView
<LookAt
<CameraabstractViewpublic int hashCode()
hashCode in class AbstractObjectpublic boolean equals(Object obj)
equals in class AbstractObjectpublic LookAt createAndSetLookAt()
LookAt and set it to abstractView.
This method is a short version for:
LookAt lookAt = new LookAt();
this.setAbstractView(lookAt); public Camera createAndSetCamera()
Camera and set it to abstractView.
This method is a short version for:
Camera camera = new Camera();
this.setAbstractView(camera); public FlyTo withDuration(double duration)
duration - required parametersetDuration(double)public FlyTo withFlyToMode(FlyToMode flyToMode)
flyToMode - required parametersetFlyToMode(FlyToMode)public FlyTo withAbstractView(AbstractView abstractView)
abstractView - required parametersetAbstractView(AbstractView)public FlyTo withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic FlyTo withId(String id)
AbstractObjectwithId in class AbstractObjectid - required parameterAbstractObject.setId(String)public FlyTo withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractObjecttargetId - required parameterAbstractObject.setTargetId(String)public FlyTo clone()
clone in class TourPrimitiveCopyright © 2014 Micromata GmbH. All rights reserved.