com.lamatek.tags.google
Class GoogleMapImageOverlayTag

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

public class GoogleMapImageOverlayTag
extends TagSupport
implements java.io.Serializable


Constructor Summary
GoogleMapImageOverlayTag()
           
 
Method Summary
 int doStartTag()
          Overrides doStartTag() from TagSupport.
 java.lang.String getId()
          Returns the unique id of this image overlay.
 java.lang.String getLink()
          Returns the url that will be hyperlinked if the overlay is clicked on.
 float getOpacity()
          Returns the opacity level (0-1) of the image overlay.
 java.lang.String getUrl()
          Returns the url of the image to be displayed on the map.
 int getX()
          Returns the x pixel location where the upper-left corner of the image is placed.
 int getY()
          Returns the y pixel location where the upper-left corner of the image is placed.
 void setId(java.lang.String id)
          Sets the id for this image overlay.
 void setLink(java.lang.String link)
          Sets s hyperlink url that will be triggered if the overlay is clicked on.
 void setOpacity(float opacity)
          Sets the opacity level (0-1) of the image overlay.
 void setUrl(java.lang.String url)
          Sets the url of the image to be displayed on the map.
 void setX(int x)
          Sets the x pixel location where the upper-left corner of the image is placed.
 void setY(int y)
          Sets the y pixel location where the upper-left corner of the image is placed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapImageOverlayTag

public GoogleMapImageOverlayTag()
Method Detail

doStartTag

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


getOpacity

public float getOpacity()
Returns the opacity level (0-1) of the image overlay. 0 is invisible, 1 is fully opaque. Default is 0.50.

Returns:
The opacity level as a float.

setOpacity

public void setOpacity(float opacity)
Sets the opacity level (0-1) of the image overlay. 0 is invisible, 1 is fully opaque. Default is 0.50.

Parameters:
opacity - The opacity level as a float.

getX

public int getX()
Returns the x pixel location where the upper-left corner of the image is placed. The location is relative to the map's upper-left hand corner.

Returns:
An int that represents horizontal location in pixels.

getY

public int getY()
Returns the y pixel location where the upper-left corner of the image is placed. The location is relative to the map's upper-left hand corner.

Returns:
An int that represents vertical location in pixels.

setX

public void setX(int x)
Sets the x pixel location where the upper-left corner of the image is placed. The location is relative to the map's upper-left hand corner.

Parameters:
x - int that represents horizontal location in pixels.

setY

public void setY(int y)
Sets the y pixel location where the upper-left corner of the image is placed. The location is relative to the map's upper-left hand corner.

Parameters:
y - int that represents vertical location in pixels.

getUrl

public java.lang.String getUrl()
Returns the url of the image to be displayed on the map.

Returns:
a relative or absolute url to an image file.

setUrl

public void setUrl(java.lang.String url)
Sets the url of the image to be displayed on the map. This can be a relative or absolute url.

Parameters:
url - A valid relative or absolute url to an image file.

getId

public java.lang.String getId()
Returns the unique id of this image overlay.

Returns:
A unique id.

setId

public void setId(java.lang.String id)
Sets the id for this image overlay. It must be unique within the map.

Parameters:
id - The id for this image overlay.

getLink

public java.lang.String getLink()
Returns the url that will be hyperlinked if the overlay is clicked on.

Returns:
A url that will be triggered if the image is clicked on.

setLink

public void setLink(java.lang.String link)
Sets s hyperlink url that will be triggered if the overlay is clicked on.

Parameters:
link - The url that will be called if the image is clicked on.