Class ColumnPlot


  • public class ColumnPlot
    extends Plot
    Implements a column plot.
    • Constructor Detail

      • ColumnPlot

        public ColumnPlot​(String xLabel,
                          String yLabel)
        Creates a new ColumnPlot
        Parameters:
        xLabel - Label of the x axis
        yLabel - Label of the y axis
    • Method Detail

      • addColumn

        public ColumnPlot addColumn​(String name,
                                    double value)
        Adds a column to the plot
        Parameters:
        name - Column name
        value - Column value
        Returns:
        Self ColumnPlot instance
      • getDataHeaders

        protected String[] getDataHeaders()
        Description copied from class: Plot
        Returns an String array with the headers of the plot's data
        Specified by:
        getDataHeaders in class Plot
        Returns:
        Headers of the plot's data
      • getDataContent

        protected String[][] getDataContent​(String xAxisTicksFormat,
                                            String yAxisTicksFormat)
        Description copied from class: Plot
        Returns an String matrix with the content of the plot's data. First dimension denotes the row and second dimension denotes the column that must be correlated with the header returned by getDataHeaders().
        Specified by:
        getDataContent in class Plot
        Parameters:
        xAxisTicksFormat - Number format for the values of the x axis
        yAxisTicksFormat - Number format for the values of the x axis
        Returns:
        String matrix with the content of the plot's data
      • getGralPlot

        protected de.erichseifert.gral.plots.AbstractPlot getGralPlot()
        Description copied from class: Plot
        Gets an AbstractPlot using GRAL
        Specified by:
        getGralPlot in class Plot
        Returns:
        GRAL's AbstractPlot