|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.jalios.jtaglib.ChartTag
public class ChartTag
This tag prints a date.
Field Summary | |
---|---|
protected ChartTagBeautifier |
beautifier
|
protected int |
color
|
protected int |
colorFirst
|
protected int |
colorRotate
|
protected String[] |
colors
|
static String[] |
COLORS
|
protected int |
countValue
|
protected ObjectIntTreeMap |
dataMap
|
protected String |
display
|
static String |
DISPLAY_HCHART
|
static String |
DISPLAY_TABLECHART
|
static String |
DISPLAY_VCHART
|
protected int |
fixHLegWidth
|
protected int |
height
|
protected boolean |
isPercent
|
protected Comparator |
lgdCmpt
|
protected Locale |
locale
|
protected int |
max
|
protected int |
maxValue
|
protected boolean |
maxValueSet
|
protected boolean |
mixedChart
|
protected boolean |
printChart
|
protected boolean |
printCSS
|
static String |
REVISION
|
protected String |
sort
|
static String |
SORT_GREATER
|
static String |
SORT_LOWER
|
static String |
SORT_NONE
|
protected String |
title
|
protected String |
unit
|
protected int |
width
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
ChartTag()
|
Method Summary | |
---|---|
protected void |
clean()
|
protected int |
countItems()
Count the number of elements to display depending of the element map |
protected void |
countMaxValue()
Get the max value of the map |
int |
doEndTag()
|
int |
doStartTag()
|
protected void |
printChartElement(StringBuffer sb,
String legend,
int value,
int color,
int spanLegend,
boolean separator)
Print one element of the Chart |
protected void |
printCSS(StringBuffer sb,
int items)
Print the CSS Style to display correctly chart. |
protected void |
printHLegendRatio(StringBuffer sb)
Print Legend 0% - 100% of the Chart |
protected void |
printLegentChart(StringBuffer sb,
List legendList)
Print Legend Square of the chart |
protected List |
printMixedChart(StringBuffer sb,
ObjectIntTreeMap items)
Print all items of mixed charts chart |
protected List |
printNotMixedChart(StringBuffer sb,
ObjectIntTreeMap items)
Print all items of not mixed charts chart |
protected List |
printSingleChart(StringBuffer sb,
ObjectIntTreeMap items,
int color)
Print all items in a chart |
protected void |
printTitle(StringBuffer sb)
|
protected void |
printVChartLegendList(StringBuffer sb,
List legendList)
|
protected void |
printVLegendRatio(StringBuffer sb)
Print Legend 0% - 100% of the Chart |
void |
setBeautifier(ChartTagBeautifier beautifier)
|
void |
setColor(int color)
|
void |
setColorFirst(int colorFirst)
|
void |
setColorRotate(int colorRotate)
|
void |
setColors(String[] colors)
|
void |
setDataMap(ObjectIntTreeMap dataMap)
|
void |
setDisplay(String display)
|
void |
setFixHLengthWidth(int fixHLegWidth)
|
void |
setHeight(int height)
|
void |
setIsPercent(boolean isPercent)
|
void |
setLegendComparator(Comparator legendComparator)
|
void |
setLocale(Locale locale)
|
void |
setMax(int max)
|
void |
setMaxValue(int maxValue)
|
void |
setMixedChart(boolean mixedChart)
|
void |
setPrintChart(boolean printChart)
|
void |
setPrintCSS(boolean printCSS)
|
void |
setSort(String sort)
|
void |
setTitle(String title)
|
void |
setUnit(String unit)
|
void |
setWidth(int width)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static String[] COLORS
public static final String DISPLAY_VCHART
public static final String DISPLAY_HCHART
public static final String DISPLAY_TABLECHART
public static final String SORT_NONE
public static final String SORT_GREATER
public static final String SORT_LOWER
protected boolean printCSS
protected boolean printChart
protected boolean mixedChart
protected boolean isPercent
protected String display
protected int color
protected int colorFirst
protected int colorRotate
protected String[] colors
protected String title
protected ObjectIntTreeMap dataMap
protected int height
protected int width
protected int maxValue
protected boolean maxValueSet
protected int countValue
protected String sort
protected int max
protected int fixHLegWidth
protected ChartTagBeautifier beautifier
protected Comparator lgdCmpt
protected Locale locale
protected String unit
Constructor Detail |
---|
public ChartTag()
Method Detail |
---|
public void setSort(String sort)
public void setMax(int max)
public void setMixedChart(boolean mixedChart)
public void setDataMap(ObjectIntTreeMap dataMap)
public void setPrintChart(boolean printChart)
public void setPrintCSS(boolean printCSS)
public void setIsPercent(boolean isPercent)
public void setColor(int color)
public void setColors(String[] colors)
public void setColorFirst(int colorFirst)
public void setColorRotate(int colorRotate)
public void setTitle(String title)
public void setDisplay(String display)
public void setUnit(String unit)
public void setHeight(int height)
public void setWidth(int width)
public void setMaxValue(int maxValue)
public void setFixHLengthWidth(int fixHLegWidth)
public void setBeautifier(ChartTagBeautifier beautifier)
public void setLegendComparator(Comparator legendComparator)
public void setLocale(Locale locale)
protected void clean()
protected int countItems()
protected void countMaxValue()
protected void printCSS(StringBuffer sb, int items)
sb
- the buffer to print intoitems
- the number of chart color to displayprotected List printSingleChart(StringBuffer sb, ObjectIntTreeMap items, int color)
sb
- the buffer to print intoitems
- a Map of Items String/int[0]
protected List printNotMixedChart(StringBuffer sb, ObjectIntTreeMap items)
sb
- the buffer to print intoitems
- a Map of Items String/int[0]
protected List printMixedChart(StringBuffer sb, ObjectIntTreeMap items)
sb
- the buffer to print intoitems
- a Map of Items String/int[0]
protected void printChartElement(StringBuffer sb, String legend, int value, int color, int spanLegend, boolean separator)
sb
- the buffer to printlegend
- the legend to displayvalue
- the value to display in %color
- the color setspanLegend
- separator
- protected void printHLegendRatio(StringBuffer sb)
sb
- the buffer to printprotected void printVLegendRatio(StringBuffer sb)
sb
- the buffer to printprotected void printLegentChart(StringBuffer sb, List legendList)
sb
- the buffer to printprotected void printTitle(StringBuffer sb)
protected void printVChartLegendList(StringBuffer sb, List legendList)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |