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 StringBuffer
protected Vector
protected DefaultTableCellRenderer
protected StringBuffer
protected boolean
protected DefaultTableCellRenderer
protected DefaultTableCellRenderer
protected boolean
protected boolean
protected intArrayContainer[]
protected int
protected Vector
protected Vector<PairedDataCurve>
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected String
protected String
protected HecDoubleArray
protected final int
protected final int
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(int col, boolean append) void
appendRows
(int numberRows) boolean
canDeleteColumn
(int col) boolean
canInsertColumn
(int col, boolean append) protected int
columnCurveNumber
(int column) int
compareDataSets
(int precision) void
deleteColumn
(int col) void
deleteRows
(int[] selectedRows) protected TableCellRenderer
getCellRenderer
(HecDataTable table, int row, int column) int
protected String
getColumnName
(int col) boolean
int
int
int
getDecimalPosition
(int column) 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
getSortColumnClass
(int columnIndex) getSortValueAt
(int row, int column) getValueAt
(int row, int column) boolean
inColumn
(int i) protected void
increaseMap
(int column, int rows) void
void
insertRowsBefore
(int initialRow, int numberRows) 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
numberOfPairedCurvesChanged
(int newNumber) protected int
void
protected void
reMap
(int column) protected void
reMap
(int column, int row) protected void
resetTable called after the number of columns have changedvoid
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
setDataChanged
(boolean dataChanged) void
setDecimalPosition
(int position) void
setDecimalPosition
(int column, int position) void
setEditable
(boolean isEditable) void
setExtendable
(boolean extendable, int numberBlankRows) 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
setXAttribute
(String value, int row) int
void
setYAttribute
(String 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) int
updateContainers
(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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in 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:
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
-