com.google.gwt.maps.client.event
Class TrafficOverlayChangedHandler.TrafficOverlayChangedEvent
java.lang.Object
java.util.EventObject
com.google.gwt.maps.client.event.TrafficOverlayChangedHandler.TrafficOverlayChangedEvent
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing interface:
- TrafficOverlayChangedHandler
public static class TrafficOverlayChangedHandler.TrafficOverlayChangedEvent
- extends java.util.EventObject
Encapsulates the arguments for the MapEvent.CHANGED event on a
TrafficOverlay
.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
TrafficOverlay |
getSender()
Returns the instance of the overlay that generated this event. |
boolean |
isTrafficInView()
Returns true if the viewport contains traffic data and
false otherwise. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TrafficOverlayChangedHandler.TrafficOverlayChangedEvent
public TrafficOverlayChangedHandler.TrafficOverlayChangedEvent(TrafficOverlay source,
boolean trafficInView)
getSender
public TrafficOverlay getSender()
- Returns the instance of the overlay that generated this event.
- Returns:
- the instance of the overlay that generated this event.
isTrafficInView
public boolean isTrafficInView()
- Returns
true
if the viewport contains traffic data and
false otherwise. The event works regardless of whether the layer is
hidden or shown.
- Returns:
true
if the viewport contains traffic data and
false otherwise.