public class ChartTagBeautifier extends Beautifier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
html, locale, truncate
Constructor and Description |
---|
ChartTagBeautifier() |
ChartTagBeautifier(Beautifier beautifier) |
ChartTagBeautifier(Beautifier beautifier,
Beautifier legendBeautifier) |
Modifier and Type | Method and Description |
---|---|
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) |
getHtml, getLocale, setHtml
public static final java.lang.String REVISION
public ChartTagBeautifier()
public ChartTagBeautifier(Beautifier beautifier)
public ChartTagBeautifier(Beautifier beautifier, Beautifier legendBeautifier)
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 beautifypublic java.lang.String beautifyLegend(java.lang.String legend, java.lang.Integer[] values)
legend
- the legend to beautifyvalues
- the value associated with this legendpublic java.lang.String beautifyLegend(java.lang.String legend)
legend
- the legend to beautifypublic void setLocale(java.util.Locale locale)
setLocale
in class Beautifier
Copyright © 2001-2010 Jalios SA. All Rights Reserved.