JComponentPack 1.5.0

com.zfqjava.swing
Class TableBasicChartModel

java.lang.Object
  extended by com.zfqjava.swing.AbstractBasicChartModel
      extended by com.zfqjava.swing.TableBasicChartModel
All Implemented Interfaces:
BasicChartModel, DataGridModelListener, EventListener, TableModelListener

public class TableBasicChartModel
extends AbstractBasicChartModel
implements TableModelListener, DataGridModelListener

BasicChartModel provides a chart model.


Field Summary
 
Fields inherited from class com.zfqjava.swing.AbstractBasicChartModel
listenerList
 
Constructor Summary
TableBasicChartModel(TableModel model, Cell c)
           
 
Method Summary
 void cellChanged(DataGridModelEvent e)
          Invoked after the cell class, attributes, editable, cell span have been changed.
 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 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.
 void tableChanged(TableModelEvent e)
           
 
Methods inherited from class com.zfqjava.swing.AbstractBasicChartModel
addBasicChartModelListener, fireCategoryDeleted, fireCategoryInserted, fireCategoryNameUpdated, fireCategoryUpdated, fireChartChanged, fireSeriesDeleted, fireSeriesInserted, fireSeriesNameUpdated, fireSeriesUpdated, fireValueUpdated, fireValueUpdated, getBasicChartModelListeners, getListeners, removeBasicChartModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBasicChartModel

public TableBasicChartModel(TableModel model,
                            Cell c)
Method Detail

getCategoryCount

public int getCategoryCount()
Description copied from interface: BasicChartModel
Returns the category count for this model.

Specified by:
getCategoryCount in interface BasicChartModel
Returns:
the category count

getSeriesCount

public int getSeriesCount()
Description copied from interface: BasicChartModel
Returns the series count for this model.

Specified by:
getSeriesCount in interface BasicChartModel
Returns:
the series count

getCategoryName

public String getCategoryName(int category)
Description copied from interface: BasicChartModel
Returns the category name of the specified index.

Specified by:
getCategoryName in interface BasicChartModel
Parameters:
category - the category index
Returns:
the category name

setCategoryName

public void setCategoryName(String name,
                            int category)
Description copied from interface: BasicChartModel
Sets the category name of the specified index.

Specified by:
setCategoryName in interface BasicChartModel
Parameters:
name - the category name
category - the category index

getSeriesName

public String getSeriesName(int series)
Description copied from interface: BasicChartModel
Returns the series name of the specified index.

Specified by:
getSeriesName in interface BasicChartModel
Parameters:
series - the series index
Returns:
the series name

setSeriesName

public void setSeriesName(String name,
                          int series)
Description copied from interface: BasicChartModel
Sets the series name of the specified index.

Specified by:
setSeriesName in interface BasicChartModel
Parameters:
name - the series name
series - the series index

getValue

public Number getValue(int category,
                       int series)
Description copied from interface: BasicChartModel
Returns the value for the specified category and series index.

Specified by:
getValue in interface BasicChartModel
Parameters:
category - the category index
series - the series index
Returns:
the number for the specified category and series index

setValue

public void setValue(Number value,
                     int category,
                     int series)
Description copied from interface: BasicChartModel
Sets the value for the specified category and series index.

Specified by:
setValue in interface BasicChartModel
Parameters:
value - the value
category - the category index
series - the series index

tableChanged

public void tableChanged(TableModelEvent e)
Specified by:
tableChanged in interface TableModelListener

cellChanged

public void cellChanged(DataGridModelEvent e)
Description copied from interface: DataGridModelListener
Invoked after the cell class, attributes, editable, cell span have been changed.

Specified by:
cellChanged in interface DataGridModelListener

JComponentPack 1.5.0

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