java.lang.Object
org.knowm.xchart.internal.chartpart.Chart<ST,S>
- Direct Known Subclasses:
BoxChart, BubbleChart, CategoryChart, DialChart, HeatMapChart, OHLCChart, PieChart, RadarChart, XYChart
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) (package private) AxisPair(package private) ChartTitle<ST, S> Chart Parts GettersdoublegetChartXFromCoordinate(int screenX) doublegetChartYFromCoordinate(int screenY) doublegetChartYFromCoordinate(int screenY, int yIndex) intgetPlot()doublegetScreenXFromChart(double xValue) doublegetScreenYFromChart(double yValue) doublegetScreenYFromChart(double yValue, int yIndex) Gets the Chart's styler, which can be used to customize the Chart's appearancegetTitle()intgetWidth()Getters and Setters(package private) AxisgetXAxis()(package private) Format(package private) AxisgetYAxis()(package private) AxisgetYAxis(int yIndex) (package private) Format(package private) FormatgetYAxisFormat(String yAxisDecimalPattern) getYAxisGroupTitle(int yAxisGroup) doubleabstract voidpaint(Graphics2D g, int width, int height) protected voidremoveSeries(String seriesName) voidsetCustomXAxisTickLabelsFormatter(Function<Double, String> customFormattingFunction) voidsetCustomYAxisTickLabelsFormatter(Function<Double, String> customFormattingFunction) protected voidsetHeight(int height) voidprotected voidsetWidth(int width) voidsetXAxisTitle(String xAxisTitle) voidsetYAxisGroupTitle(int yAxisGroup, String yAxisTitle) voidsetYAxisTitle(String yAxisTitle)
-
Field Details
-
styler
-
chartTitle
-
seriesMap
-
annotations
-
axisPair
Chart Parts -
plot
-
legend
-
width
private int widthMeta Data -
height
private int height -
title
-
xAxisTitle
-
yAxisTitle
-
yAxisGroupTitleMap
-
-
Constructor Details
-
Chart
-
-
Method Details
-
paint
-
paintBackground
-
getStyler
Gets the Chart's styler, which can be used to customize the Chart's appearance- Returns:
- the styler
-
removeSeries
-
getWidth
public int getWidth()Getters and Setters -
setWidth
protected void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
protected void setHeight(int height) -
getTitle
-
setTitle
-
getXAxisTitle
-
setXAxisTitle
-
getYAxisTitle
-
setYAxisTitle
-
getYAxisGroupTitle
-
setYAxisGroupTitle
-
addAnnotation
-
setCustomXAxisTickLabelsFormatter
-
setCustomYAxisTickLabelsFormatter
-
getChartTitle
ChartTitle<ST,S> getChartTitle()Chart Parts Getters -
getLegend
-
getPlot
-
getXAxis
Axis getXAxis() -
getYAxis
Axis getYAxis() -
getYAxis
-
getAxisPair
AxisPair getAxisPair() -
getXAxisFormat
Format getXAxisFormat() -
getYAxisFormat
Format getYAxisFormat() -
getYAxisFormat
-
getChartXFromCoordinate
public double getChartXFromCoordinate(int screenX) -
getChartYFromCoordinate
public double getChartYFromCoordinate(int screenY) -
getChartYFromCoordinate
public double getChartYFromCoordinate(int screenY, int yIndex) -
getScreenXFromChart
public double getScreenXFromChart(double xValue) -
getScreenYFromChart
public double getScreenYFromChart(double yValue) -
getScreenYFromChart
public double getScreenYFromChart(double yValue, int yIndex) -
getYAxisLeftWidth
public double getYAxisLeftWidth() -
getSeriesMap
-