|
||||||||||
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.XYBubbleRenderer
A renderer that draws a circle at each data point. The renderer expects the dataset to be an
XYZDataset
.
Field Summary | |
static int |
SCALE_ON_BOTH_AXES
A useful constant. |
static int |
SCALE_ON_DOMAIN_AXIS
A useful constant. |
static int |
SCALE_ON_RANGE_AXIS
A useful constant. |
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE |
Constructor Summary | |
XYBubbleRenderer()
Constructs a new renderer. |
|
XYBubbleRenderer(int scaleType,
XYZToolTipGenerator toolTipGenerator,
XYZURLGenerator 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. |
int |
getScaleType()
Returns the scale type. |
Methods inherited from class org.jfree.chart.renderer.AbstractXYItemRenderer |
drawDomainGridLine, drawDomainMarker, drawRangeGridLine, drawRangeMarker, equals, getLegendItem, getToolTipGenerator, getURLGenerator, initialise, 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, initialise, removePropertyChangeListener, setDrawingSupplier, setPlot, setSeriesPaint, setSeriesPaint, setToolTipGenerator, setURLGenerator |
Field Detail |
public static final int SCALE_ON_BOTH_AXES
public static final int SCALE_ON_DOMAIN_AXIS
public static final int SCALE_ON_RANGE_AXIS
Constructor Detail |
public XYBubbleRenderer()
public XYBubbleRenderer(int scaleType, XYZToolTipGenerator toolTipGenerator, XYZURLGenerator urlGenerator)
scaleType
- the type of scaling.toolTipGenerator
- the tool-tip generator (null
permitted).urlGenerator
- the URL generator (null
permitted).Method Detail |
public int getScaleType()
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 data is being drawn.info
- collects information about the drawing.plot
- the plot (can be used to obtain standard color information etc).domainAxis
- the domain (horizontal) axis.rangeAxis
- the range (vertical) axis.dataset
- the dataset.datasetIndex
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).crosshairInfo
- information about crosshairs on a plot.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |