| org.jfree.chart.renderer.category.AbstractCategoryItemRenderer org.jfree.chart.renderer.category.LineAndShapeRenderer
All known Subclasses: org.jfree.chart.renderer.category.StatisticalLineAndShapeRenderer, org.jfree.chart.renderer.category.DefaultCategoryItemRenderer, org.jfree.chart.renderer.category.LineRenderer3D,
Constructor Summary | |
public | LineAndShapeRenderer() Creates a renderer with both lines and shapes visible by default. | public | LineAndShapeRenderer(boolean lines, boolean shapes) Creates a new renderer with lines and/or shapes visible. |
Method Summary | |
public Object | clone() Returns an independent copy of the renderer. | public void | drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) Draw a single data item. | 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 | getItemLineVisible(int series, int item) Returns the flag used to control whether or not the line 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. | public boolean | getItemShapeVisible(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 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 Boolean | getLinesVisible() Returns a flag that controls whether or not lines are drawn for ALL
series. | public int | getPassCount() This renderer uses two passes to draw the data. | 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. | 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 | getShapesFilled() Returns the flag that controls whether or not shapes are filled for
ALL series. | 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 the flag that controls whether the outline paint is used for
shape outlines. | public void | setBaseLinesVisible(boolean flag) Sets the base 'lines visible' flag. | public void | setBaseShapesFilled(boolean flag) Sets the base 'shapes filled' flag. | public void | setBaseShapesVisible(boolean flag) Sets the base 'shapes visible' flag. | 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 | 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. | public void | setSeriesLinesVisible(int series, boolean visible) Sets the 'lines visible' flag for a series. | public void | setSeriesShapesFilled(int series, Boolean filled) Sets the 'shapes filled' flag for a series. | public void | setSeriesShapesFilled(int series, boolean filled) Sets the 'shapes filled' flag for a series. | 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. | public void | setShapesFilled(Boolean filled) Sets the 'shapes filled' for ALL series. | 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 use) Sets the flag that controls whether the outline paint is used for shape
outlines. |
LineAndShapeRenderer | public LineAndShapeRenderer()(Code) | | Creates a renderer with both lines and shapes visible by default.
|
LineAndShapeRenderer | public LineAndShapeRenderer(boolean lines, boolean shapes)(Code) | | Creates a new renderer with lines and/or shapes visible.
Parameters: lines - draw lines? Parameters: shapes - draw shapes? |
drawItem | public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)(Code) | | Draw a single data item.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area in which the data is drawn. Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). Parameters: pass - the pass index. |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getBaseLinesVisible | public boolean getBaseLinesVisible()(Code) | | Returns the base 'lines visible' attribute.
The base flag. |
getBaseShapesFilled | public boolean getBaseShapesFilled()(Code) | | Returns the base 'shape filled' attribute.
The base flag. |
getBaseShapesVisible | public boolean getBaseShapesVisible()(Code) | | Returns the base 'shape visible' attribute.
The base flag. |
getDrawOutlines | public boolean getDrawOutlines()(Code) | | Returns true if outlines should be drawn for shapes, and
false otherwise.
A boolean. |
getItemLineVisible | public boolean getItemLineVisible(int series, int item)(Code) | | Returns the flag used to control whether or not the line 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.
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 a series.
Parameters: datasetIndex - the dataset index (zero-based). Parameters: series - the series index (zero-based). The legend item. |
getLinesVisible | public Boolean getLinesVisible()(Code) | | Returns a flag that controls whether or not lines are drawn for ALL
series. If this flag is null , then the "per series"
settings will apply.
A flag (possibly null ). |
getPassCount | public int getPassCount()(Code) | | This renderer uses two passes to draw the data.
The pass count (2 for this renderer). |
getSeriesLinesVisible | public Boolean getSeriesLinesVisible(int series)(Code) | | Returns the flag used to control whether or not the lines for a series
are visible.
Parameters: series - the series index (zero-based). The flag (possibly null ). |
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. |
getSeriesShapesVisible | public Boolean getSeriesShapesVisible(int series)(Code) | | Returns the flag used to control whether or not the shapes for a series
are visible.
Parameters: series - the series index (zero-based). A boolean. |
getShapesFilled | public Boolean getShapesFilled()(Code) | | Returns the flag that controls whether or not shapes are filled for
ALL series.
A Boolean. |
getShapesVisible | public Boolean getShapesVisible()(Code) | | Returns the flag that controls whether the shapes are visible for the
items in ALL series.
The flag (possibly null ). |
getUseFillPaint | public boolean getUseFillPaint()(Code) | | Returns true if the renderer should use the fill paint
setting to fill shapes, and false if it should just
use the regular paint.
A boolean. |
getUseOutlinePaint | public boolean getUseOutlinePaint()(Code) | | Returns the flag that controls whether the outline paint is used for
shape outlines. If not, the regular series paint is used.
A boolean. |
setBaseLinesVisible | public void setBaseLinesVisible(boolean flag)(Code) | | Sets the base 'lines visible' flag.
Parameters: flag - the flag. |
setBaseShapesFilled | public void setBaseShapesFilled(boolean flag)(Code) | | Sets the base 'shapes filled' flag.
Parameters: flag - the flag. |
setBaseShapesVisible | public void setBaseShapesVisible(boolean flag)(Code) | | Sets the base 'shapes visible' flag.
Parameters: flag - the flag. |
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. |
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). |
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.
Parameters: visible - the flag. |
setSeriesLinesVisible | public void setSeriesLinesVisible(int series, Boolean flag)(Code) | | Sets the 'lines visible' flag for a series.
Parameters: series - the series index (zero-based). Parameters: flag - the flag (null permitted). |
setSeriesLinesVisible | public void setSeriesLinesVisible(int series, boolean visible)(Code) | | Sets the 'lines visible' flag for a series.
Parameters: series - the series index (zero-based). Parameters: visible - the flag. |
setSeriesShapesFilled | public void setSeriesShapesFilled(int series, Boolean filled)(Code) | | Sets the 'shapes filled' flag for a series.
Parameters: series - the series index (zero-based). Parameters: filled - the flag. |
setSeriesShapesFilled | public void setSeriesShapesFilled(int series, boolean filled)(Code) | | Sets the 'shapes filled' flag for a series.
Parameters: series - the series index (zero-based). Parameters: filled - the flag. |
setSeriesShapesVisible | public void setSeriesShapesVisible(int series, boolean visible)(Code) | | Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: visible - the flag. |
setSeriesShapesVisible | public void setSeriesShapesVisible(int series, Boolean flag)(Code) | | Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: flag - the flag. |
setShapesFilled | public void setShapesFilled(boolean filled)(Code) | | Sets the 'shapes filled' for ALL series.
Parameters: filled - the flag. |
setShapesFilled | public void setShapesFilled(Boolean filled)(Code) | | Sets the 'shapes filled' for ALL series.
Parameters: filled - the flag (null permitted). |
setShapesVisible | public void setShapesVisible(Boolean visible)(Code) | | Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent to all registered listeners.
Parameters: visible - the flag (null permitted). |
setShapesVisible | public void setShapesVisible(boolean visible)(Code) | | Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent to all registered listeners.
Parameters: visible - the flag. |
setUseFillPaint | public void setUseFillPaint(boolean flag)(Code) | | Sets the flag that controls whether the fill paint is used to fill
shapes, and sends a
RendererChangeEvent to all
registered listeners.
Parameters: flag - the flag. |
setUseOutlinePaint | public void setUseOutlinePaint(boolean use)(Code) | | Sets the flag that controls whether the outline paint is used for shape
outlines.
Parameters: use - the flag. |
Methods inherited from org.jfree.chart.renderer.category.AbstractCategoryItemRenderer | protected void addItemEntity(EntityCollection entities, CategoryDataset dataset, int row, int column, Shape hotspot)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Point2D calculateRangeMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected CategoryItemRendererState createState(PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)(Java Doc) public void drawDomainGridline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, CategoryPlot plot, CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, CategoryDataset dataset, int row, int column, double x, double y, boolean negative)(Code)(Java Doc) public void drawOutline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)(Java Doc) public void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Range findRangeBounds(CategoryDataset dataset)(Code)(Java Doc) public CategoryItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public CategoryURLGenerator getBaseItemURLGenerator()(Code)(Java Doc) public CategoryToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) protected CategoryAxis getDomainAxis(CategoryPlot plot, int index)(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public CategoryItemLabelGenerator getItemLabelGenerator(int row, int column)(Code)(Java Doc) public CategoryURLGenerator getItemURLGenerator(int row, int column)(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public CategoryPlot getPlot()(Code)(Java Doc) protected ValueAxis getRangeAxis(CategoryPlot plot, int index)(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public CategoryURLGenerator getSeriesItemURLGenerator(int series)(Code)(Java Doc) public CategoryToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public CategoryToolTipGenerator getToolTipGenerator(int row, int column)(Code)(Java Doc) public CategoryToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setBaseItemURLGenerator(CategoryURLGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(CategoryToolTipGenerator generator)(Code)(Java Doc) public void setItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setItemURLGenerator(CategoryURLGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(CategoryPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesItemURLGenerator(int series, CategoryURLGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, CategoryToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(CategoryToolTipGenerator generator)(Code)(Java Doc)
|
|
|