Package org.knowm.xchart
Class DialChart
-
Field Summary
Fields inherited from class org.knowm.xchart.internal.chartpart.Chart
annotations, axisPair, chartTitle, legend, plot, seriesMap, styler -
Constructor Summary
ConstructorsConstructorDescriptionDialChart(int width, int height) Constructor - the default Chart Theme will be used (XChartTheme)DialChart(int width, int height, Styler.ChartTheme chartTheme) ConstructorConstructorDialChart(DialChartBuilder chartBuilder) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAdd a series for a Dial type chartAdd a series for a Dial type chartvoidpaint(Graphics2D g, int width, int height) private voidsanityCheck(String seriesName, double value) Methods inherited from class org.knowm.xchart.internal.chartpart.Chart
addAnnotation, getChartXFromCoordinate, getChartYFromCoordinate, getChartYFromCoordinate, getHeight, getScreenXFromChart, getScreenYFromChart, getScreenYFromChart, getSeriesMap, getStyler, getTitle, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLeftWidth, getYAxisTitle, paintBackground, removeSeries, setCustomXAxisTickLabelsFormatter, setCustomYAxisTickLabelsFormatter, setHeight, setTitle, setWidth, setXAxisTitle, setYAxisGroupTitle, setYAxisTitle
-
Constructor Details
-
DialChart
public DialChart(int width, int height) Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width-height-
-
DialChart
Constructor- Parameters:
width-height-theme- - pass in a instance of Theme class, probably a custom Theme.
-
DialChart
Constructor- Parameters:
width-height-chartTheme- - pass in the desired ChartTheme enum
-
DialChart
Constructor- Parameters:
chartBuilder-
-
-
Method Details
-
addSeries
Add a series for a Dial type chart- Parameters:
seriesName-value-- Returns:
-
addSeries
Add a series for a Dial type chart- Parameters:
seriesName-value-label-- Returns:
-
sanityCheck
-
paint
- Specified by:
paintin classChart<DialStyler,DialSeries>
-