|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.format.AbstractChartDataFormatterAdapter
com.ijchart.xychart.format.XYNumberChartDataFormatter
public class XYNumberChartDataFormatter
Title: IJChart
Description: a chart library for the Java(tm) platform.
格式化XYNumberChartData数据类型的类.
Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static int |
XYNUMBER_FORMATTER_TYPE_X
只显示x值. |
static int |
XYNUMBER_FORMATTER_TYPE_XY
显示(x,y)值. |
static int |
XYNUMBER_FORMATTER_TYPE_Y
只显示y值. |
| Constructor Summary | |
|---|---|
XYNumberChartDataFormatter(java.lang.String xMask,
java.lang.String yMask,
int formatType)
构造器. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
克隆本对象. |
boolean |
equals(java.lang.Object obj)
测试两个对象是否相等. |
java.lang.String |
format(IMatrixDataset dataset,
int row,
int column)
格式化数据集中某个数据 IChartData为字符串.
|
int |
getFormatType()
返回格式化类型. |
java.text.DecimalFormat |
getXFormat()
返回格式化x值类. |
java.text.DecimalFormat |
getYFormat()
返回格式化y值类. |
int |
hashCode()
计算hashcode. |
java.lang.String |
toString()
覆盖toString方法. |
| Methods inherited from class com.ijchart.xychart.format.AbstractChartDataFormatterAdapter |
|---|
format |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ijchart.xychart.format.IChartDataFormatter |
|---|
format |
| Field Detail |
|---|
public static final int XYNUMBER_FORMATTER_TYPE_X
public static final int XYNUMBER_FORMATTER_TYPE_Y
public static final int XYNUMBER_FORMATTER_TYPE_XY
| Constructor Detail |
|---|
public XYNumberChartDataFormatter(java.lang.String xMask,
java.lang.String yMask,
int formatType)
xMask - String x值数字掩码 (不可为null).
yMask - String y值数字掩码 (不可为null).
formatType - int 格式化类型,可能的值为XYNUMBER_FORMATTER_TYPE_X,
XYNUMBER_FORMATTER_TYPE_Y,XYNUMBER_FORMATTER_TYPE_XY.
| Method Detail |
|---|
public int getFormatType()
public java.text.DecimalFormat getXFormat()
public java.text.DecimalFormat getYFormat()
public java.lang.String format(IMatrixDataset dataset,
int row,
int column)
IChartData为字符串.
format in interface IChartDataFormatterformat in class AbstractChartDataFormatterAdapterdataset - IMatrixDataset 数据集对象 (不可为null).
row - int 数据集的行数,必须大于等于0.
column - int 数据集的列数,必须大于等于0.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - 要比较的另一个对象 (可为null).
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.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 | ||||||||