|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.sf.mapswidgets.Overlay
jp.sf.mapswidgets.Marker
public final class Marker
Instances of this class represent a type of map overlay that shows an icon at a single point on the map.
See Google Maps API documentation [Class Reference > GMarker].
Polyline
Constructor Summary | |
---|---|
Marker(Point point)
Construct a new instance of this class given the point. |
|
Marker(Point point,
Icon icon)
Construct a new instance of this class given the point and the icon. |
Method Summary | |
---|---|
void |
addMarkerListener(MarkerListener listener)
Adds the listener to the collection of listeners who will be notified when the Marker status is changed, by sending it one of the messages defined in the MarkerListener
interface. |
void |
dispose()
Removes the marker from the map. |
Icon |
getIcon()
Get the icon. |
Point |
getPoint()
Get the point. |
void |
removeMarkerListener(MarkerListener listener)
Removes the listener from the collection of listeners who will be notified when the Marker status is changed. |
void |
setIcon(Icon icon)
Set the icon. |
void |
setPoint(Point point)
Set the point. |
void |
showInfoWindow(java.lang.String html)
Displays the info window with the given HTML content. |
void |
showMapWindow()
Shows a blowup of the map. |
void |
showMapWindow(int zoomLevel)
Shows a blowup of the map. |
void |
showMapWindow(int zoomLevel,
MapType type)
Shows a blowup of the map. |
Methods inherited from class jp.sf.mapswidgets.Overlay |
---|
toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Marker(Point point)
point
- the pointpublic Marker(Point point, Icon icon)
point
- the pointicon
- the iconMethod Detail |
---|
public void addMarkerListener(MarkerListener listener)
MarkerListener
interface.
See Google Maps API documentation [Class Reference > GMarker > Events].
clicked()
is called when the user clicks the marker.
infoWindowOpend()
is called after the info window is displayed.
infoWindowClosed()
is called after the info window is closed.
listener
- the listener which should be notified
java.lang.IllegalArgumentException
- MarkerListener
,
MarkerAdapter
,
removeMarkerListener(jp.sf.mapswidgets.MarkerListener)
public void dispose()
public Icon getIcon()
See Google Maps API documentation [Class Reference > GIcon].
public Point getPoint()
See Google Maps API documentation [Class Reference > GPoint].
public void removeMarkerListener(MarkerListener listener)
listener
- the listener which should no longer be notified
java.lang.IllegalArgumentException
- MarkerListener
,
MarkerAdapter
,
addMarkerListener(jp.sf.mapswidgets.MarkerListener)
public void setIcon(Icon icon)
See Google Maps API documentation [Class Reference > GIcon].
icon
- the iconpublic void setPoint(Point point)
See Google Maps API documentation [Class Reference > GPoint].
point
- the pointpublic void showInfoWindow(java.lang.String html)
See Google Maps API documentation [Class Reference > GMarker > openInfoWindowHtml(htmlStr)].
html
- the content of the info windowpublic void showMapWindow()
See Google Maps API documentation [Class Reference > GMarker > showMapBlowup()].
public void showMapWindow(int zoomLevel)
See Google Maps API documentation [Class Reference > GMarker > showMapBlowup(zoomLevel)].
zoomLevel
- the zoom level in the map windowpublic void showMapWindow(int zoomLevel, MapType type)
See Google Maps API documentation [Class Reference > GMarker > showMapBlowup(zoomLevel, mapType)].
zoomLevel
- the zoom level in the map windowtype
- the map type in the map window
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |