|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.AbstractBasicChartModel
com.zfqjava.swing.DefaultBasicChartModel
public class DefaultBasicChartModel
DefaultBasicChartModel provides a default implements of chart model.
| Field Summary |
|---|
| Fields inherited from class com.zfqjava.swing.AbstractBasicChartModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultBasicChartModel()
|
|
| Method Summary | |
|---|---|
void |
addCategory(String name,
double[] values)
|
void |
addCategory(String name,
double[] values,
int index)
|
void |
addCategory(String name,
Number[] values)
|
void |
addCategory(String name,
Number[] values,
int index)
|
void |
addSeries(String name,
double[] values)
|
void |
addSeries(String name,
double[] values,
int index)
|
void |
addSeries(String name,
Number[] values)
|
void |
addSeries(String name,
Number[] values,
int index)
|
int |
getCategoryCount()
Returns the category count for this model. |
String |
getCategoryName(int categoryIndex)
Returns the category name of the specified index. |
int |
getSeriesCount()
Returns the series count for this model. |
String |
getSeriesName(int seriesIndex)
Returns the series name of the specified index. |
Number |
getValue(int categoryIndex,
int seriesIndex)
Returns the value for the specified category and series index. |
int |
indexOfCategoryName(String name)
|
int |
indexOfSeriesName(String name)
|
void |
removeCategory(int index)
|
void |
removeSeries(int index)
|
void |
setCategoryName(String name,
int categoryIndex)
Sets the category name of the specified index. |
void |
setSeriesName(String name,
int seriesIndex)
Sets the series name of the specified index. |
void |
setValue(Number value,
int categoryIndex,
int seriesIndex)
Sets the value for the specified category and series index. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBasicChartModel()
| Method Detail |
|---|
public void addSeries(String name,
double[] values)
public void addSeries(String name,
double[] values,
int index)
public void addSeries(String name,
Number[] values)
public void addSeries(String name,
Number[] values,
int index)
public void removeSeries(int index)
public int indexOfSeriesName(String name)
public void addCategory(String name,
double[] values)
public void addCategory(String name,
double[] values,
int index)
public void addCategory(String name,
Number[] values)
public void addCategory(String name,
Number[] values,
int index)
public void removeCategory(int index)
public int indexOfCategoryName(String name)
public int getCategoryCount()
BasicChartModel
public int getSeriesCount()
BasicChartModel
public String getCategoryName(int categoryIndex)
BasicChartModel
categoryIndex - the category index
public void setCategoryName(String name,
int categoryIndex)
BasicChartModel
name - the category namecategoryIndex - the category indexpublic String getSeriesName(int seriesIndex)
BasicChartModel
seriesIndex - the series index
public void setSeriesName(String name,
int seriesIndex)
BasicChartModel
name - the series nameseriesIndex - the series index
public Number getValue(int categoryIndex,
int seriesIndex)
BasicChartModel
categoryIndex - the category indexseriesIndex - the series index
public void setValue(Number value,
int categoryIndex,
int seriesIndex)
BasicChartModel
value - the valuecategoryIndex - the category indexseriesIndex - the series indexpublic String toString()
toString in class Object
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||