java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetRow

public abstract class PrometheusSheetRow extends Object
Class representing a row within a sheet or a view.
  • Constructor Details

    • PrometheusSheetRow

      protected PrometheusSheetRow(PrometheusSheetSheet pSheet, int pRowIndex, boolean pReadOnly)
      Constructor.
      Parameters:
      pSheet - the sheet for the row
      pRowIndex - the Row index
      pReadOnly - is the row readOnly?
    • PrometheusSheetRow

      protected PrometheusSheetRow(PrometheusSheetView pView, int pRowIndex)
      Constructor.
      Parameters:
      pView - the view for the row
      pRowIndex - the Row index
  • Method Details

    • getSheet

      public PrometheusSheetSheet getSheet()
      Obtain the underlying sheet.
      Returns:
      the underlying sheet
    • getView

      public PrometheusSheetView getView()
      Obtain the underlying view.
      Returns:
      the underlying view
    • getRowIndex

      public int getRowIndex()
      Obtain the row index.
      Returns:
      row index
    • isReadOnly

      public boolean isReadOnly()
      Is the row readOnly?
      Returns:
      true/false
    • getNextRow

      public abstract PrometheusSheetRow getNextRow()
      Get the next row.
      Returns:
      the next row
    • getPreviousRow

      public abstract PrometheusSheetRow getPreviousRow()
      Get the previous row.
      Returns:
      the previous row
    • getCellCount

      public abstract int getCellCount()
      Determine number of cells in this row.
      Returns:
      the number of cells.
    • getMaxValuedCellIndex

      public abstract int getMaxValuedCellIndex()
      Determine index of the max valued cell.
      Returns:
      the index.
    • setHidden

      public void setHidden(boolean isHidden)
      Set hidden status.
      Parameters:
      isHidden - is the column hidden?
    • setHiddenValue

      protected abstract void setHiddenValue(boolean isHidden)
      Set hidden status.
      Parameters:
      isHidden - is the column hidden?
    • isHidden

      public abstract boolean isHidden()
      Is the column hidden?
      Returns:
      true/false
    • getReadOnlyCellByIndex

      public abstract PrometheusSheetCell getReadOnlyCellByIndex(int pIndex)
      Get the cell at the required index.
      Parameters:
      pIndex - the column index.
      Returns:
      the cell
    • getMutableCellByIndex

      public PrometheusSheetCell getMutableCellByIndex(int pIndex)
      Get the cell at the required index.
      Parameters:
      pIndex - the column index.
      Returns:
      the cell
    • getWriteableCellByIndex

      protected abstract PrometheusSheetCell getWriteableCellByIndex(int pIndex)
      Get the cell at the required index.
      Parameters:
      pIndex - the column index.
      Returns:
      the cell
    • iteratorForRange

      protected abstract ListIterator<PrometheusSheetCell> iteratorForRange(int pFirstIndex, int pLastIndex)
      Obtain an iterator of non-null cells for the row in the view.
      Parameters:
      pFirstIndex - the first cell in the view
      pLastIndex - the last cell in the view
      Returns:
      the iterator