Package hec.dataTable

Class ArrayModel

All Implemented Interfaces:
Serializable, TableModel

public class ArrayModel extends PairedDataModel
See Also:
  • 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

      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

    • ArrayModel

      public ArrayModel()
  • Method Details

    • setData

      public int setData(List dataSets, boolean showCommas)
      Overrides:
      setData in class PairedDataModel
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface TableModel
      Overrides:
      getColumnCount in class PairedDataModel
    • getDataColumnCount

      public int getDataColumnCount()
      Overrides:
      getDataColumnCount in class PairedDataModel
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface TableModel
      Overrides:
      getRowCount in class PairedDataModel
    • getColumnName

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

      public String getNominalName()
      Overrides:
      getNominalName in class PairedDataModel
    • getValueAt

      public Object getValueAt(int row, int column)
      Specified by:
      getValueAt in interface TableModel
      Overrides:
      getValueAt in class PairedDataModel
    • getModelValue

      public Object getModelValue(int row, int column)
      Overrides:
      getModelValue in class PairedDataModel
    • setModelValue

      public int setModelValue(Object value, int row, int column)
      Overrides:
      setModelValue in class PairedDataModel
    • isCellEditable

      public boolean isCellEditable(int row, int column)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class PairedDataModel
    • setValue

      public int setValue(Object value, int row, int column)
      Overrides:
      setValue in class PairedDataModel
    • 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)