org.norther.tammi.core.jfc
Class VariableChartModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.norther.tammi.acorn.jfc.AbstractChartModel
          extended by org.norther.tammi.core.jfc.VariableChartModel
All Implemented Interfaces:
Serializable, TableModel, ChartModel
Direct Known Subclasses:
NamedVariableChartModel

public class VariableChartModel
extends AbstractChartModel

A variable chart model.

Version:
$Id: VariableChartModel.java,v 1.7 2010-02-22 12:23:45 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
VariableChartModel(Variable var)
          Constructs a new model.
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getRowId(int row)
          Gets the row id.
 int getRowIndex(int row)
          Gets the row index.
 Object getValueAt(int row, int column)
           
 Variable getVariable()
          Gets the variable.
 boolean isCellEditable(int row, int column)
           
 void setValueAt(Object value, int row, int column)
           
 
Methods inherited from class org.norther.tammi.acorn.jfc.AbstractChartModel
findColumnKey, findRow, findRowKey, getColumnKey, getRowKey, getRowName
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, removeTableModelListener
 

Constructor Detail

VariableChartModel

public VariableChartModel(Variable var)
Constructs a new model.

Parameters:
var - the variable of column arrays.
Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int column)

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

getRowId

public Object getRowId(int row)
Gets the row id.

Parameters:
row - the row number.
Returns:
the row id.

getRowIndex

public int getRowIndex(int row)
Gets the row index.

Parameters:
row - the row number.
Returns:
the row index.

getVariable

public Variable getVariable()
Gets the variable.

Returns:
the variable.


Copyright © 2004 The Norther Organization. All rights reserved.