com.lamatek.tags.google
Class GoogleMapCircleTag

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

public class GoogleMapCircleTag
extends TagSupport
implements java.io.Serializable, GoogleMapEventListener

GoogleMapCircleTag This class represents a <googlemaps:circle> tag. Developers should not override this class.

Version:
0.40
Author:
Tom Cole

Constructor Summary
GoogleMapCircleTag()
           
 
Method Summary
 void addEvent(GoogleMapEventTag event)
          Adds an event listener to this overlay.
 int doStartTag()
          Overrides doStartTag() in TagSupport.
 java.lang.String getColor()
          Returns the color used to draw this circle, in hexadecimal format.
 java.util.Vector getEvents()
          Returns the list of currently registered event listeners for this overlay.
 java.lang.String getId()
          Returns the id of this circle.
 float getOpacity()
          Returns the current opacity level (0-1) of the circle line.
 java.lang.String getPoint()
          Returns the point id that is used as the centerpoint.
 double getRadius()
          Returns the current radius set for this circle.
 int getWeight()
          Returns the current width (in pixels) if the circle line.
 void setColor(java.lang.String color)
          Sets the color used to draw this overlay.
 void setId(java.lang.String id)
          Sets the id for this circle.
 void setOpacity(float opacity)
          Sets the 0-1 based opacity of the circle.
 void setPoint(java.lang.String point)
          Sets the id of the point to be used as the centerpoint for the circle.
 void setRadius(double radius)
          Sets the radius of the circle (in miles) from the centerpoint.
 void setWeight(int weight)
          Sets the weight (width) of the circle line in pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapCircleTag

public GoogleMapCircleTag()
Method Detail

doStartTag

public int doStartTag()
Overrides doStartTag() in TagSupport. Developers should not override this method. If they do, they must call super.doStartTag() to ensure the tag get added to the tree properly.


setColor

public void setColor(java.lang.String color)
Sets the color used to draw this overlay. Default is #ff0000.

Parameters:
color - The color code in hexadecimal format.

setOpacity

public void setOpacity(float opacity)
Sets the 0-1 based opacity of the circle. 0 is invisible, 1 is fully opaque.

Parameters:
opacity - A float from 0-1.

setRadius

public void setRadius(double radius)
Sets the radius of the circle (in miles) from the centerpoint.

Parameters:
radius - A double indicating miles.

getRadius

public double getRadius()
Returns the current radius set for this circle.


setWeight

public void setWeight(int weight)
Sets the weight (width) of the circle line in pixels.

Parameters:
weight - An int specifying line width in pixels.

getPoint

public java.lang.String getPoint()
Returns the point id that is used as the centerpoint.

Returns:
A String representing the centerpoint's id.

setPoint

public void setPoint(java.lang.String point)
Sets the id of the point to be used as the centerpoint for the circle.

Parameters:
point - A String representing the id of the centerpoint.

getColor

public java.lang.String getColor()
Returns the color used to draw this circle, in hexadecimal format.

Returns:
A hexadecimal String representing a color.

getOpacity

public float getOpacity()
Returns the current opacity level (0-1) of the circle line.

Returns:
A float indicating opacity level.

getWeight

public int getWeight()
Returns the current width (in pixels) if the circle line.

Returns:
An int representing line width (in pixels).

getId

public java.lang.String getId()
Returns the id of this circle.

Returns:
The circle's id.

setId

public void setId(java.lang.String id)
Sets the id for this circle.

Parameters:
id - The circle's unique id.

addEvent

public void addEvent(GoogleMapEventTag event)
Adds an event listener to this overlay.

Specified by:
addEvent in interface GoogleMapEventListener
Parameters:
event - A GoogleMapEventTag

getEvents

public java.util.Vector getEvents()
Returns the list of currently registered event listeners for this overlay.

Specified by:
getEvents in interface GoogleMapEventListener
Returns:
A Vector of GoogleMapEventTags