|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.SamplingXYLineRenderer
public class SamplingXYLineRenderer
A renderer that draws line charts. The renderer doesn't necessarily plot
every data item - instead, it tries to plot only those data items that
make a difference to the visual output (the other data items are skipped).
This renderer is designed for use with the XYPlot class.
| Nested Class Summary | |
|---|---|
static class |
SamplingXYLineRenderer.State
Records the state for the renderer. |
| Field Summary |
|---|
| Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
|---|
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
| Constructor Summary | |
|---|---|
SamplingXYLineRenderer()
Creates a new renderer. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of the renderer. |
void |
drawItem(Graphics2D g2,
XYItemRendererState state,
Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the visual representation of a single data item. |
boolean |
equals(Object obj)
Tests this renderer for equality with an arbitrary object. |
Shape |
getLegendLine()
Deprecated. As of version 1.0.14, this method is deprecated. You should use the AbstractRenderer.getBaseLegendShape() method instead. |
int |
getPassCount()
Returns the number of passes through the data that the renderer requires in order to draw the chart. |
XYItemRendererState |
initialise(Graphics2D g2,
Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
Initialises the renderer. |
void |
setLegendLine(Shape line)
Deprecated. As of version 1.0.14, this method is deprecated. You should use the AbstractRenderer.setBaseLegendShape(java.awt.Shape) method instead. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.chart.LegendItemSource |
|---|
getLegendItems |
| Constructor Detail |
|---|
public SamplingXYLineRenderer()
| Method Detail |
|---|
public Shape getLegendLine()
AbstractRenderer.getBaseLegendShape() method instead.
null).setLegendLine(Shape)public void setLegendLine(Shape line)
AbstractRenderer.setBaseLegendShape(java.awt.Shape) method instead.
RendererChangeEvent to all registered listeners.
line - the line (null not permitted).getLegendLine()public int getPassCount()
getPassCount in interface XYItemRenderergetPassCount in class AbstractXYItemRenderer
public XYItemRendererState initialise(Graphics2D g2,
Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.
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(Graphics2D g2,
XYItemRendererState state,
Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
drawItem in interface XYItemRendererg2 - the graphics device.state - the renderer state.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 axis.rangeAxis - the range axis.dataset - the dataset.series - the series index (zero-based).item - the item index (zero-based).crosshairState - crosshair information for the plot
(null permitted).pass - the pass index.
public Object clone()
throws CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractXYItemRendererCloneNotSupportedException - if the clone cannot be created.public boolean equals(Object obj)
equals in class AbstractXYItemRendererobj - the object (null permitted).
true or false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||