| java.lang.Object de.progra.charting.render.AbstractChartRenderer de.progra.charting.render.BarChartRenderer
BarChartRenderer | public class BarChartRenderer extends AbstractChartRenderer (Code) | | This renderer creates a BarChart. This will only work on a ChartDataModel
with non-numeric x-axis values, because I couldn't make any sense out of
a bar chart with a numeric x-axis like in a line chart.
author: mueller version: 1.0 |
Constructor Summary | |
public | BarChartRenderer(CoordSystem cs, ChartDataModel model) | public | BarChartRenderer(CoordSystem cs, ChartDataModel model, DecimalFormat topFormat, Font topFont, float boxWidth) Creates new BarChartRenderer
Parameters: cs - the CoordSystem used to translate into pixel space Parameters: model - the DataModel that should be rendered Parameters: topFormat - if not null, the values that each box represents will beprinted at the top of the box. Parameters: boxWidth - a value between 0.0 and 1.0 representing how much of the alloted space each box should consume. |
boxWidth | protected float boxWidth(Code) | | |
BarChartRenderer | public BarChartRenderer(CoordSystem cs, ChartDataModel model)(Code) | | Creates new BarChartRenderer
Parameters: cs - the CoordSystem used to translate into pixel space Parameters: model - the DataModel that should be rendered |
BarChartRenderer | public BarChartRenderer(CoordSystem cs, ChartDataModel model, DecimalFormat topFormat, Font topFont, float boxWidth)(Code) | | Creates new BarChartRenderer
Parameters: cs - the CoordSystem used to translate into pixel space Parameters: model - the DataModel that should be rendered Parameters: topFormat - if not null, the values that each box represents will beprinted at the top of the box. Parameters: boxWidth - a value between 0.0 and 1.0 representing how much of the alloted space each box should consume. If 1.0 is passed, then each box will completely fill it's allotted space, alternately I suggest you don't pass 0.0 |
renderChart | public void renderChart(Graphics2D g)(Code) | | Finally renders the Object in the Graphics object.
Parameters: g - the Graphics2D object in which to render |
|
|