Package hec.dataTable
Class ArrayModel
java.lang.Object
javax.swing.table.AbstractTableModel
hec.dataTable.PairedDataModel
hec.dataTable.ArrayModel
- All Implemented Interfaces:
Serializable
,TableModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vector
protected DefaultTableCellRenderer
protected StringBuffer
protected boolean
protected DefaultTableCellRenderer
protected DefaultTableCellRenderer
protected boolean
protected boolean
protected intArrayContainer[]
protected int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected final int
protected final int
Fields inherited from class hec.dataTable.PairedDataModel
_compareMessage, _pairedModelColumns, _pairedModels, _type, _units, _xArray
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TableCellRenderer
getCellRenderer
(HecDataTable table, int row, int column) int
protected String
getColumnName
(int col) boolean
int
getModelValue
(int row, int column) getName()
protected int[]
getNextEditableCell
(int row, int column) int
boolean
int
getSelectedDataString
(int[] selection, int minColumn, int maxColumn) boolean
boolean
boolean
getValueAt
(int row, int column) protected void
increaseMap
(int column, int rows) void
boolean
isCellEditable
(int row, int column) boolean
isPasteString
(String pstring, int column) protected boolean
isQualityColumn
(int column) protected void
map
(int column, int masterRow, int columnRow) void
boolean
search
(String findStr, int startingRow, int startingColumn, int firstColumn, boolean wholeWordOnly, boolean down, Dimension rowCol) void
setColumnWidths
(TableColumnModel columnModel) void
setCommas
(boolean showCommas) int
void
setEditable
(boolean isEditable) int
setModelValue
(Object value, int row, int column) void
setNumberHeaderRows
(int number) void
setPasteMode
(boolean pasteMode) void
setPlotProvider
(PlotProvider plotProvider) void
setShowFullDefinition
(boolean showFullDefinition) void
setShowTimes
(boolean showTimes) int
void
setValueAt
(Object value, int row, int column) void
showTimeAsBeginningOfDay
(boolean showTimeAsBeginning) tabPos
(int position) protected int
unMap
(int row, int column) protected int
unMapToNextValidRow
(int row, int column) Methods inherited from class hec.dataTable.PairedDataModel
addColumn, appendRows, canDeleteColumn, canInsertColumn, columnCurveNumber, compareDataSets, deleteColumn, deleteRows, getCompareMessage, getDataContainers, getDataSets, getDecimalPosition, getDecimalPosition, getSortColumnClass, getSortValueAt, hasDataChanged, inColumn, insertRowsBefore, numberOfPairedCurvesChanged, orderData, reMap, reMap, resetTable, save, saveAs, setDataChanged, setDecimalPosition, setDecimalPosition, setExtendable, setXAttribute, setXValue, setYAttribute, updateContainers
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
_isEditable
protected boolean _isEditable -
_isExtendable
protected boolean _isExtendable -
_hasBeenExtended
protected boolean _hasBeenExtended -
_showCommas
protected boolean _showCommas -
_pasteMode
protected boolean _pasteMode -
_showTimes
protected boolean _showTimes -
_showTimeAsBeginning
protected boolean _showTimeAsBeginning -
_showFullDefinition
protected boolean _showFullDefinition -
_firstPasteError
-
_dataColumns
-
_map
-
NULL_MAP_VAL
protected final int NULL_MAP_VAL- See Also:
-
UNDEFINED_MAP_VAL
protected final int UNDEFINED_MAP_VAL- See Also:
-
_headerRenderer
-
_integerRenderer
-
_doubleRenderer
-
_numberBlankRows
protected int _numberBlankRows
-
-
Constructor Details
-
ArrayModel
public ArrayModel()
-
-
Method Details
-
setData
- Overrides:
setData
in classPairedDataModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
- Overrides:
getColumnCount
in classPairedDataModel
-
getDataColumnCount
public int getDataColumnCount()- Overrides:
getDataColumnCount
in classPairedDataModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
- Overrides:
getRowCount
in classPairedDataModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classPairedDataModel
-
getNominalName
- Overrides:
getNominalName
in classPairedDataModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classPairedDataModel
-
getModelValue
- Overrides:
getModelValue
in classPairedDataModel
-
setModelValue
- Overrides:
setModelValue
in classPairedDataModel
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classPairedDataModel
-
setValue
- Overrides:
setValue
in classPairedDataModel
-
setPlotProvider
-
increaseMap
protected void increaseMap(int column, int rows) -
map
protected void map(int column, int masterRow, int columnRow) -
unMap
protected int unMap(int row, int column) -
unMapToNextValidRow
protected int unMapToNextValidRow(int row, int column) -
setEditable
public void setEditable(boolean isEditable) -
setPasteMode
public void setPasteMode(boolean pasteMode) -
getPasteMode
public boolean getPasteMode() -
initializeEntryStartTime
public void initializeEntryStartTime() -
setCommas
public void setCommas(boolean showCommas) -
getCommas
public boolean getCommas() -
setShowTimes
public void setShowTimes(boolean showTimes) -
getShowTimes
public boolean getShowTimes() -
showTimeAsBeginningOfDay
public void showTimeAsBeginningOfDay(boolean showTimeAsBeginning) -
getshowTimeAsBeginningOfDay
public boolean getshowTimeAsBeginningOfDay() -
setShowFullDefinition
public void setShowFullDefinition(boolean showFullDefinition) -
getShowFullDefinition
public boolean getShowFullDefinition() -
setNumberHeaderRows
public void setNumberHeaderRows(int number) -
getNumberHeaderRows
public int getNumberHeaderRows() -
plot
-
getName
-
search
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
isPasteString
-
isQualityColumn
protected boolean isQualityColumn(int column) -
getNextEditableCell
protected int[] getNextEditableCell(int row, int column) -
getSelectedDataString
-
allDataString
-
getColumnHeaderString
-
getCellRenderer
-
setColumnWidths
-
printString
-
fillTabs
-
tabPos
-