com.google.maps.gwt.client
Class StreetViewPanorama

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.MVCObject
          extended by com.google.maps.gwt.client.StreetViewPanorama

public class StreetViewPanorama
extends MVCObject

Displays the panorama for a given LatLng or panorama ID. A StreetViewPanorama object provides a Street View "viewer" which can be stand-alone within a separate <div> or bound to a Map . THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Nested Class Summary
static interface StreetViewPanorama.Callback
          Callback type for handling asynchronous responses from registerPanoProvider.
static interface StreetViewPanorama.CloseClickHandler
          This event is fired when the close button is clicked.
static interface StreetViewPanorama.LinksChangedHandler
          This event is fired when the panorama's links change.
static interface StreetViewPanorama.PanoChangedHandler
          This event is fired when the panorama's pano id changes.
static interface StreetViewPanorama.PositionChangedHandler
          This event is fired when the panorama's position changes.
static interface StreetViewPanorama.PovChangedHandler
          This event is fired when the panorama's point-of-view changes.
static interface StreetViewPanorama.ResizeHandler
          Developers should trigger this event on the panorama when its div changes size: google.maps.event.trigger(panorama, 'resize') .
static interface StreetViewPanorama.VisibleChangedHandler
          This event is fired when the panorama's visibility changes.
 
Constructor Summary
protected StreetViewPanorama()
          Protected constructor avoids default public constructor.
 
Method Summary
 void addCloseClickListener(StreetViewPanorama.CloseClickHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addCloseClickListenerOnce(StreetViewPanorama.CloseClickHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addLinksChangedListener(StreetViewPanorama.LinksChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addLinksChangedListenerOnce(StreetViewPanorama.LinksChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addPanoChangedListener(StreetViewPanorama.PanoChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addPanoChangedListenerOnce(StreetViewPanorama.PanoChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addPositionChangedListener(StreetViewPanorama.PositionChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addPositionChangedListenerOnce(StreetViewPanorama.PositionChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addPovChangedListener(StreetViewPanorama.PovChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addPovChangedListenerOnce(StreetViewPanorama.PovChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addResizeListener(StreetViewPanorama.ResizeHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addResizeListenerOnce(StreetViewPanorama.ResizeHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addVisibleChangedListener(StreetViewPanorama.VisibleChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addVisibleChangedListenerOnce(StreetViewPanorama.VisibleChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void clearCloseClickListeners()
          Removes all listeners for the given event for the given instance.
 void clearInstanceListeners()
          Removes all listeners for all events for the given instance.
 void clearLinksChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearPanoChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearPositionChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearPovChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearResizeListeners()
          Removes all listeners for the given event for the given instance.
 void clearVisibleChangedListeners()
          Removes all listeners for the given event for the given instance.
static StreetViewPanorama create(Node container)
          Creates a panorama with the passed StreetViewPanoramaOptions .
static StreetViewPanorama create(Node container, StreetViewPanoramaOptions opts)
          Creates a panorama with the passed StreetViewPanoramaOptions .
  getControls()
          Additional controls to attach to the panorama.
  getLinks()
          Returns the set of navigation links for the Street View panorama.
 java.lang.String getPano()
          Returns the current panorama ID for the Street View panorama.
 LatLng getPosition()
          Returns the current LatLng position for the Street View panorama.
 StreetViewPov getPov()
          Returns the current point of view for the Street View panorama.
 boolean getVisible()
          Returns true if the panorama is visible.
 void registerPanoProvider(StreetViewPanorama.Callback provider)
          Set the custom panorama provider called on pano change to load custom panoramas.
 void setControls( controls)
          Additional controls to attach to the panorama.
 void setPano(java.lang.String pano)
          Sets the current panorama ID for the Street View panorama.
 void setPosition(LatLng latLng)
          Sets the current LatLng position for the Street View panorama.
 void setPov(StreetViewPov pov)
          Sets the point of view for the Street View panorama.
 void setVisible(boolean flag)
          Sets to true to make the panorama visible.
 void triggerCloseClick(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerLinksChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerPanoChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerPositionChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerPovChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerResize(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerVisibleChanged(JavaScriptObject... varargs)
          Triggers the given event.
 
Methods inherited from class com.google.maps.gwt.client.MVCObject
bindTo, bindTo, bindTo, bindTo, changed, create, get, notify, set, setValues, setValues, unbind, unbindAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreetViewPanorama

protected StreetViewPanorama()
Protected constructor avoids default public constructor.

Method Detail

create

public static StreetViewPanorama create(Node container,
                                        StreetViewPanoramaOptions opts)
Creates a panorama with the passed StreetViewPanoramaOptions .


create

public static StreetViewPanorama create(Node container)
Creates a panorama with the passed StreetViewPanoramaOptions .


addCloseClickListener

public final void addCloseClickListener(StreetViewPanorama.CloseClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addCloseClickListenerOnce

public final void addCloseClickListenerOnce(StreetViewPanorama.CloseClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addLinksChangedListener

public final void addLinksChangedListener(StreetViewPanorama.LinksChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addLinksChangedListenerOnce

public final void addLinksChangedListenerOnce(StreetViewPanorama.LinksChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addPanoChangedListener

public final void addPanoChangedListener(StreetViewPanorama.PanoChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addPanoChangedListenerOnce

public final void addPanoChangedListenerOnce(StreetViewPanorama.PanoChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addPositionChangedListener

public final void addPositionChangedListener(StreetViewPanorama.PositionChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addPositionChangedListenerOnce

public final void addPositionChangedListenerOnce(StreetViewPanorama.PositionChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addPovChangedListener

public final void addPovChangedListener(StreetViewPanorama.PovChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addPovChangedListenerOnce

public final void addPovChangedListenerOnce(StreetViewPanorama.PovChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addResizeListener

public final void addResizeListener(StreetViewPanorama.ResizeHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addResizeListenerOnce

public final void addResizeListenerOnce(StreetViewPanorama.ResizeHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addVisibleChangedListener

public final void addVisibleChangedListener(StreetViewPanorama.VisibleChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addVisibleChangedListenerOnce

public final void addVisibleChangedListenerOnce(StreetViewPanorama.VisibleChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


clearCloseClickListeners

public final void clearCloseClickListeners()
Removes all listeners for the given event for the given instance.


clearInstanceListeners

public final void clearInstanceListeners()
Removes all listeners for all events for the given instance.


clearLinksChangedListeners

public final void clearLinksChangedListeners()
Removes all listeners for the given event for the given instance.


clearPanoChangedListeners

public final void clearPanoChangedListeners()
Removes all listeners for the given event for the given instance.


clearPositionChangedListeners

public final void clearPositionChangedListeners()
Removes all listeners for the given event for the given instance.


clearPovChangedListeners

public final void clearPovChangedListeners()
Removes all listeners for the given event for the given instance.


clearResizeListeners

public final void clearResizeListeners()
Removes all listeners for the given event for the given instance.


clearVisibleChangedListeners

public final void clearVisibleChangedListeners()
Removes all listeners for the given event for the given instance.


getControls

public final  getControls()
Additional controls to attach to the panorama. To add a control to the panorama, add the control's <div> to the MVCArray corresponding to the ControlPosition where it should be rendered.


getLinks

public final  getLinks()
Returns the set of navigation links for the Street View panorama.


getPano

public final java.lang.String getPano()
Returns the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.


getPosition

public final LatLng getPosition()
Returns the current LatLng position for the Street View panorama.


getPov

public final StreetViewPov getPov()
Returns the current point of view for the Street View panorama.


getVisible

public final boolean getVisible()
Returns true if the panorama is visible. It does not specify whether Street View imagery is available at the specified position.


registerPanoProvider

public final void registerPanoProvider(StreetViewPanorama.Callback provider)
Set the custom panorama provider called on pano change to load custom panoramas.


setControls

public final void setControls( controls)
Additional controls to attach to the panorama. To add a control to the panorama, add the control's <div> to the MVCArray corresponding to the ControlPosition where it should be rendered.


setPano

public final void setPano(java.lang.String pano)
Sets the current panorama ID for the Street View panorama.


setPosition

public final void setPosition(LatLng latLng)
Sets the current LatLng position for the Street View panorama.


setPov

public final void setPov(StreetViewPov pov)
Sets the point of view for the Street View panorama.


setVisible

public final void setVisible(boolean flag)
Sets to true to make the panorama visible. If set to false , the panorama will be hidden whether it is embedded in the map or in its own <div> .


triggerCloseClick

public final void triggerCloseClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerLinksChanged

public final void triggerLinksChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerPanoChanged

public final void triggerPanoChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerPositionChanged

public final void triggerPositionChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerPovChanged

public final void triggerPovChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerResize

public final void triggerResize(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerVisibleChanged

public final void triggerVisibleChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.