|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for rendering the visual representation of a single (x, y) item on an
XYPlot
.
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to the renderer. |
void |
drawDomainGridLine(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis axis,
java.awt.geom.Rectangle2D dataArea,
double value)
Draws a grid line against the domain axis. |
void |
drawDomainMarker(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Marker marker,
java.awt.geom.Rectangle2D dataArea)
Draws a vertical line on the chart to represent a 'range marker'. |
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)
Called for each item to be plotted. |
void |
drawRangeGridLine(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis axis,
java.awt.geom.Rectangle2D dataArea,
double value)
Draws a grid line against the range axis. |
void |
drawRangeMarker(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Marker marker,
java.awt.geom.Rectangle2D dataArea)
Draws a horizontal line across the chart to represent a 'range marker'. |
java.awt.Paint |
getItemOutlinePaint(int dataset,
int series,
int item)
Returns the paint used to outline an item. |
java.awt.Paint |
getItemPaint(int dataset,
int series,
int item)
Returns the paint used to fill an item. |
java.awt.Shape |
getItemShape(int dataset,
int series,
int item)
Returns the shape for an item. |
java.awt.Stroke |
getItemStroke(int dataset,
int series,
int item)
Returns the stroke used to draw an item. |
LegendItem |
getLegendItem(int datasetIndex,
int series)
Returns a legend item for a series from a dataset. |
Plot |
getPlot()
Returns the plot that this renderer has been assigned to. |
java.awt.Paint |
getSeriesOutlinePaint(int dataset,
int series)
Returns the paint used to outline items in a series. |
java.awt.Paint |
getSeriesPaint(int dataset,
int series)
Returns the paint used to fill items in a series. |
java.awt.Shape |
getSeriesShape(int dataset,
int series)
Returns the shape for a series. |
java.awt.Stroke |
getSeriesStroke(int dataset,
int series)
Returns the stroke used to draw items in a series. |
XYToolTipGenerator |
getToolTipGenerator()
Returns the tool tip generator for the renderer (possibly null). |
XYURLGenerator |
getURLGenerator()
Returns the URL generator for HTML image maps. |
void |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
ChartRenderingInfo info)
Initialises the renderer. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from the renderer. |
void |
setDrawingSupplier(DrawingSupplier supplier)
Sets the drawing supplier. |
void |
setPlot(Plot plot)
Sets the plot that this renderer is assigned to. |
void |
setSeriesPaint(int dataset,
int series,
java.awt.Paint paint)
Sets the paint for a series. |
void |
setSeriesPaint(int series,
java.awt.Paint paint)
Sets the paint for a series in the primary dataset. |
void |
setToolTipGenerator(XYToolTipGenerator toolTipGenerator)
Sets the tool tip generator for the renderer. |
void |
setURLGenerator(XYURLGenerator urlGenerator)
Sets the URL generator for HTML image maps. |
Method Detail |
public void initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, XYPlot plot, XYDataset data, ChartRenderingInfo info)
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 setDrawingSupplier(DrawingSupplier supplier)
setDrawingSupplier
in interface Renderer
supplier
- the supplier.public XYToolTipGenerator getToolTipGenerator()
public void setToolTipGenerator(XYToolTipGenerator toolTipGenerator)
toolTipGenerator
- the tool tip generator (null permitted).public XYURLGenerator getURLGenerator()
public void setURLGenerator(XYURLGenerator urlGenerator)
urlGenerator
- the URL generator (null permitted).public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener.public java.awt.Paint getItemPaint(int dataset, int series, int item)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).
public java.awt.Paint getSeriesPaint(int dataset, int series)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).
public void setSeriesPaint(int series, java.awt.Paint paint)
setSeriesPaint
in interface Renderer
series
- the series index (zero-based).paint
- the paint.public void setSeriesPaint(int dataset, int series, java.awt.Paint paint)
setSeriesPaint
in interface Renderer
dataset
- the dataset index (zero-based).series
- the series index (zero-based).paint
- the paint.public java.awt.Paint getItemOutlinePaint(int dataset, int series, int item)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).
public java.awt.Paint getSeriesOutlinePaint(int dataset, int series)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).
public java.awt.Stroke getItemStroke(int dataset, int series, int item)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).
public java.awt.Stroke getSeriesStroke(int dataset, int series)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).
public java.awt.Shape getItemShape(int dataset, int series, int item)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).item
- the item index (zero-based).
public java.awt.Shape getSeriesShape(int dataset, int series)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).
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)
g2
- the graphics device.dataArea
- the area within which the data is being rendered.info
- collects drawing info.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.public LegendItem getLegendItem(int datasetIndex, int series)
datasetIndex
- the dataset index.series
- the series (zero-based index).
public void drawDomainGridLine(java.awt.Graphics2D g2, XYPlot plot, ValueAxis axis, java.awt.geom.Rectangle2D dataArea, double value)
g2
- the graphics device.plot
- the plot.axis
- the value axis.dataArea
- the area for plotting data (not yet adjusted for any 3D effect).value
- the value.public void drawRangeGridLine(java.awt.Graphics2D g2, XYPlot plot, ValueAxis axis, java.awt.geom.Rectangle2D dataArea, double value)
g2
- the graphics device.plot
- the plot.axis
- the value axis.dataArea
- the area for plotting data (not yet adjusted for any 3D effect).value
- the value.public void drawDomainMarker(java.awt.Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, java.awt.geom.Rectangle2D dataArea)
g2
- the graphics device.plot
- the plot.axis
- the value axis.marker
- the marker line.dataArea
- the axis data area.public void drawRangeMarker(java.awt.Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, java.awt.geom.Rectangle2D dataArea)
g2
- the graphics device.plot
- the plot.axis
- the value axis.marker
- the marker line.dataArea
- the axis data area.public Plot getPlot()
getPlot
in interface Renderer
public void setPlot(Plot plot)
This method will be called by the plot class...you do not need to call it yourself.
setPlot
in interface Renderer
plot
- the plot.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |