| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.XYLineAndShapeRenderer
All known Subclasses: org.jfree.chart.renderer.xy.XYErrorRenderer, org.jfree.experimental.chart.renderer.xy.XYSmoothLineAndShapeRenderer, org.jfree.chart.renderer.xy.XYStepRenderer, org.jfree.chart.renderer.xy.XYLine3DRenderer, org.jfree.chart.renderer.xy.DefaultXYItemRenderer, org.jfree.chart.renderer.xy.DeviationRenderer,
Method Summary | |
public Object | clone() Returns a clone of the renderer. | protected void | drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape) Draws the first pass shape. | 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) Draws the visual representation of a single data item. | protected void | drawPrimaryLine(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea) Draws the item (first pass). | protected void | drawPrimaryLineAsPath(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea) Draws the item (first pass). | protected void | drawSecondaryPass(Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, Rectangle2D dataArea, ValueAxis rangeAxis, CrosshairState crosshairState, EntityCollection entities) Draws the item shapes and adds chart entities (second pass). | public boolean | equals(Object obj) Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public boolean | getBaseLinesVisible() Returns the base 'lines visible' attribute. | public boolean | getBaseShapesFilled() Returns the base 'shape filled' attribute. | public boolean | getBaseShapesVisible() Returns the base 'shape visible' attribute. | public boolean | getDrawOutlines() Returns true if outlines should be drawn for shapes, and
false otherwise. | public boolean | getDrawSeriesLineAsPath() Returns a flag that controls whether or not each series is drawn as a
single path. | public boolean | getItemLineVisible(int series, int item) Returns the flag used to control whether or not the shape for an item is
visible.
Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). | public boolean | getItemShapeFilled(int series, int item) Returns the flag used to control whether or not the shape for an item
is filled.
The default implementation passes control to the
getSeriesShapesFilled method. | public boolean | getItemShapeVisible(int series, int item) Returns the flag used to control whether or not the shape for an item is
visible.
The default implementation passes control to the
getSeriesShapesVisible method. | public LegendItem | getLegendItem(int datasetIndex, int series) Returns a legend item for the specified series.
Parameters: datasetIndex - the dataset index (zero-based). Parameters: series - the series index (zero-based). | public Shape | getLegendLine() Returns the shape used to represent a line in the legend. | public Boolean | getLinesVisible() Returns a flag that controls whether or not lines are drawn for ALL
series. | public int | getPassCount() Returns the number of passes through the data that the renderer requires
in order to draw the chart. | public Boolean | getSeriesLinesVisible(int series) Returns the flag used to control whether or not the lines for a series
are visible.
Parameters: series - the series index (zero-based). | public Boolean | getSeriesShapesFilled(int series) Returns the flag used to control whether or not the shapes for a series
are filled.
Parameters: series - the series index (zero-based). | public Boolean | getSeriesShapesVisible(int series) Returns the flag used to control whether or not the shapes for a series
are visible.
Parameters: series - the series index (zero-based). | public Boolean | getShapesVisible() Returns the flag that controls whether the shapes are visible for the
items in ALL series. | public boolean | getUseFillPaint() Returns true if the renderer should use the fill paint
setting to fill shapes, and false if it should just
use the regular paint. | public boolean | getUseOutlinePaint() Returns true if the renderer should use the outline paint
setting to draw shape outlines, and false if it should just
use the regular paint. | public XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) Initialises the renderer.
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. | protected boolean | isItemPass(int pass) Returns true if the specified pass is the one for drawing
items.
Parameters: pass - the pass. | protected boolean | isLinePass(int pass) Returns true if the specified pass is the one for drawing
lines.
Parameters: pass - the pass. | public void | setBaseLinesVisible(boolean flag) Sets the base 'lines visible' flag and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseShapesFilled(boolean flag) Sets the base 'shapes filled' flag and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseShapesVisible(boolean flag) Sets the base 'shapes visible' flag and sends a
RendererChangeEvent to all registered listeners. | public void | setDrawOutlines(boolean flag) Sets the flag that controls whether outlines are drawn for
shapes, and sends a
RendererChangeEvent to all registered
listeners. | public void | setDrawSeriesLineAsPath(boolean flag) Sets the flag that controls whether or not each series is drawn as a
single path. | public void | setLegendLine(Shape line) Sets the shape used as a line in each legend item and sends a
RendererChangeEvent to all registered listeners. | public void | setLinesVisible(Boolean visible) Sets a flag that controls whether or not lines are drawn between the
items in ALL series, and sends a
RendererChangeEvent to all
registered listeners. | public void | setLinesVisible(boolean visible) Sets a flag that controls whether or not lines are drawn between the
items in ALL series, and sends a
RendererChangeEvent to all
registered listeners. | public void | setSeriesLinesVisible(int series, Boolean flag) Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesLinesVisible(int series, boolean visible) Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesShapesFilled(int series, boolean flag) Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesShapesFilled(int series, Boolean flag) Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesShapesVisible(int series, boolean visible) Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesShapesVisible(int series, Boolean flag) Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setShapesFilled(boolean filled) Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setShapesFilled(Boolean filled) Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setShapesVisible(Boolean visible) Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setShapesVisible(boolean visible) Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setUseFillPaint(boolean flag) Sets the flag that controls whether the fill paint is used to fill
shapes, and sends a
RendererChangeEvent to all
registered listeners. | public void | setUseOutlinePaint(boolean flag) Sets the flag that controls whether the outline paint is used to draw
shape outlines, and sends a
RendererChangeEvent to all
registered listeners. |
XYLineAndShapeRenderer | public XYLineAndShapeRenderer()(Code) | | Creates a new renderer with both lines and shapes visible.
|
XYLineAndShapeRenderer | public XYLineAndShapeRenderer(boolean lines, boolean shapes)(Code) | | Creates a new renderer.
Parameters: lines - lines visible? Parameters: shapes - shapes visible? |
drawFirstPassShape | protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape)(Code) | | Draws the first pass shape.
Parameters: g2 - the graphics device. Parameters: pass - the pass. Parameters: series - the series index. Parameters: item - the item index. Parameters: shape - the shape. |
drawItem | 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)(Code) | | Draws the visual representation of a single data item.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area within which the data is being drawn. Parameters: info - collects information about the drawing. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: crosshairState - crosshair information for the plot (null permitted). Parameters: pass - the pass index. |
drawPrimaryLine | protected void drawPrimaryLine(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea)(Code) | | Draws the item (first pass). This method draws the lines
connecting the items.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area within which the data is being drawn. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: pass - the pass. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). |
drawPrimaryLineAsPath | protected void drawPrimaryLineAsPath(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea)(Code) | | Draws the item (first pass). This method draws the lines
connecting the items. Instead of drawing separate lines,
a GeneralPath is constructed and drawn at the end of
the series painting.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: dataset - the dataset. Parameters: pass - the pass. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataArea - the area within which the data is being drawn. |
drawSecondaryPass | protected void drawSecondaryPass(Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, Rectangle2D dataArea, ValueAxis rangeAxis, CrosshairState crosshairState, EntityCollection entities)(Code) | | Draws the item shapes and adds chart entities (second pass). This method
draws the shapes which mark the item positions. If entities
is not null it will be populated with entity information
for points that fall within the data area.
Parameters: g2 - the graphics device. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain axis. Parameters: dataArea - the area within which the data is being drawn. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: pass - the pass. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: crosshairState - the crosshair state. Parameters: entities - the entity collection. |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). true or false . |
getItemLineVisible | public boolean getItemLineVisible(int series, int item)(Code) | | Returns the flag used to control whether or not the shape for an item is
visible.
Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). A boolean. |
getItemShapeFilled | public boolean getItemShapeFilled(int series, int item)(Code) | | Returns the flag used to control whether or not the shape for an item
is filled.
The default implementation passes control to the
getSeriesShapesFilled method. You can override this method
if you require different behaviour.
Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). A boolean. |
getItemShapeVisible | public boolean getItemShapeVisible(int series, int item)(Code) | | Returns the flag used to control whether or not the shape for an item is
visible.
The default implementation passes control to the
getSeriesShapesVisible method. You can override this method
if you require different behaviour.
Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). A boolean. |
getLegendItem | public LegendItem getLegendItem(int datasetIndex, int series)(Code) | | Returns a legend item for the specified series.
Parameters: datasetIndex - the dataset index (zero-based). Parameters: series - the series index (zero-based). A legend item for the series. |
getPassCount | public int getPassCount()(Code) | | Returns the number of passes through the data that the renderer requires
in order to draw the chart. Most charts will require a single pass, but
some require two passes.
The pass count. |
initialise | public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code) | | Initialises the renderer.
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.
Parameters: g2 - the graphics device. Parameters: dataArea - the area inside the axes. Parameters: plot - the plot. Parameters: data - the data. Parameters: info - an optional info collection object to return data back to the caller. The renderer state. |
isItemPass | protected boolean isItemPass(int pass)(Code) | | Returns true if the specified pass is the one for drawing
items.
Parameters: pass - the pass. A boolean. |
isLinePass | protected boolean isLinePass(int pass)(Code) | | Returns true if the specified pass is the one for drawing
lines.
Parameters: pass - the pass. A boolean. |
setDrawOutlines | public void setDrawOutlines(boolean flag)(Code) | | Sets the flag that controls whether outlines are drawn for
shapes, and sends a
RendererChangeEvent to all registered
listeners.
In some cases, shapes look better if they do NOT have an outline, but
this flag allows you to set your own preference.
Parameters: flag - the flag. See Also: XYLineAndShapeRenderer.getDrawOutlines() |
setLinesVisible | public void setLinesVisible(Boolean visible)(Code) | | Sets a flag that controls whether or not lines are drawn between the
items in ALL series, and sends a
RendererChangeEvent to all
registered listeners. You need to set this to null if you
want the "per series" settings to apply.
Parameters: visible - the flag (null permitted). See Also: XYLineAndShapeRenderer.getLinesVisible() |
setShapesFilled | public void setShapesFilled(boolean filled)(Code) | | Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent to all registered listeners.
Parameters: filled - the flag. |
setShapesFilled | public void setShapesFilled(Boolean filled)(Code) | | Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent to all registered listeners.
Parameters: filled - the flag (null permitted). |
Methods inherited from org.jfree.chart.renderer.xy.AbstractXYItemRenderer | public void addAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void addAnnotation(XYAnnotation annotation, Layer layer)(Code)(Java Doc) protected void addEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code)(Java Doc) public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)(Code)(Java Doc) public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public Range findDomainBounds(XYDataset dataset)(Code)(Java Doc) public Range findRangeBounds(XYDataset dataset)(Code)(Java Doc) public XYItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public XYToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getDefaultEntityRadius()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator(int series, int item)(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public XYPlot getPlot()(Code)(Java Doc) public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator(int series, int item)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public XYURLGenerator getURLGenerator()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) public boolean removeAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void removeAnnotations()(Code)(Java Doc) public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setDefaultEntityRadius(int radius)(Code)(Java Doc) public void setItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(XYPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setURLGenerator(XYURLGenerator urlGenerator)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc)
|
|
|