|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.maps.client.streetview.StreetviewPanoramaWidget
public class StreetviewPanoramaWidget
A class wrapping GStreetviewPanorama object that holds an instance of the Flash® Street View Panorama viewer.
Nested Class Summary | |
---|---|
static class |
StreetviewPanoramaWidget.ErrorValue
An enum equivalents for error codes passed to StreetviewErrorHandler . |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
StreetviewPanoramaWidget()
Creates new StreetviewPanoramaWidget . |
|
StreetviewPanoramaWidget(StreetviewPanoramaOptions options)
Creates new StreetviewPanoramaWidget with specified options. |
Method Summary | |
---|---|
void |
addErrorHandler(StreetviewErrorHandler handler)
Adds a handler for error events. |
void |
addInitializedHandler(StreetviewInitializedHandler handler)
Adds a handler for initialized events. |
void |
addPitchChangedHandler(StreetviewPitchChangedHandler handler)
Adds a handler for pitch change events. |
void |
addYawChangedHandler(StreetviewYawChangedHandler handler)
Adds a handler for yaw change events. |
void |
addZoomChangedHandler(StreetviewZoomChangedHandler handler)
Adds a handler for zoom change events. |
void |
checkResize()
Notifies the flash viewer of a change of the size of its container. |
void |
followLink(double yaw)
Follows a link from the current panorama to a neighbouring panorama. |
LatLng |
getLatLng()
Returns the latitude and longitude of the panorama object. |
java.lang.String |
getPanoId()
Returns the unique id of the panorama object. |
Pov |
getPov()
Returns the current point of view ( Pov ) displayed in the flash
viewer. |
void |
hide()
Hides the flash viewer. |
boolean |
isHidden()
Returns true if and only if the flash viewer associated with
this object is hidden. |
void |
panTo(Pov pov,
boolean longRoute)
Changes the current point of view ( Pov ) displayed in the flash
viewer without changing the location. |
void |
remove()
Removes the instance of the flash viewer currently associated with this object from the DOM. |
void |
removeErrorHandler(StreetviewErrorHandler handler)
Removes a handler for error events. |
void |
removeInitializedHandler(StreetviewInitializedHandler handler)
Removes a handler for initialized events. |
void |
removePitchChangedHandler(StreetviewPitchChangedHandler handler)
Removes a handler for pitch changed events. |
void |
removeYawChangedHandler(StreetviewYawChangedHandler handler)
Removes a handler for yaw changed events. |
void |
removeZoomChangedHandler(StreetviewZoomChangedHandler handler)
Removes a handler for zoom changed events. |
void |
setLocationAndPov(LatLng latLng,
Pov pov)
Sets the location and point of view ( Pov ) of the flash viewer. |
void |
setPov(Pov pov)
Changes the current point of view ( Pov ) displayed in the flash
viewer without changing the location. |
void |
setUserPhoto(PhotoSpec photoSpec)
Shows a user-contributed photo in the flash viewer. |
void |
show()
Shows the flash viewer. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StreetviewPanoramaWidget()
StreetviewPanoramaWidget
.
public StreetviewPanoramaWidget(StreetviewPanoramaOptions options)
StreetviewPanoramaWidget
with specified options.
Method Detail |
---|
public void addErrorHandler(StreetviewErrorHandler handler)
handler
- the handler to handle error eenum value for the passed error
code or null
if error coventspublic void addInitializedHandler(StreetviewInitializedHandler handler)
handler
- the handler to handle initialized eventspublic void addPitchChangedHandler(StreetviewPitchChangedHandler handler)
handler
- the handler to handle pitch change eventspublic void addYawChangedHandler(StreetviewYawChangedHandler handler)
handler
- the handler to handle yaw change eventspublic void addZoomChangedHandler(StreetviewZoomChangedHandler handler)
handler
- the handler to handle zoom change eventspublic void checkResize()
public void followLink(double yaw)
yaw
- the yaw specifying the direction of the neighbouring panorama;public LatLng getLatLng()
public java.lang.String getPanoId()
public Pov getPov()
Pov
) displayed in the flash
viewer.
Pov
) displayed in the flash
viewer.public void hide()
public boolean isHidden()
true
if and only if the flash viewer associated with
this object is hidden.
true
if and only if the flash viewer associated with
this object is hidden.public void panTo(Pov pov, boolean longRoute)
Pov
) displayed in the flash
viewer without changing the location. Performs a smooth animation from the
current POV to the new POV. If longRoute is set then the animation will
follow a long route around the sphere, otherwise the shortest route.
pov
- the new point of view to perform an animation tolongRoute
- if true
the animation will follow a long
route around the sphere, otherwise the shortest route.public void remove()
public void removeErrorHandler(StreetviewErrorHandler handler)
handler
- previously added handleraddErrorHandler(StreetviewErrorHandler)
,
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.error"public void removeInitializedHandler(StreetviewInitializedHandler handler)
handler
- previously added handleraddInitializedHandler(StreetviewInitializedHandler)
,
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.initialized"public void removePitchChangedHandler(StreetviewPitchChangedHandler handler)
handler
- previously added handleraddPitchChangedHandler(StreetviewPitchChangedHandler)
,
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.pitchchanged"public void removeYawChangedHandler(StreetviewYawChangedHandler handler)
handler
- previously added handleraddYawChangedHandler(StreetviewYawChangedHandler)
,
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.yawchanged"public void removeZoomChangedHandler(StreetviewZoomChangedHandler handler)
handler
- previously added handleraddZoomChangedHandler(StreetviewZoomChangedHandler)
,
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.zoomchanged"public void setLocationAndPov(LatLng latLng, Pov pov)
Pov
) of the flash viewer.
After calling this function, the viewer will display the nearest location
to the LatLng
provided if one is available. If no data is available
for this location, then the flash player will remain unchanged and emit an
error event.
latLng
- the new latitude and longitudepov
- the new point of viewpublic void setPov(Pov pov)
Pov
) displayed in the flash
viewer without changing the location.
pov
- the new point of viewpublic void setUserPhoto(PhotoSpec photoSpec)
601
- NO_PHOTO
.
photoSpec
- specifies a photo to display.public void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |