|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.AbstractXYItemRenderer
com.jrefinery.chart.VerticalXYBarRenderer
public class VerticalXYBarRenderer
A renderer that draws bars on an XY plot (requires an IntervalXYDataset).
| Field Summary | |
|---|---|
protected double |
margin
Percentage margin (to reduce the width of bars). |
protected double |
translatedRangeZero
A data value of zero translated to a Java2D value. |
| Fields inherited from class com.jrefinery.chart.AbstractXYItemRenderer |
|---|
info, listeners, toolTipGenerator |
| Constructor Summary | |
|---|---|
VerticalXYBarRenderer()
The default constructor. |
|
VerticalXYBarRenderer(double margin)
Constructs a new renderer. |
|
VerticalXYBarRenderer(double margin,
com.jrefinery.chart.tooltips.XYToolTipGenerator toolTipGenerator)
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 data,
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 com.jrefinery.chart.AbstractXYItemRenderer |
|---|
addPropertyChangeListener, firePropertyChanged, getToolTipGenerator, removePropertyChangeListener, setToolTipGenerator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jrefinery.chart.XYItemRenderer |
|---|
addPropertyChangeListener, getToolTipGenerator, removePropertyChangeListener, setToolTipGenerator |
| Field Detail |
|---|
protected double margin
protected double translatedRangeZero
| Constructor Detail |
|---|
public VerticalXYBarRenderer()
public VerticalXYBarRenderer(double margin)
margin - The percentage amount to trim from the width of each bar.
public VerticalXYBarRenderer(double margin,
com.jrefinery.chart.tooltips.XYToolTipGenerator toolTipGenerator)
margin - The percentage amount to trim from the width of each bar.toolTipGenerator - The tool tip 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 XYItemRendererinitialise in class AbstractXYItemRendererg2 - 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 data,
int series,
int item,
CrosshairInfo crosshairInfo)
drawItem in interface XYItemRendererg2 - 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.data - The dataset.series - The series index.item - The item index.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||