Package hec.dataTable

Class PairedDataModel

All Implemented Interfaces:
Serializable, TableModel
Direct Known Subclasses:
ArrayModel

public class PairedDataModel extends AbstractTableModel
See Also:
  • Field Details

    • _xArray

      protected HecDoubleArray _xArray
    • _pairedModels

      protected Vector<PairedDataCurve> _pairedModels
    • _pairedModelColumns

      protected Vector _pairedModelColumns
    • _units

      protected String _units
    • _type

      protected String _type
    • _compareMessage

      protected StringBuffer _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

      protected StringBuffer _firstPasteError
    • _dataColumns

      protected Vector _dataColumns
    • _map

      protected intArrayContainer[] _map
    • NULL_MAP_VAL

      protected final int NULL_MAP_VAL
      See Also:
    • UNDEFINED_MAP_VAL

      protected final int UNDEFINED_MAP_VAL
      See Also:
    • _headerRenderer

      protected DefaultTableCellRenderer _headerRenderer
    • _integerRenderer

      protected DefaultTableCellRenderer _integerRenderer
    • _doubleRenderer

      protected DefaultTableCellRenderer _doubleRenderer
    • _numberBlankRows

      protected int _numberBlankRows
  • Constructor Details

    • PairedDataModel

      public PairedDataModel()
  • Method Details

    • setData

      public int setData(List dataSets, boolean showCommas)
    • resetTable

      protected void resetTable()
      resetTable called after the number of columns have changed
    • getDataSets

      public Vector getDataSets()
    • getColumnCount

      public int getColumnCount()
    • getDataColumnCount

      public int getDataColumnCount()
    • getRowCount

      public int getRowCount()
    • inColumn

      public PairedDataCurve inColumn(int i)
    • orderData

      protected int orderData()
    • reMap

      protected void reMap(int column)
    • reMap

      protected void reMap(int column, int row)
    • getColumnName

      public String getColumnName(int col)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getNominalName

      public String getNominalName()
    • getValueAt

      public Object getValueAt(int row, int column)
    • getModelValue

      public Object getModelValue(int row, int column)
    • setModelValue

      public int setModelValue(Object value, int row, int column)
    • getSortColumnClass

      public Class getSortColumnClass(int columnIndex)
    • getSortValueAt

      public Object getSortValueAt(int row, int column)
    • columnCurveNumber

      protected int columnCurveNumber(int column)
    • setXAttribute

      public void setXAttribute(String value, int row)
    • setXValue

      public int setXValue(String value, int row)
    • setYAttribute

      public void setYAttribute(String value, int row, int column)
    • setValue

      public int setValue(Object value, int row, int column)
    • isCellEditable

      public boolean isCellEditable(int row, int column)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • 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

      public void save(Object parent)
    • saveAs

      public void saveAs(Object parent)
    • numberOfPairedCurvesChanged

      public void numberOfPairedCurvesChanged(int newNumber)
    • compareDataSets

      public int compareDataSets(int precision)
    • getCompareMessage

      public String getCompareMessage()
    • getDataContainers

      public Vector getDataContainers()
    • setPlotProvider

      public void setPlotProvider(PlotProvider plotProvider)
    • 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

      public void plot(JFrame parent)
    • getName

      public String getName()
    • search

      public boolean search(String findStr, int startingRow, int startingColumn, int firstColumn, boolean wholeWordOnly, boolean down, Dimension rowCol)
    • setValueAt

      public void setValueAt(Object value, int row, int column)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • isPasteString

      public boolean isPasteString(String pstring, int column)
    • isQualityColumn

      protected boolean isQualityColumn(int column)
    • getNextEditableCell

      protected int[] getNextEditableCell(int row, int column)
    • getSelectedDataString

      public String getSelectedDataString(int[] selection, int minColumn, int maxColumn)
    • allDataString

      public String allDataString()
    • getColumnHeaderString

      protected String getColumnHeaderString()
    • getCellRenderer

      protected TableCellRenderer getCellRenderer(HecDataTable table, int row, int column)
    • setColumnWidths

      public void setColumnWidths(TableColumnModel columnModel)
    • printString

      public String printString()
    • fillTabs

      public String fillTabs(String line)
    • tabPos

      public String tabPos(int position)