java.lang.Object | |||
↳ | org.jfree.chart.renderer.AbstractRenderer | ||
↳ | org.jfree.chart.renderer.category.AbstractCategoryItemRenderer | ||
↳ | org.jfree.chart.renderer.category.LineAndShapeRenderer |
![]() |
A renderer that draws shapes for each data item, and lines between data
items (for use with the CategoryPlot
class).
The example shown here is generated by the LineChartDemo1.java
program included in the JFreeChart Demo Collection:
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a renderer with both lines and shapes visible by default.
| |||||||||||
Creates a new renderer with lines and/or shapes visible.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an independent copy of the renderer.
| |||||||||||
Draw a single data item.
| |||||||||||
Tests this renderer for equality with an arbitrary object.
| |||||||||||
Returns the base 'lines visible' attribute.
| |||||||||||
Returns the base 'shape filled' attribute.
| |||||||||||
Returns the base 'shape visible' attribute.
| |||||||||||
Returns
true if outlines should be drawn for shapes, and
false otherwise. | |||||||||||
Returns the flag used to control whether or not the line for an item is
visible.
| |||||||||||
Returns the item margin, which is the gap between items within a
category (expressed as a percentage of the overall category width).
| |||||||||||
Returns the flag used to control whether or not the shape for an item
is filled.
| |||||||||||
Returns the flag used to control whether or not the shape for an item is
visible.
| |||||||||||
Returns a legend item for a series.
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This renderer uses two passes to draw the data.
| |||||||||||
Returns the flag used to control whether or not the lines for a series
are visible.
| |||||||||||
Returns the flag used to control whether or not the shapes for a series
are filled.
| |||||||||||
Returns the flag used to control whether or not the shapes for a series
are visible.
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
Returns
true if the renderer should use the fill paint
setting to fill shapes, and false if it should just
use the regular paint. | |||||||||||
Returns the flag that controls whether the outline paint is used for
shape outlines.
| |||||||||||
Returns the flag that controls whether or not the x-position for each
data item is offset within the category according to the series.
| |||||||||||
Sets the base 'lines visible' flag and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the base 'shapes filled' flag and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the base 'shapes visible' flag and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the flag that controls whether outlines are drawn for
shapes, and sends a
RendererChangeEvent to all registered
listeners. | |||||||||||
Sets the item margin, which is the gap between items within a category
(expressed as a percentage of the overall category width), and sends
a
RendererChangeEvent to all registered listeners. | |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent to all registered listeners. | |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
| |||||||||||
Sets the flag that controls whether the fill paint is used to fill
shapes, and sends a
RendererChangeEvent to all
registered listeners. | |||||||||||
Sets the flag that controls whether the outline paint is used for shape
outlines, and sends a
RendererChangeEvent to all registered
listeners. | |||||||||||
Sets the flag that controls whether or not the x-position for each
data item is offset within its category according to the series, and
sends a
RendererChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a renderer with both lines and shapes visible by default.
Creates a new renderer with lines and/or shapes visible.
lines | draw lines? |
---|---|
shapes | draw shapes? |
Returns an independent copy of the renderer.
CloneNotSupportedException | should not happen. |
---|
Draw a single data item.
g2 | the graphics device. |
---|---|
state | the renderer state. |
dataArea | the area in which the data is drawn. |
plot | the plot. |
domainAxis | the domain axis. |
rangeAxis | the range axis. |
dataset | the dataset. |
row | the row index (zero-based). |
column | the column index (zero-based). |
pass | the pass index. |
Tests this renderer for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the base 'shape filled' attribute.
Returns the base 'shape visible' attribute.
Returns true
if outlines should be drawn for shapes, and
false
otherwise.
Returns the flag used to control whether or not the line for an item is visible.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the item margin, which is the gap between items within a
category (expressed as a percentage of the overall category width).
This can be used to match the offset alignment with the bars drawn by
a BarRenderer
).
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.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the flag used to control whether or not the shape for an item is visible.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns a legend item for a series.
datasetIndex | the dataset index (zero-based). |
---|---|
series | the series index (zero-based). |
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
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.
null
).This renderer uses two passes to draw the data.
2
for this renderer).
Returns the flag used to control whether or not the lines for a series are visible.
series | the series index (zero-based). |
---|
null
).Returns the flag used to control whether or not the shapes for a series are filled.
series | the series index (zero-based). |
---|
Returns the flag used to control whether or not the shapes for a series are visible.
series | the series index (zero-based). |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Returns the flag that controls whether or not shapes are filled for ALL series.
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Returns the flag that controls whether the shapes are visible for the items in ALL series.
null
).Returns true
if the renderer should use the fill paint
setting to fill shapes, and false
if it should just
use the regular paint.
Returns the flag that controls whether the outline paint is used for shape outlines. If not, the regular series paint is used.
Returns the flag that controls whether or not the x-position for each data item is offset within the category according to the series.
Sets the base 'lines visible' flag and sends a
RendererChangeEvent
to all registered listeners.
flag | the flag. |
---|
Sets the base 'shapes filled' flag and sends a
RendererChangeEvent
to all registered listeners.
flag | the flag. |
---|
Sets the base 'shapes visible' flag and sends a
RendererChangeEvent
to all registered listeners.
flag | the flag. |
---|
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.
flag | the flag. |
---|
Sets the item margin, which is the gap between items within a category
(expressed as a percentage of the overall category width), and sends
a RendererChangeEvent
to all registered listeners.
margin | the margin (0.0 <= margin < 1.0). |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
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.
visible | the flag. |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
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.
visible | the flag (null permitted). |
---|
Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
visible | the flag. |
Sets the 'lines visible' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
flag | the flag (null permitted). |
Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
filled | the flag. |
Sets the 'shapes filled' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
filled | the flag. |
Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
flag | the flag. |
Sets the 'shapes visible' flag for a series and sends a
RendererChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
visible | the flag. |
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent
to all registered listeners.
filled | the flag. |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Sets the 'shapes filled' for ALL series and sends a
RendererChangeEvent
to all registered listeners.
filled | the flag (null permitted). |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent
to all registered listeners.
visible | the flag. |
---|
This method is deprecated.
As of 1.0.7 (the override facility is unnecessary, just
use the per-series and base (default) settings).
Sets the 'shapes visible' for ALL series and sends a
RendererChangeEvent
to all registered listeners.
visible | the flag (null permitted). |
---|
Sets the flag that controls whether the fill paint is used to fill
shapes, and sends a RendererChangeEvent
to all
registered listeners.
flag | the flag. |
---|
Sets the flag that controls whether the outline paint is used for shape
outlines, and sends a RendererChangeEvent
to all registered
listeners.
use | the flag. |
---|
Sets the flag that controls whether or not the x-position for each
data item is offset within its category according to the series, and
sends a RendererChangeEvent
to all registered listeners.
offset | the offset. |
---|