|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBodyTagSupport
com.lamatek.tags.google.GoogleMapTrafficTag
public class GoogleMapTrafficTag
GoogleMapTrafficTag This class represents a <googlemaps:traffic> tag. Developers should not subclass nor override it's methods.
| Constructor Summary | |
|---|---|
GoogleMapTrafficTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Overrides doEndTag() from BodyTagSupport. |
int |
doStartTag()
Overrides doStartTag() from BodyTagSupport. |
int |
eventCount()
Returns the number of traffic events found within the mile radius of the provided centerpoint. |
boolean |
geocode(double longitude,
double latitude)
This method geocodes all the traffic events within the specified radius of the longitude and latitude provided, and populates them as TrafficEventBeans. |
TrafficEventBean |
getEvent(int i)
Returns the traffic event at the given index. |
GoogleMapIconTag |
getIcon()
Returns the GoogleMapIconTag that renders this marker, or null if the default markers are used. |
java.lang.String |
getId()
Returns the map unique id for this traffic event. |
java.lang.String |
getPoint()
Returns the id of the point used as the centerpoint for scanning events. |
double |
getRadius()
Returns the radius (in miles) from the centerpoint that will be scanned for traffic events. |
int |
getSeverity()
Returns the minimum severity of traffic events to scan for. |
java.lang.String |
getType()
Retrns the type of events that will be scanned for. |
void |
setIcon(GoogleMapIconTag icon)
Sets a GoogleMapIconTag for this group of events, overriding the standard Google Maps marker icon. |
void |
setId(java.lang.String id)
Sets the map unique id for this traffic event. |
void |
setPoint(java.lang.String point)
Sets the id of the GoogleMapPointTag used as the centerpoint for scanning for events. |
void |
setRadius(double radius)
Sets the radius (in miles) from the centerpoint that will be scanned for traffic events. |
void |
setSeverity(int severity)
Sets the minimum severity levels of events to look for. |
void |
setType(java.lang.String type)
Sets the type of events to look for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoogleMapTrafficTag()
| Method Detail |
|---|
public boolean geocode(double longitude,
double latitude)
longitude - The longitude of the centerpoint from which the radius is derived.latitude - The latitude of the centerpoint from which the radius is derived.public int doStartTag()
public int eventCount()
public TrafficEventBean getEvent(int i)
public int doEndTag()
public java.lang.String getId()
public void setId(java.lang.String id)
id - A unique id.public java.lang.String getPoint()
public void setPoint(java.lang.String point)
point - The id of the GoogleMapsPointTag used as the centerpoint.public double getRadius()
public void setRadius(double radius)
radius - The radius to scan (in miles)public int getSeverity()
public void setType(java.lang.String type)
type - The type of events to look for.public java.lang.String getType()
public void setSeverity(int severity)
public void setIcon(GoogleMapIconTag icon)
icon - An initialized GoogleMapIconTagpublic GoogleMapIconTag getIcon()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||