com.lamatek.tags.google
Class GoogleMapBoxTag

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

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

GoogleMapBoxTag This class represents a <googlemaps:box> tag. Developers should not override this class.

Version:
0.40
Author:
Tom Cole

Constructor Summary
GoogleMapBoxTag()
           
 
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 of the line used to draw this box.
 java.util.Vector getEvents()
          Returns the list of currently registered event listeners for this overlay.
 float getOpacity()
          Returns the 0-1 based opacity of the line used to draw this box.
 java.lang.String getPoint(int p)
          Returns the points stored at the supplied iteration.
 java.lang.String getPointlist()
          Returns the list of points used to draw this box.
 int getWeight()
          Returns the weight of the line used to draw this box.
 int pointCount()
          Returns the number of points used to draw this box.
 void setColor(java.lang.String color)
          Sets the color used (in hexadecimal form) to draw this box.
 void setOpacity(float opacity)
          Sets the 0-1 based opacity of the line used to draw this box.
 void setPointlist(java.lang.String pointlist)
          Sets the list of points used to draw this box.
 void setWeight(int weight)
          Sets the width of the line used to draw this box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapBoxTag

public GoogleMapBoxTag()
Method Detail

doStartTag

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


setColor

public void setColor(java.lang.String color)
Sets the color used (in hexadecimal form) to draw this box.

Parameters:
color - The color in hexadecimal format.

setWeight

public void setWeight(int weight)
Sets the width of the line used to draw this box.

Parameters:
weight - The line width in pixels.

getOpacity

public float getOpacity()
Returns the 0-1 based opacity of the line used to draw this box.

Returns:
The opacity of this box from 0 to 1.

setOpacity

public void setOpacity(float opacity)
Sets the 0-1 based opacity of the line used to draw this box.

Parameters:
opacity - A float from 0-1.

getPointlist

public java.lang.String getPointlist()
Returns the list of points used to draw this box.

Returns:
A comma separated list of point ids.

setPointlist

public void setPointlist(java.lang.String pointlist)
Sets the list of points used to draw this box.

Parameters:
pointlist - A comma separated list of point ids.

pointCount

public int pointCount()
Returns the number of points used to draw this box.

Returns:
The number of points in this box.

getPoint

public java.lang.String getPoint(int p)
Returns the points stored at the supplied iteration.

Parameters:
p - The interator.
Returns:
The id of the point at the requested iteration.

getColor

public java.lang.String getColor()
Returns the color of the line used to draw this box.

Returns:
The color in hexadecimal format.

getWeight

public int getWeight()
Returns the weight of the line used to draw this box.

Returns:
The line width in pixels.

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