Class OpSupportTablePanel.OpSupportTable

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
rma.swing.RmaJTable
hec.rss.plugins.opsupport.client.OpSupportTablePanel.OpSupportTable
All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, MouseListener, TextListener, ImageObserver, MenuContainer, Printable, Serializable, EventListener, Accessible, CellEditorListener, DocumentListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable, rma.lang.Modifiable, rma.services.tz.TimeZoneComponent, rma.services.units.UnitsComponent, rma.swing.EditableComponent, rma.swing.FormManagementListener, rma.swing.RmaValidComponent
Enclosing class:
OpSupportTablePanel

public class OpSupportTablePanel.OpSupportTable extends rma.swing.RmaJTable
Table for the Operation Support Table Interface that manages font and background colors
See Also:
  • Method Details

    • linearFill

      public void linearFill(rma.swing.table.CellLocation firstCell, rma.swing.table.CellLocation lastCell)
      override fill table functions called when fill dialog operations are selected so that the plot can be refreshed
      Overrides:
      linearFill in class rma.swing.RmaJTable
      Parameters:
      firstCell - Description
      lastCell - Description
    • repeatFill

      public void repeatFill()
      override fill table functions called when fill dialog operations are selected so that the plot can be refreshed
      Overrides:
      repeatFill in class rma.swing.RmaJTable
    • valueFill

      protected void valueFill(double fillValue, boolean addIt)
      override fill table functions called when fill dialog operations are selected so that the plot can be refreshed
      Overrides:
      valueFill in class rma.swing.RmaJTable
      Parameters:
      fillValue - Description
      addIt - Description
    • getSelectedCellRangeVector

      public Vector<Vector<rma.swing.table.CellLocation>> getSelectedCellRangeVector()
      returns a vector of vectors which contain CellLocations
      Overrides:
      getSelectedCellRangeVector in class rma.swing.RmaJTable
      Returns:
      The SelectedCellRangeVector value
    • getColumnBackground

      public Color getColumnBackground(int colNum)
      Description copied from class: rma.swing.RmaJTable
      get the background color for the
      Overrides:
      getColumnBackground in class rma.swing.RmaJTable
      Parameters:
      colNum - Description
      Returns:
      The ColumnBackground value
    • getColumnForeground

      public Color getColumnForeground(int colNum)
      Description copied from class: rma.swing.RmaJTable
      Gets the ColumnForeground attribute of the RmaJTable object
      Overrides:
      getColumnForeground in class rma.swing.RmaJTable
      Parameters:
      colNum - Description
      Returns:
      The ColumnForeground value
    • getRowBackground

      public Color getRowBackground(int rowNum)
      Description copied from class: rma.swing.RmaJTable
      get the background color for the row at rowNum
      Overrides:
      getRowBackground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      Returns:
      The RowBackground value
    • getRowBackground

      public Color getRowBackground(int rowNum, int colNum)
      Description copied from class: rma.swing.RmaJTable
      Gets the RowBackground attribute of the RmaJTable object
      Overrides:
      getRowBackground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      colNum - Description
      Returns:
      The RowBackground value
    • getRowForeground

      public Color getRowForeground(int rowNum)
      Description copied from class: rma.swing.RmaJTable
      get the foreground color for the row at rowNum
      Overrides:
      getRowForeground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      Returns:
      The RowForeground value
    • getRowForeground

      public Color getRowForeground(int rowNum, int colNum)
      Overrides:
      getRowForeground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      colNum - Description
      Returns:
      The RowForeground value
    • createAlignTableCellRenderer

      public rma.swing.table.AlignTableCellRenderer createAlignTableCellRenderer(int align)
      Description copied from class: rma.swing.RmaJTable
      Creates an AlignTableCellRenderer. Method used to allow subclasses of RmaJTable to override the cell renderer.
      Overrides:
      createAlignTableCellRenderer in class rma.swing.RmaJTable
      Parameters:
      align -
      Returns:
    • getCellBackground

      public Color getCellBackground(int rowNum, int colNum)
      Overrides:
      getCellBackground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      colNum - Description
      Returns:
      The CellBackground value
    • getCellFont

      public Font getCellFont(int rowNum, int colNum)
      Overrides:
      getCellFont in class rma.swing.RmaJTable
    • getCellForeground

      public Color getCellForeground(int rowNum, int colNum)
      Description copied from class: rma.swing.RmaJTable
      Gets the CellForeground attribute of the RmaJTable object
      Overrides:
      getCellForeground in class rma.swing.RmaJTable
      Parameters:
      rowNum - Description
      colNum - Description
      Returns:
      The CellForeground value
    • getHecTimeForRow

      public HecTime getHecTimeForRow(int row)
      get the HecTime for the row.
      Parameters:
      row - the row number. 0 based.
      Returns:
      the HecTime for the row or null if invalid row
    • getModelVariableAtColumn

      public OpSupportModelVariable getModelVariableAtColumn(int col)
      returns the OpSupportModelVariable associated with the given column.
      Parameters:
      col -
      Returns:
      null if the col is out of the table range.
    • getColumnForModelVariable

      public int getColumnForModelVariable(String modelVarName)
      returns the column id associtated with the OpSupportModelVariable with the name modelVarName.
      Parameters:
      modelVarName - the name of the OpSupportModelVariable
      Returns:
      returns -1 if no Model Variable is found
    • setTableColoringOverride

      public void setTableColoringOverride(boolean override)
      Setting the Table Coloring Override to true disables the automated assignment of the table cell foreground, background and fonts so those properties can be set through a script.
      Parameters:
      override - true to override the default colors and fonts.
    • getRowTimeStepMinutes

      public int getRowTimeStepMinutes()
      Returns the time difference between rows in minute, note that the time step will be the same between all rows
      Returns:
      the time step minutes or -1 if there is an error
    • getRowAtStartOfForecast

      public int getRowAtStartOfForecast()
      returns the row at the start of the ResSim Forecast period
      Returns:
      the row at the start of the forecast period or -1 if there's an error