Class AbstractXYChartGenerator

    • Field Detail

      • m_MarkerSize

        protected int m_MarkerSize
        the marker size.
      • m_BackgroundColor

        protected Color m_BackgroundColor
        the background color.
      • m_ColorProvider

        protected ColorProvider m_ColorProvider
        the color provider for generating the colors (if more than one series).
      • m_DiagonalColor

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

        protected Color m_ZoomSelectionColor
        the zoom selection color.
    • Constructor Detail

      • AbstractXYChartGenerator

        public AbstractXYChartGenerator()
    • 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.
      • colorProviderTipText

        public String colorProviderTipText()
        Returns the tip text for this property.
        Specified by:
        colorProviderTipText in interface ColorProviderHandler
        Returns:
        tip text for this property suitable for displaying in the gui
      • 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.
      • 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