| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.StandardXYItemRenderer
All known Subclasses: org.jfree.chart.renderer.xy.CyclicXYItemRenderer,
Field Summary | |
final public static int | DISCONTINUOUS Constant for the type of rendering (discontinuous lines). | final public static int | DISCONTINUOUS_LINES Constant for the type of rendering (discontinuous lines). | final public static int | IMAGES Constant for the type of rendering (images only). | final public static int | LINES Constant for the type of rendering (lines only). | final public static int | SHAPES Constant for the type of rendering (shapes only). | final public static int | SHAPES_AND_LINES Constant for the type of rendering (shapes and lines). |
Method Summary | |
public Object | clone() Returns a clone of the renderer. | 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. | public boolean | equals(Object obj) Tests this renderer for equality with another object.
Parameters: obj - the object (null permitted). | public boolean | getBaseShapesFilled() Returns the base 'shape filled' attribute. | public boolean | getBaseShapesVisible() Returns true if shapes are being plotted by the renderer. | public boolean | getDrawSeriesLineAsPath() Returns a flag that controls whether or not each series is drawn as a
single path. | public double | getGapThreshold() Returns the gap threshold for discontinuous lines. | public UnitType | getGapThresholdType() Returns the gap threshold type (relative or absolute). | protected Image | getImage(Plot plot, int series, int item, double x, double y) Returns the image used to draw a single data item.
Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: series - the series index. Parameters: item - the item index. Parameters: x - the x value of the item. Parameters: y - the y value of the item. | protected Point | getImageHotspot(Plot plot, int series, int item, double x, double y, Image image) Returns the hotspot of the image used to draw a single data item.
The hotspot is the point relative to the top left of the image
that should indicate the data item. | 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 LegendItem | getLegendItem(int datasetIndex, int series) Returns a legend item for a 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 | getPlotDiscontinuous() Returns a flag that controls whether or not the renderer shows
discontinuous lines. | public boolean | getPlotImages() Returns true if images are being plotted by the renderer. | public boolean | getPlotLines() Returns true if lines are being plotted by the renderer. | 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 | getShapesFilled() Returns the override flag that controls whether or not shapes are filled
for ALL series. | 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. | public void | setBaseShapesFilled(boolean flag) Sets the base 'shapes filled' flag. | public void | setBaseShapesVisible(boolean flag) Sets the flag that controls whether or not a shape is plotted at each
data point. | public void | setDrawSeriesLineAsPath(boolean flag) Sets the flag that controls whether or not each series is drawn as a
single path. | public void | setGapThreshold(double t) Sets the gap threshold for discontinuous lines. | public void | setGapThresholdType(UnitType thresholdType) Sets the gap threshold type. | 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 | setPlotDiscontinuous(boolean flag) Sets the flag that controls whether or not the renderer shows
discontinuous lines, and sends a
RendererChangeEvent to all
registered listeners. | public void | setPlotImages(boolean flag) Sets the flag that controls whether or not an image is drawn at each
data point. | public void | setPlotLines(boolean flag) Sets the flag that controls whether or not a line is plotted between
each data point. | public void | setSeriesShapesFilled(int series, Boolean flag) Sets the 'shapes filled' flag for a series. | public void | setShapesFilled(boolean filled) Sets the 'shapes filled' for ALL series. | public void | setShapesFilled(Boolean filled) Sets the override flag that controls whether or not shapes are filled
for ALL series and sends a
RendererChangeEvent to all registered
listeners. |
DISCONTINUOUS | final public static int DISCONTINUOUS(Code) | | Constant for the type of rendering (discontinuous lines).
|
DISCONTINUOUS_LINES | final public static int DISCONTINUOUS_LINES(Code) | | Constant for the type of rendering (discontinuous lines).
|
IMAGES | final public static int IMAGES(Code) | | Constant for the type of rendering (images only).
|
LINES | final public static int LINES(Code) | | Constant for the type of rendering (lines only).
|
SHAPES | final public static int SHAPES(Code) | | Constant for the type of rendering (shapes only).
|
SHAPES_AND_LINES | final public static int SHAPES_AND_LINES(Code) | | Constant for the type of rendering (shapes and lines).
|
StandardXYItemRenderer | public StandardXYItemRenderer()(Code) | | Constructs a new renderer.
|
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. |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with another object.
Parameters: obj - the object (null permitted). A boolean. |
getImage | protected Image getImage(Plot plot, int series, int item, double x, double y)(Code) | | Returns the image used to draw a single data item.
Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: series - the series index. Parameters: item - the item index. Parameters: x - the x value of the item. Parameters: y - the y value of the item. The image. See Also: StandardXYItemRenderer.getPlotImages() |
getImageHotspot | protected Point getImageHotspot(Plot plot, int series, int item, double x, double y, Image image)(Code) | | Returns the hotspot of the image used to draw a single data item.
The hotspot is the point relative to the top left of the image
that should indicate the data item. The default is the center of the
image.
Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: image - the image (can be used to get size information about the image) Parameters: series - the series index Parameters: item - the item index Parameters: x - the x value of the item Parameters: y - the y value of the item The hotspot used to draw the data item. |
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. See Also: StandardXYItemRenderer.getSeriesShapesFilled(int) |
getLegendItem | public LegendItem getLegendItem(int datasetIndex, int series)(Code) | | Returns a legend item for a series.
Parameters: datasetIndex - the dataset index (zero-based). Parameters: series - the series index (zero-based). A legend item for the series. |
getPlotDiscontinuous | public boolean getPlotDiscontinuous()(Code) | | Returns a flag that controls whether or not the renderer shows
discontinuous lines.
true if lines should be discontinuous. |
getSeriesShapesFilled | public Boolean getSeriesShapesFilled(int series)(Code) | | Returns the flag used to control whether or not the shapes for a series
are filled.
Parameters: series - the series index (zero-based). A boolean. |
getShapesFilled | public Boolean getShapesFilled()(Code) | | Returns the override flag that controls whether or not shapes are filled
for ALL series.
The flag (possibly null ). since: 1.0.5 |
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. |
setPlotDiscontinuous | public void setPlotDiscontinuous(boolean flag)(Code) | | Sets the flag that controls whether or not the renderer shows
discontinuous lines, and sends a
RendererChangeEvent to all
registered listeners.
Parameters: flag - the new flag value. since: 1.0.5 |
setPlotLines | public void setPlotLines(boolean flag)(Code) | | Sets the flag that controls whether or not a line is plotted between
each data point.
Parameters: flag - the flag. See Also: StandardXYItemRenderer.getPlotLines() |
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)
|
|
|