Package org.jCharts.axisChart
Class BarChart
java.lang.Object
org.jCharts.axisChart.BarChart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static float
computeScaleHeightOfValue
(double value, double oneUnitPixelSize) Takes a value and determines the number of pixels it should fill on the screen.private static void
horizontalPlot
(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, Graphics2D g2d, Rectangle2D.Float rectangle, float startingX) (package private) static void
render
(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet) Draws the chart uses Rectangle2D......keep having rounding problems.private static void
verticalPlot
(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet, BarChartProperties barChartProperties, DataAxisProperties dataAxisProperties, Graphics2D g2d, Rectangle2D.Float rectangle, float startingY)
-
Constructor Details
-
BarChart
BarChart()
-
-
Method Details
-
render
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, Graphics2D g2d, 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, Graphics2D g2d, 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
-