com.mapitz.gwt.googleMaps.client
Class GIcon

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GIcon

public class GIcon
extends com.google.gwt.core.client.JavaScriptObject

An icon specifies the images used to display a GMarker on the map. For browser compatibility reasons, specifying an icon is actually quite complex. Note that you can use the default Maps icon G_DEFAULT_ICON if you don't want to specify your own.

Author:
aglaforge

Method Summary
static GIcon createGIcon(GIcon other)
           
static GIcon createGIcon(GIcon other, java.lang.String url)
           
static GIcon createGIcon(java.lang.String imageUrl)
           
 GIcon getDefaultIcon()
          G_DEFAULT_ICON
 GPoint getIconAnchor()
          The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.
 GSize getIconSize()
          The pixel size of the foreground image of the icon.
 java.lang.String getImage()
          The foreground image URL of the icon.
 int[] getImageMap()
          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.
 GPoint getInfoWindowAnchor()
          infoWindowAnchor GPoint The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.
 java.lang.String getMozPrintImage()
          The URL of the foreground icon image used for printed maps in Firefox/Mozilla.
 java.lang.String getPrintImage()
          The URL of the foreground icon image used for printed maps.
 java.lang.String getPrintShadow()
          The URL of the shadow image used for printed maps.
 java.lang.String getShadow()
          The shadow image URL of the icon.
 GSize getShadowSize()
          The pixel size of the shadow image.
 java.lang.String getTransparent()
          The URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer.
 void setIconAnchor(GPoint gpoint)
          The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.
 void setIconSize(GSize size)
          The pixel size of the foreground image of the icon.
 void setImage(java.lang.String url)
          The foreground image URL of the icon.
 void setImageMap(int[] val)
          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.
 void setInfoWindowAnchor(GPoint gpoint)
          infoWindowAnchor GPoint The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.
 void setMozPrintImage(java.lang.String url)
          The URL of the foreground icon image used for printed maps in Firefox/Mozilla.
 void setPrintImage(java.lang.String url)
          The URL of the foreground icon image used for printed maps.
 void setPrintShadow(java.lang.String url)
          The URL of the shadow image used for printed maps.
 void setShadow(java.lang.String url)
          The shadow image URL of the icon.
 void setShadowSize(GSize size)
          The pixel size of the shadow image.
 void setTransparent(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
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createGIcon

public static GIcon createGIcon(GIcon other,
                                java.lang.String url)

createGIcon

public static GIcon createGIcon(GIcon other)

createGIcon

public static GIcon createGIcon(java.lang.String imageUrl)

getDefaultIcon

public GIcon getDefaultIcon()
G_DEFAULT_ICON


getImage

public java.lang.String getImage()
The foreground image URL of the icon.


setImage

public void setImage(java.lang.String url)
The foreground image URL of the icon.


getShadow

public java.lang.String getShadow()
The shadow image URL of the icon.


setShadow

public void setShadow(java.lang.String url)
The shadow image URL of the icon.


getIconSize

public GSize getIconSize()
The pixel size of the foreground image of the icon.


setIconSize

public void setIconSize(GSize size)
The pixel size of the foreground image of the icon.


getShadowSize

public GSize getShadowSize()
The pixel size of the shadow image.


setShadowSize

public void setShadowSize(GSize size)
The pixel size of the shadow image.


setIconAnchor

public void setIconAnchor(GPoint gpoint)
The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.


getIconAnchor

public GPoint getIconAnchor()
The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.


setInfoWindowAnchor

public void setInfoWindowAnchor(GPoint gpoint)
infoWindowAnchor GPoint The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.


getInfoWindowAnchor

public GPoint getInfoWindowAnchor()
infoWindowAnchor GPoint The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.


getPrintImage

public java.lang.String getPrintImage()
The URL of the foreground icon image used for printed maps. It must be the same size as the main icon image given by image.


setPrintImage

public void setPrintImage(java.lang.String url)
The URL of the foreground icon image used for printed maps. It must be the same size as the main icon image given by image.


getMozPrintImage

public java.lang.String getMozPrintImage()
The URL of the foreground icon image used for printed maps in Firefox/Mozilla. It must be the same size as the main icon image given by image.


setMozPrintImage

public void setMozPrintImage(java.lang.String url)
The URL of the foreground icon image used for printed maps in Firefox/Mozilla. It must be the same size as the main icon image given by image.


getPrintShadow

public java.lang.String getPrintShadow()
The URL of the shadow image used for printed maps. It should be a GIF image since most browsers cannot print PNG images.


setPrintShadow

public void setPrintShadow(java.lang.String url)
The URL of the shadow image used for printed maps. It should be a GIF image since most browsers cannot print PNG images.


getTransparent

public java.lang.String getTransparent()
The URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. This image should be a 24-bit PNG version of the main icon image with 1% opacity, but the same shape and size as the main icon.


setTransparent

public void setTransparent(java.lang.String url)
The URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. This image should be a 24-bit PNG version of the main icon image with 1% opacity, but the same shape and size as the main icon.


getImageMap

public int[] getImageMap()
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.


setImageMap

public void setImageMap(int[] val)
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.