Class DensityScatterPlotChart

    • Field Detail

      • m_MarkerSize

        protected int m_MarkerSize
        the marker size.
      • m_BackgroundColor

        protected Color m_BackgroundColor
        the background color.
      • m_DiagonalColor

        protected Color m_DiagonalColor
        the color for the diagonal plot.
      • m_ZoomSelectionColor

        protected Color m_ZoomSelectionColor
        the zoom selection color.
      • m_NumBins

        protected int m_NumBins
        the number of bins to generate on X and Y.
      • m_Bandwidth

        protected double m_Bandwidth
        the bandwidth.
    • Constructor Detail

      • DensityScatterPlotChart

        public DensityScatterPlotChart()
    • Method Detail

      • setMarkerSize

        public void setMarkerSize​(int value)
        Sets the marker size.
        Parameters:
        value - the size
      • getMarkerSize

        public int getMarkerSize()
        Returns the marker size.
        Returns:
        the size
      • markerSizeTipText

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

        public void setBackgroundColor​(Color value)
        Sets the background color for the plot.
        Parameters:
        value - the color
      • getBackgroundColor

        public Color getBackgroundColor()
        Returns the background color for the plot.
        Returns:
        the color
      • backgroundColorTipText

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

        public void setDiagonalColor​(Color value)
        Sets the color for the diagonal (ie second data series if present) of XY charts.
        Parameters:
        value - the color
      • getDiagonalColor

        public Color getDiagonalColor()
        Returns the color for the diagonal (ie second data series if present) of XY charts.
        Returns:
        the color
      • diagonalColorTipText

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

        public void setZoomSelectionColor​(Color value)
        Sets the color for the zoom selection.
        Parameters:
        value - the color
      • getZoomSelectionColor

        public Color getZoomSelectionColor()
        Returns the color for the zoom selection.
        Returns:
        the color
      • zoomSelectionColorTipText

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

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

        public void setNumBins​(int value)
        Sets the number of bins to generate on X and Y axis.
        Parameters:
        value - the number of bins
      • getNumBins

        public int getNumBins()
        Returns the number of bins to generate on X and Y axis.
        Returns:
        the number of bins
      • numBinsTipText

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

        public void setBandwidth​(double value)
        Sets the bandwidth for kernel density estimates.
        Parameters:
        value - the bandwidth
      • getBandwidth

        public double getBandwidth()
        Returns the bandwidth for kernel density estimates.
        Returns:
        the bandwidth
      • bandwidthTipText

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

        public void setGenerator​(ColorGradientGenerator value)
        Sets the color generator.
        Parameters:
        value - the generator
      • getGenerator

        public ColorGradientGenerator getGenerator()
        Returns the color generator.
        Returns:
        the generator
      • generatorTipText

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

        protected void styleChart​(org.knowm.xchart.XYChart chart,
                                  Datasets<XYDataset> data)
        Applies styling to the chart.
        Specified by:
        styleChart in class AbstractChartGenerator<org.knowm.xchart.XYChart,​XYDataset>
        Parameters:
        data - the data to will be added
        chart - the chart to style
      • addData

        protected void addData​(org.knowm.xchart.XYChart chart,
                               Datasets<XYDataset> data)
        Adds the data to the chart.
        Specified by:
        addData in class AbstractChartGenerator<org.knowm.xchart.XYChart,​XYDataset>
        Parameters:
        chart - the chart to add the data to
        data - the data to add
      • postGenerate

        protected void postGenerate​(org.knowm.xchart.XYChart chart,
                                    Datasets<XYDataset> data)
        Hook method for after the chart has been generated.
        Overrides:
        postGenerate in class AbstractChartGenerator<org.knowm.xchart.XYChart,​XYDataset>
        Parameters:
        chart - the chart to add the data to
        data - the data to add