Class SwingScatterPlotView<Row,​C>

  • All Implemented Interfaces:
    ScatterPlotView<javax.swing.JComponent,​java.awt.Color,​java.awt.Font,​Row,​C>

    public class SwingScatterPlotView<Row,​C>
    extends AbstractScatterPlotView<javax.swing.JComponent,​java.awt.Color,​java.awt.Font,​Row,​C>
    • Constructor Detail

      • SwingScatterPlotView

        public SwingScatterPlotView()
    • Method Detail

      • getNativeComponent

        public javax.swing.JComponent getNativeComponent()
      • setLicenseModel

        public void setLicenseModel​(LicenseModel licenseModel)
      • isShowTiming

        public boolean isShowTiming()
        Description copied from interface: ScatterPlotView
        Returns whether information about refresh rate should be displayed.
        Returns:
        true to display refresh rate information, false otherwise
      • setShowTiming

        public void setShowTiming​(boolean showTiming)
        Description copied from interface: ScatterPlotView
        Sets whether information about refresh rate should be displayed.
        Parameters:
        showTiming - true to display refresh rate information, false otherwise
      • setMaintainAspectRatio

        public void setMaintainAspectRatio​(boolean maintainAspectRatio)
      • isMaintainAspectRatio

        public boolean isMaintainAspectRatio()
      • getOLSRegression

        public double[] getOLSRegression()
      • computeOLSRegression

        public double[] computeOLSRegression()
        Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to the data using ordinary least squares regression. The result is returned as a double[], where result[0] --> a, and result[1] --> b.
        Returns:
        The parameters.