Package org.knowm.xchart
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>
 
- 
- 
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)ConstructorDialChart(int width, int height, Theme theme)ConstructorDialChart(DialChartBuilder chartBuilder)Constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DialSeriesaddSeries(String seriesName, double value)Add a series for a Dial type chartDialSeriesaddSeries(String seriesName, double value, String annotation)Add a series for a Dial type chartvoidpaint(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:
 paintin classorg.knowm.xchart.internal.chartpart.Chart<DialStyler,DialSeries>
 
 - 
 
 -