Class DialChart


  • public class DialChart
    extends org.knowm.xchart.internal.chartpart.Chart<DialStyler,​DialSeries>
    • Field Summary

      • Fields inherited from class org.knowm.xchart.internal.chartpart.Chart

        axisPair, chartTitle, legend, plot, seriesMap, styler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DialSeries addSeries​(String seriesName, double value)
      Add a series for a Dial type chart
      DialSeries addSeries​(String seriesName, double value, String annotation)
      Add a series for a Dial type chart
      void paint​(Graphics2D g, int width, int height)  
      • Methods inherited from class org.knowm.xchart.internal.chartpart.Chart

        getHeight, getSeriesMap, getStyler, getTitle, getToolTips, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLabelOverrideMap, getYAxisTitle, paintBackground, removeSeries, setHeight, setTitle, setWidth, setXAxisLabelOverrideMap, setXAxisTitle, setYAxisGroupTitle, setYAxisLabelOverrideMap, setYAxisLabelOverrideMap, setYAxisTitle
    • Constructor Detail

      • DialChart

        public DialChart​(int width,
                         int height)
        Constructor - the default Chart Theme will be used (XChartTheme)
        Parameters:
        width -
        height -
      • DialChart

        public DialChart​(int width,
                         int height,
                         Theme theme)
        Constructor
        Parameters:
        width -
        height -
        theme - - pass in a instance of Theme class, probably a custom Theme.
      • DialChart

        public DialChart​(int width,
                         int height,
                         Styler.ChartTheme chartTheme)
        Constructor
        Parameters:
        width -
        height -
        chartTheme - - pass in the desired ChartTheme enum
      • DialChart

        public DialChart​(DialChartBuilder chartBuilder)
        Constructor
        Parameters:
        chartBuilder -
    • Method Detail

      • addSeries

        public DialSeries addSeries​(String seriesName,
                                    double value)
        Add a series for a Dial type chart
        Parameters:
        seriesName -
        value -
        Returns:
      • addSeries

        public DialSeries addSeries​(String seriesName,
                                    double value,
                                    String annotation)
        Add a series for a Dial type chart
        Parameters:
        seriesName -
        value -
        annotation -
        Returns:
      • paint

        public void paint​(Graphics2D g,
                          int width,
                          int height)
        Specified by:
        paint in class org.knowm.xchart.internal.chartpart.Chart<DialStyler,​DialSeries>