|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jCharts.Chart | +--org.jCharts.axisChart.AxisChart
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.
Field Summary | |
protected AxisProperties |
axisProperties
|
private IAxisDataSeries |
iAxisDataSeries
|
protected XAxis |
xAxis
|
protected YAxis |
yAxis
|
Fields inherited from class org.jCharts.Chart |
|
Constructor Summary | |
AxisChart(IAxisDataSeries iAxisDataSeries,
ChartProperties chartProperties,
AxisProperties axisProperties,
LegendProperties legendProperties,
int pixelWidth,
int pixelHeight)
Constructor |
Method Summary | |
private boolean |
allowHorizontalPlot()
We only allow horizontal plots for the Bar Chart types in this release. |
AxisChartDataProcessor |
createAxisChartDataProcessor()
ScatterPlots create a subclass of AxisChartDataProcessor so we need this method so we can overload it. |
protected void |
deriveAxisValues()
|
AxisProperties |
getAxisProperties()
|
IAxisDataSeries |
getIAxisDataSeries()
|
XAxis |
getXAxis()
|
YAxis |
getYAxis()
|
protected void |
overlayCharts()
Draws the charts over the axis. |
protected void |
renderChart()
Implement the method to render the Axis based chart |
protected void |
setupAxis(AxisChartDataProcessor axisChartDataProcessor,
java.awt.font.FontRenderContext fontRenderContext)
|
protected NumericTagGroup |
setupDataAxisProperties(Axis axis,
DataAxisProperties dataAxisProperties,
AxisChartDataProcessor axisChartDataProcessor,
java.awt.font.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. |
private void |
sizeAndPositionAxis(float xAxisWidth,
float yAxisHeight,
float chartTitleHeight)
Finalizes the size of both Axis and sets the origin position |
void |
toHTML(HTMLGenerator htmlGenerator,
java.lang.String imageFileName,
ImageMap imageMap)
Enables the testing routines to display the contents of this Object. |
private void |
validateHorizontalPlot()
Currently, we only support the bar chart types being horizontal, and you can not have a horizontally plotted bar chart in a combo chart. |
Methods inherited from class org.jCharts.Chart |
getBufferedImage, getChartProperties, getGenerateImageMapFlag, getGraphics2D, getImageHeight, getImageMap, getImageWidth, getLegend, hasLegend, render, renderChartTitle, renderWithImageMap, setGraphics2D, setImageMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected XAxis xAxis
protected YAxis yAxis
protected AxisProperties axisProperties
private IAxisDataSeries iAxisDataSeries
Constructor Detail |
public AxisChart(IAxisDataSeries iAxisDataSeries, ChartProperties chartProperties, AxisProperties axisProperties, LegendProperties legendProperties, int pixelWidth, int pixelHeight)
iAxisDataSeries
- chartProperties
- axisProperties
- legendProperties
- if no legend is desired, pass NULLpixelWidth
- pixelHeight
- Method Detail |
public IAxisDataSeries getIAxisDataSeries()
public AxisChartDataProcessor createAxisChartDataProcessor()
protected NumericTagGroup setupDataAxisProperties(Axis axis, DataAxisProperties dataAxisProperties, AxisChartDataProcessor axisChartDataProcessor, java.awt.font.FontRenderContext fontRenderContext)
dataAxisProperties
- axisChartDataProcessor
- fontRenderContext
-
protected void setupAxis(AxisChartDataProcessor axisChartDataProcessor, java.awt.font.FontRenderContext fontRenderContext) throws ChartDataException
axisChartDataProcessor
- fontRenderContext
-
ChartDataException
private void sizeAndPositionAxis(float xAxisWidth, float yAxisHeight, float chartTitleHeight)
xAxisWidth
- yAxisHeight
- chartTitleHeight
- protected void deriveAxisValues()
protected void renderChart() throws ChartDataException, PropertyException
renderChart
in class Chart
ChartDataException
PropertyException
- there are several validations done to aid in development of the
charts.protected void overlayCharts() throws PropertyException, ChartDataException
PropertyException
ChartDataException
private void validateHorizontalPlot() throws PropertyException
PropertyException
private boolean allowHorizontalPlot()
public AxisProperties getAxisProperties()
public XAxis getXAxis()
public YAxis getYAxis()
public void toHTML(HTMLGenerator htmlGenerator, java.lang.String imageFileName, ImageMap imageMap)
toHTML
in interface HTMLChartTestable
toHTML
in class Chart
htmlGenerator
- imageFileName
- imageMap
- if this is NULL we are not creating image map data in html
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |