|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.util.Beautifier com.jalios.jtaglib.ChartTagBeautifier
public class ChartTagBeautifier
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.util.Beautifier |
---|
html, locale, truncate |
Constructor Summary | |
---|---|
ChartTagBeautifier()
|
|
ChartTagBeautifier(Beautifier beautifier)
|
|
ChartTagBeautifier(Beautifier beautifier,
Beautifier legendBeautifier)
|
Method Summary | |
---|---|
String |
beautify(String str)
String beautifier. |
String |
beautifyLegend(String legend)
Called for each legend of the the chart with no value. |
String |
beautifyLegend(String legend,
Integer[] values)
Called for each legend of the chart which has a value associated to it. |
String |
beautifyTitle(String title)
String beautifier for the chart title. |
void |
printChartElementClass(StringBuffer sb,
String legend,
int value,
String display)
Called for each value in chart, allow you to add any class to this value. |
void |
printChartElementStyle(StringBuffer sb,
String legend,
int value,
String display)
Called for each value in chart, allow you to add any style to this value. |
void |
setLocale(Locale locale)
|
Methods inherited from class com.jalios.util.Beautifier |
---|
getHtml, getLocale, setHtml |
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
Constructor Detail |
---|
public ChartTagBeautifier()
public ChartTagBeautifier(Beautifier beautifier)
public ChartTagBeautifier(Beautifier beautifier, Beautifier legendBeautifier)
Method Detail |
---|
public String beautify(String str)
beautify
in class Beautifier
public void printChartElementStyle(StringBuffer sb, String legend, int value, String display)
sb
- the string buffer to append tolegend
- the legend associated with this valuevalue
- the value printeddisplay
- the format of the chart (see CharTag.DISPLAY_VCHART ChartTag.DISPLAY_HCHART)public void printChartElementClass(StringBuffer sb, String legend, int value, String display)
sb
- the string buffer to append tolegend
- the legend associated with this valuevalue
- the value printeddisplay
- the format of the chart (see CharTag.DISPLAY_VCHART ChartTag.DISPLAY_HCHART)public String beautifyTitle(String title)
title
- string to beautify
public String beautifyLegend(String legend, Integer[] values)
legend
- the legend to beautifyvalues
- the value associated with this legend
public String beautifyLegend(String legend)
legend
- the legend to beautify
public void setLocale(Locale locale)
setLocale
in class Beautifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |