|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.format.NumberFormatter
public class NumberFormatter
Title: IJChart
Description: a chart library for the Java(tm) platform.
A Formatter provides support for formatting a java.lang.Number Object.Copyright: Copyright (c) 2013
Company:
| Constructor Summary | |
|---|---|
NumberFormatter(java.util.Locale locale,
java.lang.String mask)
Create a new NumberFormatter by a number mask. |
|
NumberFormatter(java.lang.String mask)
Create a new NumberFormatter by default locale and a number mask. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
java.lang.String |
format(java.lang.Object obj,
int index)
Returns instance of java.text.DecimalFormat for format number object. |
java.util.Locale |
getLocale()
Returns a java.util.Locale instance. |
java.lang.String |
getMask()
Returns the number format mask. |
int |
hashCode()
Returns a hash code. |
java.lang.String |
toString()
Returns a string representation of this Range. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumberFormatter(java.lang.String mask)
mask - String
A number mask.
public NumberFormatter(java.util.Locale locale,
java.lang.String mask)
locale - Locale
A java.util.Locale instance.mask - String
A number mask.| Method Detail |
|---|
public java.util.Locale getLocale()
public java.lang.String getMask()
public java.text.DecimalFormat getFormat()
public java.lang.String format(java.lang.Object obj,
int index)
format in interface IFormatterobj - Object
The object to be formatted (null permitted).index - int
The index value of a series objects.
The first is at index 0, the next is at 1, and so on.This parameter is not used.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj -
The object to test against (null permitted).
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||