org.norther.tammi.acorn.jfc
Class ArrayMapChartModel

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

public class ArrayMapChartModel
extends AbstractChartModel

An array map chart model applying indexed arrays, either primitive or object-based, as the model table.

Version:
$Id: ArrayMapChartModel.java,v 1.9 2009/09/28 15:08:50 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ArrayMapChartModel(OrderedMap<?,?> map)
          Constructs a new model.
 
Method Summary
protected  OrderedMap<?,?> getArrayMap()
          Gets the map.
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 boolean isEditable()
          Checks whether the model is editable.
 void setEditable(boolean flag)
          Sets whether the model is editable.
 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, getColumnName, 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, getColumnName, removeTableModelListener
 

Constructor Detail

ArrayMapChartModel

public ArrayMapChartModel(OrderedMap<?,?> map)
Constructs a new model.

Parameters:
map - the map of column arrays.
Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

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

isEditable

public boolean isEditable()
Checks whether the model is editable.

Returns:
true if editable, false otherwise.

setEditable

public void setEditable(boolean flag)
Sets whether the model is editable.

Parameters:
flag - true if editable, false otherwise.

getArrayMap

protected OrderedMap<?,?> getArrayMap()
Gets the map.

Returns:
the map.


Copyright © 2004 The Norther Organization. All rights reserved.