Documentation of 'de.erichseifert.gral.data.DataSource' Java class
DataSource
de.erichseifert.gral.data

Interface DataSource

    • Method Detail

      • getColumn

        Column<?> getColumn(int col)
        Returns the column with the specified index.
        Parameters:
        col - index of the column to return
        Returns:
        the specified column of the data source
      • getColumnTypes

        java.lang.Class<? extends java.lang.Comparable<?>>[] getColumnTypes()
        Returns the data types of all columns.
        Returns:
        The data types of all column in the data source
      • getRow

        Row getRow(int row)
        Returns the row with the specified index.
        Parameters:
        row - index of the row to return
        Returns:
        the specified row of the data source
      • get

        java.lang.Comparable<?> get(int col,
                                    int row)
        Returns the value with the specified row and column index.
        Parameters:
        col - index of the column to return
        row - index of the row to return
        Returns:
        the specified value of the data cell
      • getStatistics

        Statistics getStatistics()
        Retrieves a object instance that contains various statistical information on the current data source.
        Returns:
        statistical information
      • getColumnStatistics

        DataSource getColumnStatistics(java.lang.String key)
      • getRowStatistics

        DataSource getRowStatistics(java.lang.String key)
      • getRowCount

        int getRowCount()
        Returns the number of rows of the data source.
        Returns:
        number of rows in the data source.
      • getName

        java.lang.String getName()
        Returns the name of this series.
        Returns:
        a name string
      • getColumnCount

        int getColumnCount()
        Returns the number of columns of the data source.
        Returns:
        number of columns in the data source.
      • isColumnNumeric

        boolean isColumnNumeric(int columnIndex)
        Returns whether the column at the specified index contains numbers.
        Parameters:
        columnIndex - Index of the column to test.
        Returns:
        true if the column is numeric, otherwise false.
      • addDataListener

        void addDataListener(DataListener dataListener)
        Adds the specified DataListener to this data source.
        Parameters:
        dataListener - listener to be added.
      • removeDataListener

        void removeDataListener(DataListener dataListener)
        Removes the specified DataListener from this data source.
        Parameters:
        dataListener - listener to be removed.
      • getRecord

        Record getRecord(int row)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.