com.lamatek.tags.google
Class GoogleMapIconTag

java.lang.Object
  extended by TagSupport
      extended by com.lamatek.tags.google.GoogleMapIconTag
All Implemented Interfaces:
java.io.Serializable

public class GoogleMapIconTag
extends TagSupport
implements java.io.Serializable

GoogleMapIconTag This class represents a <googlemaps:icon> tag. Developers should not override this class.

Version:
0.40
Author:
Tom Cole

Constructor Summary
GoogleMapIconTag()
           
 
Method Summary
 int doStartTag()
          Overrides doStartTag() from TagSupport.
 int getAnchorX()
          Returns the anchor point for the icon's x axis.
 int getAnchorY()
          Returns the anchor point for the icon's y axis.
 java.lang.String getIcon()
          Returns the url of the resource used as the image for this icon.
 int getIconHeight()
          Returns the height (in pixels) that this icon image should be rendered.
 int getIconWidth()
          Returns the width (in pixels) that this icon image should be rendered.
 int getInfoWindowAnchorX()
          Returns the x axis of where an info window will anchor itself to the icon.
 int getInfoWindowAnchorY()
          Returns the y axis of where an info window will anchor itself to the icon.
 java.lang.String getShadow()
          Returns the url of the resource used as the image for this icon's shadow.
 int getShadowHeight()
          Returns the height (in pixels) that this icon's shadow image should be rendered.
 int getShadowWidth()
          Returns the width (in pixels) that this icon's shadow image should be rendered.
 void setAnchorX(int anchorX)
          Sets the x axis value for the icon's anchor point.
 void setAnchorY(int anchorY)
          Sets the y axis value for the icon's anchor point.
 void setIcon(java.lang.String icon)
          Sets the url of the resource to be used as the image for this icon.
 void setIconHeight(int iconHeight)
          Sets the height (in pixels) that this icon image should be rendered.
 void setIconWidth(int iconWidth)
          Sets the width (in pixels) that this icon image should be rendered.
 void setInfoWindowAnchorX(int infoWindowAnchorX)
          Sets the x axis of where an info window will anchor itself to the icon.
 void setInfoWindowAnchorY(int infoWindowAnchorY)
          Sets the y axis of where an info window will anchor itself to the icon.
 void setShadow(java.lang.String shadow)
          Sets the url of the resource to be used as the image for this icon's shadow.
 void setShadowHeight(int shadowHeight)
          Sets the height (in pixels) that this icon's shadow image should be rendered.
 void setShadowWidth(int shadowWidth)
          Sets the width (in pixels) that this icon's shadow image should be rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapIconTag

public GoogleMapIconTag()
Method Detail

doStartTag

public int doStartTag()
Overrides doStartTag() from TagSupport. Developers should not override this method.


getAnchorX

public int getAnchorX()
Returns the anchor point for the icon's x axis.

Returns:
The anochor point x axis.

setAnchorX

public void setAnchorX(int anchorX)
Sets the x axis value for the icon's anchor point. This is the point of the icon that is placed at the specified longitude/latitude of the parent marker's point.

Parameters:
anchorX - The x axis value for the anchor point.

getAnchorY

public int getAnchorY()
Returns the anchor point for the icon's y axis.

Returns:
The anochor point y axis.

setAnchorY

public void setAnchorY(int anchorY)
Sets the y axis value for the icon's anchor point. This is the point of the icon that is placed at the specified longitude/latitude of the parent marker's point.

Parameters:
anchorY - The y axis value for the anchor point.

getIcon

public java.lang.String getIcon()
Returns the url of the resource used as the image for this icon. This image should be 24-bit PNG with transparency for maximum effect.

Returns:
A url that points to an image.

setIcon

public void setIcon(java.lang.String icon)
Sets the url of the resource to be used as the image for this icon. This resouce should be 24-bit PNG with transparency for maximum effect.

Parameters:
icon - A url that points to an image.

getIconHeight

public int getIconHeight()
Returns the height (in pixels) that this icon image should be rendered.

Returns:
An int specifying icon height.

setIconHeight

public void setIconHeight(int iconHeight)
Sets the height (in pixels) that this icon image should be rendered.

Parameters:
iconHeight - An int specifying icon height.

getIconWidth

public int getIconWidth()
Returns the width (in pixels) that this icon image should be rendered.

Returns:
An int specifying icon width.

setIconWidth

public void setIconWidth(int iconWidth)
Sets the width (in pixels) that this icon image should be rendered.

Parameters:
iconWidth - An int specifying icon width.

getInfoWindowAnchorX

public int getInfoWindowAnchorX()
Returns the x axis of where an info window will anchor itself to the icon.

Returns:
An int specifying x axis of info window anchor point.

setInfoWindowAnchorX

public void setInfoWindowAnchorX(int infoWindowAnchorX)
Sets the x axis of where an info window will anchor itself to the icon.

Parameters:
infoWindowAnchorX - An int specifying x axis of info window anchor point.

getInfoWindowAnchorY

public int getInfoWindowAnchorY()
Returns the y axis of where an info window will anchor itself to the icon.

Returns:
An int specifying y axis of info window anchor point.

setInfoWindowAnchorY

public void setInfoWindowAnchorY(int infoWindowAnchorY)
Sets the y axis of where an info window will anchor itself to the icon.

Parameters:
infoWindowAnchorY - An int specifying y axis of info window anchor point.

getShadow

public java.lang.String getShadow()
Returns the url of the resource used as the image for this icon's shadow. This image should be 24-bit PNG with transparency for maximum effect.

Returns:
A url that points to an image.

setShadow

public void setShadow(java.lang.String shadow)
Sets the url of the resource to be used as the image for this icon's shadow. This resouce should be 24-bit PNG with transparency for maximum effect.

Parameters:
icon - A url that points to an image.

getShadowHeight

public int getShadowHeight()
Returns the height (in pixels) that this icon's shadow image should be rendered.

Returns:
An int specifying icon height.

setShadowHeight

public void setShadowHeight(int shadowHeight)
Sets the height (in pixels) that this icon's shadow image should be rendered.

Parameters:
shadowHeight - An int specifying icon height.

getShadowWidth

public int getShadowWidth()
Returns the width (in pixels) that this icon's shadow image should be rendered.

Returns:
An int specifying icon width.

setShadowWidth

public void setShadowWidth(int shadowWidth)
Sets the width (in pixels) that this icon's shadow image should be rendered.

Parameters:
shadowWidth - An int specifying icon width.