org.norther.tammi.acorn.jfc
Class ArrayMapChartModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.norther.tammi.acorn.jfc.AbstractChartModel
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
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 |
ArrayMapChartModel
public ArrayMapChartModel(OrderedMap<?,?> map)
- Constructs a new model.
- Parameters:
map
- the map of column arrays.
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.