Package org.jCharts.axisChart
Class BarChart
- java.lang.Object
-
- org.jCharts.axisChart.BarChart
-
abstract class BarChart extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BarChart()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static floatcomputeScaleHeightOfValue(double value, double oneUnitPixelSize)Takes a value and determines the number of pixels it should fill on the screen.private static voidhorizontalPlot(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D.Float rectangle, float startingX)(package private) static voidrender(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet)Draws the chart uses Rectangle2D......keep having rounding problems.private static voidverticalPlot(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D.Float rectangle, float startingY)
-
-
-
Method Detail
-
render
static void render(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet)
Draws the chart uses Rectangle2D......keep having rounding problems.- Parameters:
axisChart-iAxisChartDataSet-
-
horizontalPlot
private static void horizontalPlot(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D.Float rectangle, float startingX)
- Parameters:
axisChart-iAxisChartDataSet-barChartProperties-dataAxisProperties-g2d-rectangle-startingX-
-
verticalPlot
private static void verticalPlot(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D.Float rectangle, float startingY)
- Parameters:
axisChart-iAxisChartDataSet-barChartProperties-dataAxisProperties-g2d-rectangle-startingY-
-
computeScaleHeightOfValue
static float computeScaleHeightOfValue(double value, double oneUnitPixelSize)Takes a value and determines the number of pixels it should fill on the screen. If there is a user defined scale and the passed value is greater than the MAX or less than the MIN, the height will be forced to the MAX or MIN respectively.- Parameters:
value-oneUnitPixelSize-- Returns:
- float the screen pixel coordinate
-
-