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