public class InfoWindow
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
InfoWindow.FixedAnchor |
Modifier and Type | Method and Description |
---|---|
void |
addHideHandler(HideHandler handler)
Fires when an infoWindow is hidden.
|
void |
addShowHandler(ShowHandler handler)
Fires when an InfoWindow is visible.
|
InfoWindow.FixedAnchor |
getAnchor()
Placement of the InfoWindow with respect to
the graphic.
|
Point |
getCoords()
The anchor point of the InfoWindow in screen coordinates.
|
InfoWindow.FixedAnchor |
getFixedAnchor()
InfoWindow always show with the specified anchor.
|
void |
hide()
Hides the InfoWindow.
|
boolean |
isShowing()
Determines whether the InfoWindow is currently shown on the map.
|
void |
move(Point point)
Moves the InfoWindow to the specified screen point.
|
void |
resize(int width,
int height)
Resizes the InfoWindow to the specified height and width in pixels.
|
void |
setContent(com.google.gwt.dom.client.Element element)
Sets the content in the InfoWindow.
|
void |
setContent(java.lang.String content)
Sets the content in the InfoWindow.
|
void |
setContent(com.google.gwt.user.client.ui.Widget widget)
Sets the content in the InfoWindow.
|
void |
setFixedAnchor(InfoWindow.FixedAnchor fixedAnchor)
Sets the fixed location of the InfoWindow anchor.
|
InfoWindow |
setTitle(java.lang.String title)
Sets the title for the InfoWindow.
|
void |
show(Point point,
java.lang.String anchor)
Shows the InfoWindow to the specified screen point and anchor.
|
public final InfoWindow.FixedAnchor getAnchor()
public final Point getCoords()
public final InfoWindow.FixedAnchor getFixedAnchor()
public final boolean isShowing()
public final void hide()
public final void move(Point point)
point
- - The new anchor point when moving the InfoWindow.public final void resize(int width, int height)
width
- height
- public final void setContent(java.lang.String content)
content
- - The content for the InfoWindow. Can be any valid HTML.public final void setContent(com.google.gwt.dom.client.Element element)
element
- - The content for the InfoWindow. Valid DOM element.public final void setContent(com.google.gwt.user.client.ui.Widget widget)
widget
- - The content for the InfoWindowpublic final void setFixedAnchor(InfoWindow.FixedAnchor fixedAnchor)
fixedAnchor
- public final InfoWindow setTitle(java.lang.String title)
title
- - The title for the InfoWindow. Can be any valid HTML.public final void show(Point point, java.lang.String anchor)
point
- - The new anchor point when moving the InfoWindow.anchor
- - Placement of the InfoWindow with respect to the graphicpublic final void addHideHandler(HideHandler handler)
handler
- public final void addShowHandler(ShowHandler handler)
handler
-