Class LegendTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.mapbox.LegendTag
- All Implemented Interfaces:
- Serializable,- IterationTag,- JspTag,- Tag
A JSP Tag to display a legend entry for a MapBox marker.
- Since:
- 1.0
- Version:
- 5.0
- Author:
- Luke
- See Also:
- 
Field SummaryFields inherited from class javax.servlet.jsp.tagext.TagSupportid, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTagEVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.TagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintdoEndTag()Renders the marker image and legend text to the JSP output stream.voidrelease()Releases the tag's state variables.voidsetClassName(String cName) Sets the CSS class name for the marker legend.voidSets the marker color.voidSets the marker legend.Methods inherited from class javax.servlet.jsp.tagext.TagSupportdoAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
- 
Constructor Details- 
LegendTagpublic LegendTag()
 
- 
- 
Method Details- 
setColor
- 
setLegend
- 
setClassNameSets the CSS class name for the marker legend.- Parameters:
- cName- the CSS class name
 
- 
releasepublic void release()Releases the tag's state variables.- Specified by:
- releasein interface- Tag
- Overrides:
- releasein class- TagSupport
 
- 
doEndTagRenders the marker image and legend text to the JSP output stream.- Specified by:
- doEndTagin interface- Tag
- Overrides:
- doEndTagin class- TagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
- JspException- if an error occurs
 
 
-