|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.renderer.AbstractRenderer | +--org.jfree.chart.renderer.AbstractXYItemRenderer | +--org.jfree.chart.renderer.VerticalXYBarRenderer
A renderer that draws bars on an XYPlot
(requires an IntervalXYDataset
).
Field Summary |
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE |
Constructor Summary | |
VerticalXYBarRenderer()
The default constructor. |
|
VerticalXYBarRenderer(double margin)
Constructs a new renderer. |
|
VerticalXYBarRenderer(double margin,
XYToolTipGenerator toolTipGenerator,
XYURLGenerator urlGenerator)
Constructs a new renderer. |
Method Summary | |
void |
drawItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int datasetIndex,
int series,
int item,
CrosshairInfo crosshairInfo)
Draws the visual representation of a single data item. |
void |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
ChartRenderingInfo info)
Initialises the renderer. |
void |
setMargin(double margin)
Sets the percentage amount by which the bars are trimmed. |
Methods inherited from class org.jfree.chart.renderer.AbstractXYItemRenderer |
drawDomainGridLine, drawDomainMarker, drawRangeGridLine, drawRangeMarker, equals, getLegendItem, getToolTipGenerator, getURLGenerator, setToolTipGenerator, setURLGenerator |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.chart.renderer.XYItemRenderer |
addPropertyChangeListener, drawDomainGridLine, drawDomainMarker, drawRangeGridLine, drawRangeMarker, getItemOutlinePaint, getItemPaint, getItemShape, getItemStroke, getLegendItem, getPlot, getSeriesOutlinePaint, getSeriesPaint, getSeriesShape, getSeriesStroke, getToolTipGenerator, getURLGenerator, removePropertyChangeListener, setDrawingSupplier, setPlot, setSeriesPaint, setSeriesPaint, setToolTipGenerator, setURLGenerator |
Constructor Detail |
public VerticalXYBarRenderer()
public VerticalXYBarRenderer(double margin)
margin
- the percentage amount to trim from the width of each bar.public VerticalXYBarRenderer(double margin, XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator)
margin
- the percentage amount to trim from the width of each bar.toolTipGenerator
- the tool tip generator (null
permitted).urlGenerator
- the URL generator (null
permitted).Method Detail |
public void setMargin(double margin)
Fires a property change event.
margin
- the new margin.public void initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, XYPlot plot, XYDataset data, ChartRenderingInfo info)
initialise
in interface XYItemRenderer
initialise
in class AbstractXYItemRenderer
g2
- the graphics device.dataArea
- the area inside the axes.plot
- the plot.data
- the data.info
- an optional info collection object to return data back to the caller.public void drawItem(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, ChartRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int datasetIndex, int series, int item, CrosshairInfo crosshairInfo)
drawItem
in interface XYItemRenderer
g2
- the graphics device.dataArea
- the area within which the plot is being drawn.info
- collects information about the drawing.plot
- the plot (can be used to obtain standard color information etc).domainAxis
- the domain axis.rangeAxis
- the range axis.dataset
- the dataset.datasetIndex
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).crosshairInfo
- collects information about crosshairs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |