|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.CopyrightCollection
public final class CopyrightCollection
Manages copyright messages displayed on maps of custom map type. If you don't implement custom map types, then you don't need to use this class. A copyright collection contains information about which copyright to display for which region on the map at which zoom level. This is important for map types that display heterogeneous data such as the satellite map type.
TileLayer.TileLayer(CopyrightCollection, int, int)
Constructor Summary | |
---|---|
CopyrightCollection()
Creates an empty copyright collection. |
|
CopyrightCollection(java.lang.String prefix)
Creates an empty copyright collection with the given prefix. |
Method Summary | |
---|---|
void |
addCopyright(Copyright copyright)
Adds a copyright to this collection. |
void |
addNewCopyrightHandler(NewCopyrightHandler handler)
Add a handler for "newcopyright" events. |
java.lang.String |
getCopyrightNotice(LatLngBounds bounds,
int zoomLevel)
Returns the copyright notice for the given viewport. |
java.lang.String[] |
getCopyrights(LatLngBounds bounds,
int zoomLevel)
Returns the copyrights that should be displayed for the given viewport. |
void |
removeNewCopyrightHandler(NewCopyrightHandler handler)
Removes a single handler of this copyright collection previously added with addNewCopyrightHandler(NewCopyrightHandler) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyrightCollection()
public CopyrightCollection(java.lang.String prefix)
prefix
- the prefix for every copyrightMethod Detail |
---|
public void addCopyright(Copyright copyright)
copyright
- the copyright to be addedpublic void addNewCopyrightHandler(NewCopyrightHandler handler)
handler
- handler to invoke on mouse click events.public java.lang.String getCopyrightNotice(LatLngBounds bounds, int zoomLevel)
bounds
- the viewport's geographical boundszoomLevel
- the viewport's zoom level
public java.lang.String[] getCopyrights(LatLngBounds bounds, int zoomLevel)
bounds
- the viewport's geographical boundszoomLevel
- the viewport's zoom level
public void removeNewCopyrightHandler(NewCopyrightHandler handler)
addNewCopyrightHandler(NewCopyrightHandler)
.
handler
- the handler to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |