Package org.jCharts.axisChart
Class ScatterPlotAxisChart
java.lang.Object
org.jCharts.Chart
org.jCharts.axisChart.AxisChart
org.jCharts.axisChart.ScatterPlotAxisChart
- All Implemented Interfaces:
Serializable,HTMLChartTestable
This Class is used to create all axis chart types. This class knows how to render charts based on
the ChartType specified in on the iAxisChartDataSet.
- See Also:
-
Field Summary
Fields inherited from class org.jCharts.axisChart.AxisChart
axisProperties, xAxis, yAxis -
Constructor Summary
ConstructorsConstructorDescriptionScatterPlotAxisChart(IScatterPlotDataSeries iScatterPlotDataSeries, ChartProperties chartProperties, AxisProperties axisProperties, LegendProperties legendProperties, int pixelWidth, int pixelHeight) Constructor -
Method Summary
Modifier and TypeMethodDescriptionScatterPlots create a subclass of AxisChartDataProcessor so we need this method so we can overload it.protected voidprotected voidDraws the charts over the axis.protected voidsetupAxis(AxisChartDataProcessor axisChartDataProcessor, FontRenderContext fontRenderContext) protected NumericTagGroupsetupDataAxisProperties(Axis axis, DataAxisProperties dataAxisProperties, AxisChartDataProcessor axisChartDataProcessor, FontRenderContext fontRenderContext) Once we determine which axis is the data axis, the logic to set it up is the same whether it is a horizontal or vertical plot.voidtoHTML(HTMLGenerator htmlGenerator, String imageFileName, ImageMap imageMap) Enables the testing routines to display the contents of this Object.Methods inherited from class org.jCharts.axisChart.AxisChart
getAxisProperties, getIAxisDataSeries, getXAxis, getYAxis, renderChartMethods inherited from class org.jCharts.Chart
getBufferedImage, getChartProperties, getGenerateImageMapFlag, getGraphics2D, getImageHeight, getImageMap, getImageWidth, getLegend, hasLegend, render, renderChartTitle, renderWithImageMap, setGraphics2D, setImageMap
-
Constructor Details
-
ScatterPlotAxisChart
public ScatterPlotAxisChart(IScatterPlotDataSeries iScatterPlotDataSeries, ChartProperties chartProperties, AxisProperties axisProperties, LegendProperties legendProperties, int pixelWidth, int pixelHeight) Constructor- Parameters:
iScatterPlotDataSeries-chartProperties-axisProperties-legendProperties- if no legend is desired, pass NULLpixelWidth-pixelHeight-
-
-
Method Details
-
createAxisChartDataProcessor
ScatterPlots create a subclass of AxisChartDataProcessor so we need this method so we can overload it.- Overrides:
createAxisChartDataProcessorin classAxisChart- Returns:
- AxisChartDataProcessor
-
setupDataAxisProperties
protected NumericTagGroup setupDataAxisProperties(Axis axis, DataAxisProperties dataAxisProperties, AxisChartDataProcessor axisChartDataProcessor, FontRenderContext fontRenderContext) Once we determine which axis is the data axis, the logic to set it up is the same whether it is a horizontal or vertical plot.- Overrides:
setupDataAxisPropertiesin classAxisChart- Parameters:
dataAxisProperties-axisChartDataProcessor-fontRenderContext-- Returns:
- NumericTagGroup need to set this on the right axis
-
setupAxis
protected void setupAxis(AxisChartDataProcessor axisChartDataProcessor, FontRenderContext fontRenderContext) -
deriveAxisValues
protected void deriveAxisValues()- Overrides:
deriveAxisValuesin classAxisChart
-
overlayCharts
Draws the charts over the axis. We have to render in a specific order so combo charts get drawn correctly- Overrides:
overlayChartsin classAxisChart- Throws:
PropertyException
-
toHTML
Enables the testing routines to display the contents of this Object. Override Chart implementation as PieCharts use AreaProperties directly rather than a child.- Specified by:
toHTMLin interfaceHTMLChartTestable- Overrides:
toHTMLin classAxisChart- Parameters:
htmlGenerator-imageFileName-imageMap- if this is NULL we are not creating image map data in html
-