|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.overlay.Icon
public class Icon
Wrapper for the Maps API GIcon class, which is like a marker, but allows you to change the shape and other properties.
Field Summary | |
---|---|
static Icon |
DEFAULT_ICON
|
Constructor Summary | |
---|---|
protected |
Icon()
|
Method Summary | |
---|---|
static Icon |
getDefaultIcon()
|
Point |
getDragCrossAnchor()
Returns the pixel coordinate offsets (relative to the the value getIconAnchor() ) of the cross image when an icon is dragged. |
java.lang.String |
getDragCrossImageUrl()
Returns the cross image URL when an icon is dragged. |
Size |
getDragCrossSize()
Returns the pixel size of the cross image when an icon is dragged. |
Point |
getIconAnchor()
Returns the pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
Size |
getIconSize()
Returns the pixel size of the foreground image of the icon. |
com.google.gwt.core.client.JsArrayInteger |
getImageMap()
Returns an array of integers representing the x/y coordinates of the image map we should use to specify the clickable part of the icon image in browsers other than Internet Explorer. |
int[] |
getImageMapArray()
Returns an array of integers representing the x/y coordinates of the image map we should use to specify the clickable part of the icon image in browsers other than Internet Explorer. |
java.lang.String |
getImageURL()
Returns the foreground image URL of the icon. |
Point |
getInfoWindowAnchor()
Returns the pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
int |
getMaxHeight()
Returns the distance in pixels in which a marker will visually "rise" vertically when dragged. |
java.lang.String |
getMozPrintImageURL()
Returns the URL of the foreground icon image used for printed maps in Firefox/Mozilla. |
java.lang.String |
getPrintImageURL()
Returns the URL of the foreground icon image used for printed maps. |
Size |
getShadowSize()
Returns the pixel size of the shadow image. |
java.lang.String |
getShadowURL()
Returns the shadow image URL of the icon. |
java.lang.String |
getTransparentImageURL()
Returns the URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. |
static Icon |
newInstance()
Construct a new Icon object. |
static Icon |
newInstance(Icon icon)
Construct an icon from an existing Icon object. |
static Icon |
newInstance(java.lang.String imageUrl)
Construct an icon from an image loaded from a URL. |
void |
setDragCrossAnchor(Point anchor)
Sets the pixel coordinate offsets relative to the the value getIconAnchor() ) of the cross image when an icon is dragged. |
void |
setDragCrossImageURL(java.lang.String url)
Sets the cross image URL when an icon is dragged. |
void |
setDragCrossSize(Size size)
Sets the pixel size of the cross image when an icon is dragged. |
void |
setIconAnchor(Point anchor)
Sets the pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map. |
void |
setIconSize(Size size)
Sets the pixel size of the foreground image of the icon. |
void |
setImageMap(int[] imageMap)
Sets the clickable part of the icon image in browsers other than Internet Explorer. |
void |
setImageMap(com.google.gwt.core.client.JsArrayInteger imageMap)
Sets the clickable part of the icon image in browsers other than Internet Explorer. |
void |
setImageURL(java.lang.String url)
Sets the foreground image URL of the icon. |
void |
setInfoWindowAnchor(Point anchor)
Sets the pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon. |
void |
setMaxHeight(int height)
Sets the distance in pixels in which a marker will visually "rise" vertically when dragged. |
void |
setMozPrintImageURL(java.lang.String url)
Sets the URL of the foreground icon image used for printed maps in Firefox/Mozilla. |
void |
setPrintImageURL(java.lang.String url)
Sets the URL of the foreground icon image used for printed maps. |
void |
setShadowSize(Size size)
Sets the pixel size of the shadow image. |
void |
setShadowURL(java.lang.String url)
Sets the shadow image URL of the icon. |
void |
setTransparentImageURL(java.lang.String url)
The URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Icon DEFAULT_ICON
Constructor Detail |
---|
protected Icon()
Method Detail |
---|
public static Icon getDefaultIcon()
public static Icon newInstance()
public static Icon newInstance(Icon icon)
icon
- the object to copy.public static Icon newInstance(java.lang.String imageUrl)
imageUrl
- a URL to the image to use for the icon.public final Point getDragCrossAnchor()
getIconAnchor()
) of the cross image when an icon is dragged.
getIconAnchor()
) of the cross image when an icon is
dragged.public final java.lang.String getDragCrossImageUrl()
public final Size getDragCrossSize()
public final Point getIconAnchor()
public final Size getIconSize()
public final com.google.gwt.core.client.JsArrayInteger getImageMap()
getTransparentImageURL()
for Internet Explorer.
public final int[] getImageMapArray()
getTransparentImageURL()
for Internet Explorer.
public final java.lang.String getImageURL()
public final Point getInfoWindowAnchor()
public final int getMaxHeight()
public final java.lang.String getMozPrintImageURL()
setImageURL(String)
. This method is needed because of browser
differences in Mozilla/Firefox.
public final java.lang.String getPrintImageURL()
public final Size getShadowSize()
public final java.lang.String getShadowURL()
public final java.lang.String getTransparentImageURL()
public final void setDragCrossAnchor(Point anchor)
getIconAnchor()
) of the cross image when an icon is dragged.
anchor
- the pixel coordinate offsets relative to the the value
getIconAnchor()
) of the cross image when an icon is
dragged.public final void setDragCrossImageURL(java.lang.String url)
url
- the cross image URL when an icon is dragged.public final void setDragCrossSize(Size size)
size
- the pixel size of the cross image when an icon is dragged.public final void setIconAnchor(Point anchor)
anchor
- the pixel coordinate relative to the top left corner of the
icon image at which this icon is anchored to the map.public final void setIconSize(Size size)
size
- The pixel size of the foreground image of the icon.public final void setImageMap(int[] imageMap)
setTransparentImageURL(String)
for Internet
Explorer.
imageMap
- an array of integers representing the x/y coordinates of
the image map we should use to specify the clickable part of the
icon image in browsers other than Internet Explorer.public final void setImageMap(com.google.gwt.core.client.JsArrayInteger imageMap)
setTransparentImageURL(String)
for Internet
Explorer.
imageMap
- an array of integers representing the x/y coordinates of
the image map we should use to specify the clickable part of the
icon image in browsers other than Internet Explorer.public final void setImageURL(java.lang.String url)
url
- the foreground image URL of the icon.public final void setInfoWindowAnchor(Point anchor)
anchor
- the pixel coordinate relative to the top left corner of the
icon image at which the info window is anchored to this icon.public final void setMaxHeight(int height)
height
- the distance in pixels in which a marker will visually "rise"
vertically when dragged.public final void setMozPrintImageURL(java.lang.String url)
setImageURL(String)
. This method is needed because of browser
differences in Mozilla/Firefox.
url
- the URL of the foreground icon image used for printed maps in
Firefox/Mozilla.public final void setPrintImageURL(java.lang.String url)
url
- the URL of the foreground icon image used for printed maps.public final void setShadowSize(Size size)
size
- the pixel size of the shadow image.public final void setShadowURL(java.lang.String url)
url
- the shadow image URL of the icon.public final void setTransparentImageURL(java.lang.String url)
setImageMap(int[])
.
url
- URL of a virtually transparent version of the foreground icon
image used to capture click events in Internet Explorer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |