JComponentPack 1.5.0

com.zfqjava.swing
Interface BasicChartModel

All Known Implementing Classes:
AbstractBasicChartModel, DefaultBasicChartModel, TableBasicChartModel

public interface BasicChartModel

BasicChartModel provides a chart model.


Method Summary
 void addBasicChartModelListener(BasicChartModelListener l)
          Adds a BasicChartModelListener to the model's listener list.
 int getCategoryCount()
          Returns the category count for this model.
 String getCategoryName(int category)
          Returns the category name of the specified index.
 int getSeriesCount()
          Returns the series count for this model.
 String getSeriesName(int series)
          Returns the series name of the specified index.
 Number getValue(int category, int series)
          Returns the value for the specified category and series index.
 void removeBasicChartModelListener(BasicChartModelListener l)
          Removes a BasicChartModelListener from the model's listener list.
 void setCategoryName(String name, int category)
          Sets the category name of the specified index.
 void setSeriesName(String name, int series)
          Sets the series name of the specified index.
 void setValue(Number value, int category, int series)
          Sets the value for the specified category and series index.
 

Method Detail

getCategoryCount

int getCategoryCount()
Returns the category count for this model.

Returns:
the category count

getSeriesCount

int getSeriesCount()
Returns the series count for this model.

Returns:
the series count

getCategoryName

String getCategoryName(int category)
Returns the category name of the specified index.

Parameters:
category - the category index
Returns:
the category name

setCategoryName

void setCategoryName(String name,
                     int category)
Sets the category name of the specified index.

Parameters:
name - the category name
category - the category index

getSeriesName

String getSeriesName(int series)
Returns the series name of the specified index.

Parameters:
series - the series index
Returns:
the series name

setSeriesName

void setSeriesName(String name,
                   int series)
Sets the series name of the specified index.

Parameters:
name - the series name
series - the series index

getValue

Number getValue(int category,
                int series)
Returns the value for the specified category and series index.

Parameters:
category - the category index
series - the series index
Returns:
the number for the specified category and series index

setValue

void setValue(Number value,
              int category,
              int series)
Sets the value for the specified category and series index.

Parameters:
value - the value
category - the category index
series - the series index

addBasicChartModelListener

void addBasicChartModelListener(BasicChartModelListener l)
Adds a BasicChartModelListener to the model's listener list. The BasicChartModelListeners must be notified when models value changes.

Parameters:
l - the BasicChartModelListener to add
See Also:
removeBasicChartModelListener(com.zfqjava.swing.event.BasicChartModelListener)

removeBasicChartModelListener

void removeBasicChartModelListener(BasicChartModelListener l)
Removes a BasicChartModelListener from the model's listener list.

Parameters:
l - the BasicChartModelListener to remove
See Also:
addBasicChartModelListener(com.zfqjava.swing.event.BasicChartModelListener)

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.