|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.text.Format
java.text.NumberFormat
com.inet.report.chart.format.PatternNumberFormat
public class PatternNumberFormat
This is a number format defined by a pattern.
For more information to the pattern see
http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PATTERN
The default pattern with thousands separator and two decimals. |
| Constructor Summary | |
|---|---|
PatternNumberFormat()
Creates a new instance of format. |
|
| Method Summary | |
|---|---|
PatternNumberFormat |
clone()
Overrides Cloneable |
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
|
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
|
java.lang.String |
getPattern()
Returns the format pattern. |
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition parsePosition)
|
void |
readProperties(org.w3c.dom.Element element)
Reads the XML properties of a chart format. |
void |
saveProperties(java.lang.StringBuffer buffer,
int depth)
Writes the format properties to output. |
void |
setFormatingProperties(com.inet.report.chart.format.FormatingProperties properties)
Sets the location specific formating properties, e.g. locale, time zone, first day of week. |
void |
setLocale(java.util.Locale locale)
Sets the locale of chart. |
void |
setPattern(java.lang.String pattern)
Sets the format pattern. |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PATTERN
| Constructor Detail |
|---|
public PatternNumberFormat()
| Method Detail |
|---|
public java.lang.String getPattern()
setPattern(String)public void setPattern(java.lang.String pattern)
pattern - the pattern (null not permitted)getPattern()public void setLocale(java.util.Locale locale)
setLocale in interface ChartFormatlocale - the locale (null not permitted)public void setFormatingProperties(com.inet.report.chart.format.FormatingProperties properties)
setFormatingProperties in interface ChartFormatproperties - the properties object (null not permitted)
public java.lang.StringBuffer format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormat
public java.lang.StringBuffer format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormat
public java.lang.Number parse(java.lang.String source,
java.text.ParsePosition parsePosition)
parse in class java.text.NumberFormat
public void saveProperties(java.lang.StringBuffer buffer,
int depth)
saveProperties in interface ChartFormatbuffer - the outputdepth - the depth of XML indentpublic void readProperties(org.w3c.dom.Element element)
readProperties in interface ChartFormatelement - DOM elementChartFormat.saveProperties(StringBuffer, int)public PatternNumberFormat clone()
clone in interface ChartFormatclone in class java.text.NumberFormat
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||