Class MultiRowStatistic

    • Constructor Detail

      • MultiRowStatistic

        public MultiRowStatistic()
    • Method Detail

      • setStatistics

        public void setStatistics​(AbstractRowStatistic[] value)
        Sets the statistic generators to use.
        Parameters:
        value - the generators
      • getStatistics

        public AbstractRowStatistic[] getStatistics()
        Returns the statistic generators in use.
        Returns:
        the generators
      • statisticsTipText

        public String statisticsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • preVisit

        protected void preVisit​(SpreadSheet sheet,
                                int rowIndex)
        Performs initialization before the cells are being visited.
        Specified by:
        preVisit in class AbstractRowStatistic
        Parameters:
        sheet - the spreadsheet to generate the stats for
        rowIndex - the row index
      • doVisit

        protected void doVisit​(Row row,
                               int rowIndex)
        Gets called with every row in the spreadsheet for generating the stats.
        Specified by:
        doVisit in class AbstractRowStatistic
        Parameters:
        row - the current row
        rowIndex - the row index
      • postVisit

        protected SpreadSheet postVisit​(SpreadSheet sheet,
                                        int rowIndex)
        Finishes up the stats generation after all the cells have been visited.
        Specified by:
        postVisit in class AbstractRowStatistic
        Parameters:
        sheet - the spreadsheet to generate the stats for
        rowIndex - the row index
        Returns:
        the generated stats