Package hec.dataTable
Class PairedDataModel
java.lang.Object
javax.swing.table.AbstractTableModel
hec.dataTable.PairedDataModel
- All Implemented Interfaces:
Serializable,TableModel
- Direct Known Subclasses:
ArrayModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBufferprotected Vectorprotected DefaultTableCellRendererprotected StringBufferprotected booleanprotected DefaultTableCellRendererprotected DefaultTableCellRendererprotected booleanprotected booleanprotected intArrayContainer[]protected intprotected Vectorprotected Vector<PairedDataCurve>protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected HecDoubleArrayprotected final intprotected final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(int col, boolean append) voidappendRows(int numberRows) booleancanDeleteColumn(int col) booleancanInsertColumn(int col, boolean append) protected intcolumnCurveNumber(int column) intcompareDataSets(int precision) voiddeleteColumn(int col) voiddeleteRows(int[] selectedRows) protected TableCellRenderergetCellRenderer(HecDataTable table, int row, int column) intprotected StringgetColumnName(int col) booleanintintintgetDecimalPosition(int column) getModelValue(int row, int column) getName()protected int[]getNextEditableCell(int row, int column) intbooleanintgetSelectedDataString(int[] selection, int minColumn, int maxColumn) booleanbooleanbooleangetSortColumnClass(int columnIndex) getSortValueAt(int row, int column) getValueAt(int row, int column) booleaninColumn(int i) protected voidincreaseMap(int column, int rows) voidvoidinsertRowsBefore(int initialRow, int numberRows) booleanisCellEditable(int row, int column) booleanisPasteString(String pstring, int column) protected booleanisQualityColumn(int column) protected voidmap(int column, int masterRow, int columnRow) voidnumberOfPairedCurvesChanged(int newNumber) protected intvoidprotected voidreMap(int column) protected voidreMap(int column, int row) protected voidresetTable called after the number of columns have changedvoidvoidbooleansearch(String findStr, int startingRow, int startingColumn, int firstColumn, boolean wholeWordOnly, boolean down, Dimension rowCol) voidsetColumnWidths(TableColumnModel columnModel) voidsetCommas(boolean showCommas) intvoidsetDataChanged(boolean dataChanged) voidsetDecimalPosition(int position) voidsetDecimalPosition(int column, int position) voidsetEditable(boolean isEditable) voidsetExtendable(boolean extendable, int numberBlankRows) intsetModelValue(Object value, int row, int column) voidsetNumberHeaderRows(int number) voidsetPasteMode(boolean pasteMode) voidsetPlotProvider(PlotProvider plotProvider) voidsetShowFullDefinition(boolean showFullDefinition) voidsetShowTimes(boolean showTimes) intvoidsetValueAt(Object value, int row, int column) voidsetXAttribute(String value, int row) intvoidsetYAttribute(String value, int row, int column) voidshowTimeAsBeginningOfDay(boolean showTimeAsBeginning) tabPos(int position) protected intunMap(int row, int column) protected intunMapToNextValidRow(int row, int column) intupdateContainers(int[] firstError) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
_xArray
-
_pairedModels
-
_pairedModelColumns
-
_units
-
_type
-
_compareMessage
-
_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
-
PairedDataModel
public PairedDataModel()
-
-
Method Details
-
setData
-
resetTable
protected void resetTable()resetTable called after the number of columns have changed -
getDataSets
-
getColumnCount
public int getColumnCount() -
getDataColumnCount
public int getDataColumnCount() -
getRowCount
public int getRowCount() -
inColumn
-
orderData
protected int orderData() -
reMap
protected void reMap(int column) -
reMap
protected void reMap(int column, int row) -
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getNominalName
-
getValueAt
-
getModelValue
-
setModelValue
-
getSortColumnClass
-
getSortValueAt
-
columnCurveNumber
protected int columnCurveNumber(int column) -
setXAttribute
-
setXValue
-
setYAttribute
-
setValue
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setExtendable
public void setExtendable(boolean extendable, int numberBlankRows) -
insertRowsBefore
public void insertRowsBefore(int initialRow, int numberRows) -
appendRows
public void appendRows(int numberRows) -
deleteRows
public void deleteRows(int[] selectedRows) -
canDeleteColumn
public boolean canDeleteColumn(int col) -
canInsertColumn
public boolean canInsertColumn(int col, boolean append) -
deleteColumn
public void deleteColumn(int col) -
addColumn
public void addColumn(int col, boolean append) -
setDecimalPosition
public void setDecimalPosition(int position) -
setDecimalPosition
public void setDecimalPosition(int column, int position) -
getDecimalPosition
public int getDecimalPosition() -
getDecimalPosition
public int getDecimalPosition(int column) -
hasDataChanged
public boolean hasDataChanged() -
setDataChanged
public void setDataChanged(boolean dataChanged) -
updateContainers
public int updateContainers(int[] firstError) -
save
-
saveAs
-
numberOfPairedCurvesChanged
public void numberOfPairedCurvesChanged(int newNumber) -
compareDataSets
public int compareDataSets(int precision) -
getCompareMessage
-
getDataContainers
-
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:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isPasteString
-
isQualityColumn
protected boolean isQualityColumn(int column) -
getNextEditableCell
protected int[] getNextEditableCell(int row, int column) -
getSelectedDataString
-
allDataString
-
getColumnHeaderString
-
getCellRenderer
-
setColumnWidths
-
printString
-
fillTabs
-
tabPos
-