Class DialChart

java.lang.Object
org.knowm.xchart.internal.chartpart.Chart<DialStyler,​DialSeries>
org.knowm.xchart.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

    annotations, axisPair, chartTitle, legend, plot, seriesMap, styler
  • Constructor Summary

    Constructors
    Constructor Description
    DialChart​(int width, int height)
    Constructor - the default Chart Theme will be used (XChartTheme)
    DialChart​(int width, int height, Styler.ChartTheme chartTheme)
    Constructor
    DialChart​(int width, int height, Theme theme)
    Constructor
    DialChart​(DialChartBuilder chartBuilder)
    Constructor
  • Method Summary

    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 label)
    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

    addAnnotation, getHeight, getSeriesMap, getStyler, getTitle, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLeftWidth, getYAxisTitle, paintBackground, removeSeries, setCustomXAxisTickLabelsFormatter, setCustomYAxisTickLabelsFormatter, setHeight, setTitle, setWidth, setXAxisTitle, setYAxisGroupTitle, setYAxisTitle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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 label)
      Add a series for a Dial type chart
      Parameters:
      seriesName -
      value -
      label -
      Returns:
    • paint

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