Class SimplePlot

    • Constructor Detail

      • SimplePlot

        public SimplePlot()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • handlesRowRange

        public boolean handlesRowRange​(adams.gui.core.TableRowRange range)
        Checks whether the row range can be handled.
        Specified by:
        handlesRowRange in interface adams.gui.core.spreadsheettable.TableRowRangeCheck
        Parameters:
        range - the range to check
        Returns:
        true if handled
      • promptParameters

        protected adams.core.Properties promptParameters​(InstancesTable table,
                                                         boolean isColumn)
        Prompts the user to configure the parameters.
        Parameters:
        table - the table to do this for
        isColumn - whether column or row(s)
        Returns:
        the parameters, null if cancelled
      • createPlot

        protected void createPlot​(InstancesTable table,
                                  boolean isColumn,
                                  List<Double>[] list,
                                  String title,
                                  String[] titles)
        Generates the plot.
        Parameters:
        table - the table this is for
        isColumn - whether column or row(s)
        list - the data to plot
        title - the title of the plot
        titles - the titles array
      • plot

        protected void plot​(InstancesTablePopupMenuItemHelper.TableState state,
                            boolean isColumn,
                            int index,
                            int[] indices)
        Allows the user to generate a plot from either a row or a column.
        Parameters:
        state - the table state
        isColumn - whether the to use column or row
        index - the index of the row/column
        indices - the indices of the rows, ignored if null
      • minNumRows

        public int minNumRows()
        Returns the minimum number of rows that the plugin requires.
        Specified by:
        minNumRows in interface PlotSelectedRows
        Returns:
        the minimum
      • maxNumRows

        public int maxNumRows()
        Returns the maximum number of rows that the plugin requires.
        Specified by:
        maxNumRows in interface PlotSelectedRows
        Returns:
        the maximum, -1 for none