| java.lang.Object org.jfree.chart.renderer.AbstractRenderer
All known Subclasses: org.jfree.chart.renderer.DefaultPolarItemRenderer, org.jfree.chart.renderer.xy.AbstractXYItemRenderer, org.jfree.chart.renderer.category.AbstractCategoryItemRenderer, org.jfree.chart.renderer.WaferMapRenderer,
AbstractRenderer | abstract public class AbstractRenderer implements Cloneable,Serializable(Code) | | Base class providing common services for renderers. Most methods that update
attributes of the renderer will fire a
RendererChangeEvent , which
normally means the plot that owns the renderer will receive notification that
the renderer has been changed (the plot will, in turn, notify the chart).
|
Method Summary | |
public void | addChangeListener(RendererChangeListener listener) Registers an object to receive notification of changes to the renderer. | protected Point2D | calculateLabelAnchorPoint(ItemLabelAnchor anchor, double x, double y, PlotOrientation orientation) Calculates the item label anchor point.
Parameters: anchor - the anchor. Parameters: x - the x coordinate. Parameters: y - the y coordinate. Parameters: orientation - the plot orientation. | protected Object | clone() Returns an independent copy of the renderer. | public boolean | equals(Object obj) Tests this renderer for equality with another object.
Parameters: obj - the object (null permitted). | protected void | fireChangeEvent() Sends a
RendererChangeEvent to all registered listeners. | public boolean | getAutoPopulateSeriesFillPaint() Returns the flag that controls whether or not the series fill paint list
is automatically populated when
AbstractRenderer.lookupSeriesFillPaint(int) is
called. | public boolean | getAutoPopulateSeriesOutlinePaint() Returns the flag that controls whether or not the series outline paint
list is automatically populated when
AbstractRenderer.lookupSeriesOutlinePaint(int) is called. | public boolean | getAutoPopulateSeriesOutlineStroke() Returns the flag that controls whether or not the series outline stroke
list is automatically populated when
AbstractRenderer.lookupSeriesOutlineStroke(int) is called. | public boolean | getAutoPopulateSeriesPaint() Returns the flag that controls whether or not the series paint list is
automatically populated when
AbstractRenderer.lookupSeriesPaint(int) is called. | public boolean | getAutoPopulateSeriesShape() Returns the flag that controls whether or not the series shape list is
automatically populated when
AbstractRenderer.lookupSeriesShape(int) is called. | public boolean | getAutoPopulateSeriesStroke() Returns the flag that controls whether or not the series stroke list is
automatically populated when
AbstractRenderer.lookupSeriesStroke(int) is called. | public boolean | getBaseCreateEntities() Returns the base visibility for all series. | public Paint | getBaseFillPaint() Returns the base fill paint. | public Font | getBaseItemLabelFont() Returns the base item label font (this is used when no other font
setting is available). | public Paint | getBaseItemLabelPaint() Returns the base item label paint. | public Boolean | getBaseItemLabelsVisible() Returns the base setting for item label visibility. | public ItemLabelPosition | getBaseNegativeItemLabelPosition() Returns the base item label position for negative values. | public Paint | getBaseOutlinePaint() Returns the base outline paint. | public Stroke | getBaseOutlineStroke() Returns the base outline stroke. | public Paint | getBasePaint() Returns the base paint. | public ItemLabelPosition | getBasePositiveItemLabelPosition() Returns the base positive item label position. | public boolean | getBaseSeriesVisible() Returns the base visibility for all series. | public boolean | getBaseSeriesVisibleInLegend() Returns the base visibility in the legend for all series. | public Shape | getBaseShape() Returns the base shape. | public Stroke | getBaseStroke() Returns the base stroke. | public Boolean | getCreateEntities() Returns the flag that controls whether or not chart entities are created
for the items in ALL series. | abstract public DrawingSupplier | getDrawingSupplier() Returns the drawing supplier from the plot. | public boolean | getItemCreateEntity(int series, int item) Returns a boolean that indicates whether or not the specified item
should have a chart entity created for it.
Parameters: series - the series index. Parameters: item - the item index. | public Paint | getItemFillPaint(int row, int column) Returns the paint used to fill data items as they are drawn. | public double | getItemLabelAnchorOffset() Returns the item label anchor offset. | public Font | getItemLabelFont(int row, int column) Returns the font for an item label.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public Font | getItemLabelFont() Returns the font used for all item labels. | public Paint | getItemLabelPaint(int row, int column) Returns the paint used to draw an item label.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). | public Paint | getItemLabelPaint() Returns the paint used for all item labels. | public Paint | getItemOutlinePaint(int row, int column) Returns the paint used to outline data items as they are drawn.
The default implementation passes control to the
AbstractRenderer.lookupSeriesOutlinePaint method. | public Stroke | getItemOutlineStroke(int row, int column) Returns the stroke used to outline data items. | public Paint | getItemPaint(int row, int column) Returns the paint used to fill data items as they are drawn.
The default implementation passes control to the
getSeriesPaint method. | public Shape | getItemShape(int row, int column) Returns a shape used to represent a data item.
The default implementation passes control to the getSeriesShape method.
You can override this method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public Stroke | getItemStroke(int row, int column) Returns the stroke used to draw data items.
The default implementation passes control to the getSeriesStroke method.
You can override this method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public boolean | getItemVisible(int series, int item) Returns a boolean that indicates whether or not the specified item
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. Parameters: item - the item index. | public ItemLabelPosition | getNegativeItemLabelPosition(int row, int column) Returns the item label position for negative values. | public ItemLabelPosition | getNegativeItemLabelPosition() Returns the item label position for negative values in ALL series. | public ItemLabelPosition | getPositiveItemLabelPosition(int row, int column) Returns the item label position for positive values.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public ItemLabelPosition | getPositiveItemLabelPosition() Returns the item label position for positive values in ALL series. | public Boolean | getSeriesCreateEntities(int series) Returns the flag that controls whether entities are created for a
series.
Parameters: series - the series index (zero-based). | public Paint | getSeriesFillPaint(int series) Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series (zero-based index). | public Font | getSeriesItemLabelFont(int series) Returns the font for all the item labels in a series.
Parameters: series - the series index (zero-based). | public Paint | getSeriesItemLabelPaint(int series) Returns the paint used to draw the item labels for a series.
Parameters: series - the series index (zero based). | public ItemLabelPosition | getSeriesNegativeItemLabelPosition(int series) Returns the item label position for all negative values in a series.
Parameters: series - the series index (zero-based). | public Paint | getSeriesOutlinePaint(int series) Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). | public Stroke | getSeriesOutlineStroke(int series) Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). | public Paint | getSeriesPaint(int series) Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series index (zero-based). | public ItemLabelPosition | getSeriesPositiveItemLabelPosition(int series) Returns the item label position for all positive values in a series.
Parameters: series - the series index (zero-based). | public Shape | getSeriesShape(int series) Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). | public Stroke | getSeriesStroke(int series) Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). | public Boolean | getSeriesVisible() Returns the flag that controls the visibility of ALL series. | public Boolean | getSeriesVisible(int series) Returns the flag that controls whether a series is visible.
Parameters: series - the series index (zero-based). | public Boolean | getSeriesVisibleInLegend() Returns the flag that controls the visibility of ALL series in the
legend. | public Boolean | getSeriesVisibleInLegend(int series) Returns the flag that controls whether a series is visible in the
legend. | public boolean | hasListener(EventListener listener) Returns true if the specified object is registered with
the dataset as a listener. | public int | hashCode() Returns a hashcode for the renderer. | public boolean | isItemLabelVisible(int row, int column) Returns true if an item label is visible, and
false otherwise.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public boolean | isSeriesItemLabelsVisible(int series) Returns true if the item labels for a series are visible,
and false otherwise.
Parameters: series - the series index (zero-based). | public boolean | isSeriesVisible(int series) Returns a boolean that indicates whether or not the specified series
should be drawn.
Parameters: series - the series index. | public boolean | isSeriesVisibleInLegend(int series) Returns true if the series should be shown in the legend,
and false otherwise.
Parameters: series - the series index. | public Paint | lookupSeriesFillPaint(int series) Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series (zero-based index). | public Paint | lookupSeriesOutlinePaint(int series) Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). | public Stroke | lookupSeriesOutlineStroke(int series) Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). | public Paint | lookupSeriesPaint(int series) Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series index (zero-based). | public Shape | lookupSeriesShape(int series) Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). | public Stroke | lookupSeriesStroke(int series) Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). | public void | notifyListeners(RendererChangeEvent event) Notifies all registered listeners that the renderer has been modified. | public void | removeChangeListener(RendererChangeListener listener) Deregisters an object so that it no longer receives
notification of changes to the renderer. | public void | setAutoPopulateSeriesFillPaint(boolean auto) Sets the flag that controls whether or not the series fill paint list is
automatically populated when
AbstractRenderer.lookupSeriesFillPaint(int) is called. | public void | setAutoPopulateSeriesOutlinePaint(boolean auto) Sets the flag that controls whether or not the series outline paint list
is automatically populated when
AbstractRenderer.lookupSeriesOutlinePaint(int)
is called. | public void | setAutoPopulateSeriesOutlineStroke(boolean auto) Sets the flag that controls whether or not the series outline stroke list
is automatically populated when
AbstractRenderer.lookupSeriesOutlineStroke(int)
is called. | public void | setAutoPopulateSeriesPaint(boolean auto) Sets the flag that controls whether or not the series paint list is
automatically populated when
AbstractRenderer.lookupSeriesPaint(int) is called. | public void | setAutoPopulateSeriesShape(boolean auto) Sets the flag that controls whether or not the series shape list is
automatically populated when
AbstractRenderer.lookupSeriesShape(int) is called. | public void | setAutoPopulateSeriesStroke(boolean auto) Sets the flag that controls whether or not the series stroke list is
automatically populated when
AbstractRenderer.lookupSeriesStroke(int) is called. | public void | setBaseCreateEntities(boolean create) Sets the base flag that controls whether entities are created
for a series, and sends a
RendererChangeEvent
to all registered listeners. | public void | setBaseCreateEntities(boolean create, boolean notify) Sets the base flag that controls whether entities are created and,
if requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setBaseFillPaint(Paint paint) Sets the base fill paint and sends a
RendererChangeEvent to
all registered listeners. | public void | setBaseFillPaint(Paint paint, boolean notify) Sets the base fill paint and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseItemLabelFont(Font font) Sets the base item label font and sends a
RendererChangeEvent to
all registered listeners. | public void | setBaseItemLabelFont(Font font, boolean notify) Sets the base item label font and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseItemLabelPaint(Paint paint) Sets the base item label paint and sends a
RendererChangeEvent
to all registered listeners. | public void | setBaseItemLabelPaint(Paint paint, boolean notify) Sets the base item label paint and, if requested, sends a
RendererChangeEvent to all registered listeners.. | public void | setBaseItemLabelsVisible(boolean visible) Sets the base flag that controls whether or not item labels are visible. | public void | setBaseItemLabelsVisible(Boolean visible) Sets the base setting for item label visibility. | public void | setBaseItemLabelsVisible(Boolean visible, boolean notify) Sets the base visibility for item labels and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseNegativeItemLabelPosition(ItemLabelPosition position) Sets the base item label position for negative values and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseNegativeItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the base negative item label position and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseOutlinePaint(Paint paint) Sets the base outline paint and sends a
RendererChangeEvent to
all registered listeners. | public void | setBaseOutlinePaint(Paint paint, boolean notify) Sets the base outline paint and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseOutlineStroke(Stroke stroke) Sets the base outline stroke and sends a
RendererChangeEvent to
all registered listeners. | public void | setBaseOutlineStroke(Stroke stroke, boolean notify) Sets the base outline stroke and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBasePaint(Paint paint) Sets the base paint and sends a
RendererChangeEvent to all
registered listeners. | public void | setBasePaint(Paint paint, boolean notify) Sets the base paint and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBasePositiveItemLabelPosition(ItemLabelPosition position) Sets the base positive item label position. | public void | setBasePositiveItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the base positive item label position and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisible(boolean visible) Sets the base visibility and sends a
RendererChangeEvent
to all registered listeners. | public void | setBaseSeriesVisible(boolean visible, boolean notify) Sets the base visibility and, if requested, sends
a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisibleInLegend(boolean visible) Sets the base visibility in the legend and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisibleInLegend(boolean visible, boolean notify) Sets the base visibility in the legend and, if requested, sends
a
RendererChangeEvent to all registered listeners. | public void | setBaseShape(Shape shape) Sets the base shape and sends a
RendererChangeEvent to all
registered listeners. | public void | setBaseShape(Shape shape, boolean notify) Sets the base shape and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: shape - the shape (null not permitted). | public void | setBaseStroke(Stroke stroke) Sets the base stroke. | public void | setBaseStroke(Stroke stroke, boolean notify) Sets the base stroke and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setCreateEntities(Boolean create) Sets the flag that controls whether or not chart entities are created
for the items in ALL series, and sends a
RendererChangeEvent to
all registered listeners. | public void | setCreateEntities(Boolean create, boolean notify) Sets the flag that controls whether or not chart entities are created
for the items in ALL series, and sends a
RendererChangeEvent to
all registered listeners. | public void | setFillPaint(Paint paint) Sets the fill paint for ALL series (optional). | public void | setFillPaint(Paint paint, boolean notify) Sets the fill paint for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelAnchorOffset(double offset) Sets the item label anchor offset. | public void | setItemLabelFont(Font font) Sets the item label font for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelFont(Font font, boolean notify) Sets the item label font for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelPaint(Paint paint) Sets the item label paint for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelPaint(Paint paint, boolean notify) Sets the item label paint for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelsVisible(boolean visible) Sets the visibility of the item labels for ALL series. | public void | setItemLabelsVisible(Boolean visible) Sets the visibility of the item labels for ALL series (optional). | public void | setItemLabelsVisible(Boolean visible, boolean notify) Sets the visibility of item labels for ALL series and, if requested,
sends a
RendererChangeEvent to all registered listeners. | public void | setNegativeItemLabelPosition(ItemLabelPosition position) Sets the item label position for negative values in ALL series, and
sends a
RendererChangeEvent to all registered listeners. | public void | setNegativeItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the item label position for negative values in ALL series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setOutlinePaint(Paint paint) Sets the outline paint for ALL series (optional). | public void | setOutlinePaint(Paint paint, boolean notify) Sets the outline paint for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setOutlineStroke(Stroke stroke) Sets the outline stroke for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setOutlineStroke(Stroke stroke, boolean notify) Sets the outline stroke for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setPaint(Paint paint) Sets the paint to be used for ALL series, and sends a
RendererChangeEvent to all registered listeners. | public void | setPaint(Paint paint, boolean notify) Sets the paint to be used for all series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setPositiveItemLabelPosition(ItemLabelPosition position) Sets the item label position for positive values in ALL series, and
sends a
RendererChangeEvent to all registered listeners. | public void | setPositiveItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the positive item label position for ALL series and (if requested)
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesCreateEntities(int series, Boolean create) Sets the flag that controls whether entities are created for a series,
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesCreateEntities(int series, Boolean create, boolean notify) Sets the flag that controls whether entities are created for a series
and, if requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesFillPaint(int series, Paint paint) Sets the paint used for a series fill and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesFillPaint(int series, Paint paint, boolean notify) Sets the paint used to fill a series and, if requested,
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelFont(int series, Font font) Sets the item label font for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelFont(int series, Font font, boolean notify) Sets the item label font for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelPaint(int series, Paint paint) Sets the item label paint for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelPaint(int series, Paint paint, boolean notify) Sets the item label paint for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelsVisible(int series, boolean visible) Sets a flag that controls the visibility of the item labels for a series. | public void | setSeriesItemLabelsVisible(int series, Boolean visible) Sets the visibility of the item labels for a series. | public void | setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify) Sets the visibility of item labels for a series and, if requested, sends
a
RendererChangeEvent to all registered listeners. | public void | setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position) Sets the item label position for negative values in a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position, boolean notify) Sets the item label position for negative values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesOutlinePaint(int series, Paint paint) Sets the paint used for a series outline and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesOutlinePaint(int series, Paint paint, boolean notify) Sets the paint used to draw the outline for a series and, if requested,
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesOutlineStroke(int series, Stroke stroke) Sets the outline stroke used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesOutlineStroke(int series, Stroke stroke, boolean notify) Sets the outline stroke for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPaint(int series, Paint paint) Sets the paint used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPaint(int series, Paint paint, boolean notify) Sets the paint used for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position) Sets the item label position for all positive values in a series and
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position, boolean notify) Sets the item label position for all positive values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesShape(int series, Shape shape) Sets the shape used for a series and sends a
RendererChangeEvent
to all registered listeners. | public void | setSeriesShape(int series, Shape shape, boolean notify) Sets the shape for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesStroke(int series, Stroke stroke) Sets the stroke used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesStroke(int series, Stroke stroke, boolean notify) Sets the stroke for a series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(Boolean visible) Sets the flag that controls the visibility of ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(Boolean visible, boolean notify) Sets the flag that controls the visibility of ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(int series, Boolean visible) Sets the flag that controls whether a series is visible and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(int series, Boolean visible, boolean notify) Sets the flag that controls whether a series is visible and, if
requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesVisibleInLegend(Boolean visible) Sets the flag that controls the visibility of ALL series in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(Boolean visible, boolean notify) Sets the flag that controls the visibility of ALL series in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(int series, Boolean visible) Sets the flag that controls whether a series is visible in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(int series, Boolean visible, boolean notify) Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setShape(Shape shape) Sets the shape for ALL series (optional) and sends a
RendererChangeEvent to all registered listeners. | public void | setShape(Shape shape, boolean notify) Sets the shape for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setStroke(Stroke stroke) Sets the stroke for ALL series and sends a
RendererChangeEvent
to all registered listeners. | public void | setStroke(Stroke stroke, boolean notify) Sets the stroke for ALL series and, if requested, sends a
RendererChangeEvent to all registered listeners. |
DEFAULT_OUTLINE_PAINT | final public static Paint DEFAULT_OUTLINE_PAINT(Code) | | The default outline paint.
|
DEFAULT_OUTLINE_STROKE | final public static Stroke DEFAULT_OUTLINE_STROKE(Code) | | The default outline stroke.
|
DEFAULT_PAINT | final public static Paint DEFAULT_PAINT(Code) | | The default paint.
|
DEFAULT_SHAPE | final public static Shape DEFAULT_SHAPE(Code) | | The default shape.
|
DEFAULT_STROKE | final public static Stroke DEFAULT_STROKE(Code) | | The default stroke.
|
DEFAULT_VALUE_LABEL_FONT | final public static Font DEFAULT_VALUE_LABEL_FONT(Code) | | The default value label font.
|
DEFAULT_VALUE_LABEL_PAINT | final public static Paint DEFAULT_VALUE_LABEL_PAINT(Code) | | The default value label paint.
|
ZERO | final public static Double ZERO(Code) | | Zero represented as a Double .
|
AbstractRenderer | public AbstractRenderer()(Code) | | Default constructor.
|
addChangeListener | public void addChangeListener(RendererChangeListener listener)(Code) | | Registers an object to receive notification of changes to the renderer.
Parameters: listener - the listener (null not permitted). |
calculateLabelAnchorPoint | protected Point2D calculateLabelAnchorPoint(ItemLabelAnchor anchor, double x, double y, PlotOrientation orientation)(Code) | | Calculates the item label anchor point.
Parameters: anchor - the anchor. Parameters: x - the x coordinate. Parameters: y - the y coordinate. Parameters: orientation - the plot orientation. The anchor point (never null ). |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with another object.
Parameters: obj - the object (null permitted). true or false . |
getBaseCreateEntities | public boolean getBaseCreateEntities()(Code) | | Returns the base visibility for all series.
The base visibility. |
getBaseItemLabelFont | public Font getBaseItemLabelFont()(Code) | | Returns the base item label font (this is used when no other font
setting is available).
The font (never null). |
getBaseItemLabelPaint | public Paint getBaseItemLabelPaint()(Code) | | Returns the base item label paint.
The paint (never null). |
getBaseItemLabelsVisible | public Boolean getBaseItemLabelsVisible()(Code) | | Returns the base setting for item label visibility. A null
result should be interpreted as equivalent to Boolean.FALSE .
A flag (possibly null ). |
getBaseOutlinePaint | public Paint getBaseOutlinePaint()(Code) | | Returns the base outline paint.
The paint (never null ). |
getBaseOutlineStroke | public Stroke getBaseOutlineStroke()(Code) | | Returns the base outline stroke.
The stroke (never null ). |
getBaseShape | public Shape getBaseShape()(Code) | | Returns the base shape.
The shape (never null ). |
getBaseStroke | public Stroke getBaseStroke()(Code) | | Returns the base stroke.
The base stroke (never null ). |
getDrawingSupplier | abstract public DrawingSupplier getDrawingSupplier()(Code) | | Returns the drawing supplier from the plot.
The drawing supplier. |
getItemCreateEntity | public boolean getItemCreateEntity(int series, int item)(Code) | | Returns a boolean that indicates whether or not the specified item
should have a chart entity created for it.
Parameters: series - the series index. Parameters: item - the item index. A boolean. |
getItemFillPaint | public Paint getItemFillPaint(int row, int column)(Code) | | Returns the paint used to fill data items as they are drawn. The
default implementation passes control to the
AbstractRenderer.lookupSeriesFillPaint(int) method - you can override this
method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The paint (never null ). |
getItemLabelFont | public Font getItemLabelFont(int row, int column)(Code) | | Returns the font for an item label.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). The font (never null ). |
getItemLabelPaint | public Paint getItemLabelPaint(int row, int column)(Code) | | Returns the paint used to draw an item label.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). The paint (never null ). |
getItemOutlinePaint | public Paint getItemOutlinePaint(int row, int column)(Code) | | Returns the paint used to outline data items as they are drawn.
The default implementation passes control to the
AbstractRenderer.lookupSeriesOutlinePaint method. You can override this method
if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The paint (never null ). |
getItemOutlineStroke | public Stroke getItemOutlineStroke(int row, int column)(Code) | | Returns the stroke used to outline data items. The default
implementation passes control to the
AbstractRenderer.lookupSeriesOutlineStroke(int) method. You can override this
method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The stroke (never null ). |
getItemPaint | public Paint getItemPaint(int row, int column)(Code) | | Returns the paint used to fill data items as they are drawn.
The default implementation passes control to the
getSeriesPaint method. You can override this method if you
require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The paint (never null ). |
getItemShape | public Shape getItemShape(int row, int column)(Code) | | Returns a shape used to represent a data item.
The default implementation passes control to the getSeriesShape method.
You can override this method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The shape (never null ). |
getItemStroke | public Stroke getItemStroke(int row, int column)(Code) | | Returns the stroke used to draw data items.
The default implementation passes control to the getSeriesStroke method.
You can override this method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The stroke (never null ). |
getItemVisible | public boolean getItemVisible(int series, int item)(Code) | | Returns a boolean that indicates whether or not the specified item
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. Parameters: item - the item index. A boolean. |
getNegativeItemLabelPosition | public ItemLabelPosition getNegativeItemLabelPosition(int row, int column)(Code) | | Returns the item label position for negative values. This method can be
overridden to provide customisation of the item label position for
individual data items.
Parameters: row - the row index (zero-based). Parameters: column - the column (zero-based). The item label position (never null ). See Also: AbstractRenderer.getPositiveItemLabelPosition(int,int) |
getSeriesCreateEntities | public Boolean getSeriesCreateEntities(int series)(Code) | | Returns the flag that controls whether entities are created for a
series.
Parameters: series - the series index (zero-based). The flag (possibly null ). |
getSeriesFillPaint | public Paint getSeriesFillPaint(int series)(Code) | | Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series (zero-based index). The paint (never null ). |
getSeriesItemLabelFont | public Font getSeriesItemLabelFont(int series)(Code) | | Returns the font for all the item labels in a series.
Parameters: series - the series index (zero-based). The font (possibly null ). |
getSeriesItemLabelPaint | public Paint getSeriesItemLabelPaint(int series)(Code) | | Returns the paint used to draw the item labels for a series.
Parameters: series - the series index (zero based). The paint (possibly null). |
getSeriesOutlinePaint | public Paint getSeriesOutlinePaint(int series)(Code) | | Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). The paint (possibly null ). |
getSeriesOutlineStroke | public Stroke getSeriesOutlineStroke(int series)(Code) | | Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). The stroke (possibly null ). |
getSeriesShape | public Shape getSeriesShape(int series)(Code) | | Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). The shape (possibly null ). |
getSeriesStroke | public Stroke getSeriesStroke(int series)(Code) | | Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). The stroke (possibly null ). |
hasListener | public boolean hasListener(EventListener listener)(Code) | | Returns true if the specified object is registered with
the dataset as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.
Parameters: listener - the listener. A boolean. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for the renderer.
The hashcode. |
isItemLabelVisible | public boolean isItemLabelVisible(int row, int column)(Code) | | Returns true if an item label is visible, and
false otherwise.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). A boolean. |
isSeriesItemLabelsVisible | public boolean isSeriesItemLabelsVisible(int series)(Code) | | Returns true if the item labels for a series are visible,
and false otherwise.
Parameters: series - the series index (zero-based). A boolean. |
isSeriesVisible | public boolean isSeriesVisible(int series)(Code) | | Returns a boolean that indicates whether or not the specified series
should be drawn.
Parameters: series - the series index. A boolean. |
isSeriesVisibleInLegend | public boolean isSeriesVisibleInLegend(int series)(Code) | | Returns true if the series should be shown in the legend,
and false otherwise.
Parameters: series - the series index. A boolean. |
lookupSeriesFillPaint | public Paint lookupSeriesFillPaint(int series)(Code) | | Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series (zero-based index). The paint (never null ). since: 1.0.6 |
lookupSeriesOutlinePaint | public Paint lookupSeriesOutlinePaint(int series)(Code) | | Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). The paint (never null ). since: 1.0.6 |
lookupSeriesOutlineStroke | public Stroke lookupSeriesOutlineStroke(int series)(Code) | | Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). The stroke (never null ). since: 1.0.6 |
lookupSeriesPaint | public Paint lookupSeriesPaint(int series)(Code) | | Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series index (zero-based). The paint (never null ). since: 1.0.6 |
lookupSeriesShape | public Shape lookupSeriesShape(int series)(Code) | | Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). The shape (never null ). since: 1.0.6 |
lookupSeriesStroke | public Stroke lookupSeriesStroke(int series)(Code) | | Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). The stroke (never null ). since: 1.0.6 |
notifyListeners | public void notifyListeners(RendererChangeEvent event)(Code) | | Notifies all registered listeners that the renderer has been modified.
Parameters: event - information about the change event. |
removeChangeListener | public void removeChangeListener(RendererChangeListener listener)(Code) | | Deregisters an object so that it no longer receives
notification of changes to the renderer.
Parameters: listener - the object (null not permitted). |
setBaseCreateEntities | public void setBaseCreateEntities(boolean create)(Code) | | Sets the base flag that controls whether entities are created
for a series, and sends a
RendererChangeEvent
to all registered listeners.
Parameters: create - the flag. |
setBaseCreateEntities | public void setBaseCreateEntities(boolean create, boolean notify)(Code) | | Sets the base flag that controls whether entities are created and,
if requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: create - the visibility. Parameters: notify - notify listeners? |
setBaseItemLabelFont | public void setBaseItemLabelFont(Font font)(Code) | | Sets the base item label font and sends a
RendererChangeEvent to
all registered listeners.
Parameters: font - the font (null not permitted). |
setBaseItemLabelFont | public void setBaseItemLabelFont(Font font, boolean notify)(Code) | | Sets the base item label font and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: font - the font (null not permitted). Parameters: notify - a flag that controls whether or not listeners are notified. |
setBaseItemLabelPaint | public void setBaseItemLabelPaint(Paint paint)(Code) | | Sets the base item label paint and sends a
RendererChangeEvent
to all registered listeners.
Parameters: paint - the paint (null not permitted). |
setBaseItemLabelPaint | public void setBaseItemLabelPaint(Paint paint, boolean notify)(Code) | | Sets the base item label paint and, if requested, sends a
RendererChangeEvent to all registered listeners..
Parameters: paint - the paint (null not permitted). Parameters: notify - a flag that controls whether or not listeners are notified. |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(boolean visible)(Code) | | Sets the base flag that controls whether or not item labels are visible.
Parameters: visible - the flag. |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(Boolean visible)(Code) | | Sets the base setting for item label visibility.
Parameters: visible - the flag (null is permitted, and viewedas equivalent to Boolean.FALSE ). |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(Boolean visible, boolean notify)(Code) | | Sets the base visibility for item labels and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: visible - the flag (null is permitted, and viewedas equivalent to Boolean.FALSE ). Parameters: notify - a flag that controls whether or not listeners are notified. |
setBaseOutlinePaint | public void setBaseOutlinePaint(Paint paint)(Code) | | Sets the base outline paint and sends a
RendererChangeEvent to
all registered listeners.
Parameters: paint - the paint (null not permitted). |
setBaseOutlinePaint | public void setBaseOutlinePaint(Paint paint, boolean notify)(Code) | | Sets the base outline paint and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). Parameters: notify - notify listeners? |
setBaseOutlineStroke | public void setBaseOutlineStroke(Stroke stroke)(Code) | | Sets the base outline stroke and sends a
RendererChangeEvent to
all registered listeners.
Parameters: stroke - the stroke (null not permitted). |
setBaseOutlineStroke | public void setBaseOutlineStroke(Stroke stroke, boolean notify)(Code) | | Sets the base outline stroke and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: stroke - the stroke (null not permitted). Parameters: notify - a flag that controls whether or not listeners are notified. |
setBaseSeriesVisibleInLegend | public void setBaseSeriesVisibleInLegend(boolean visible, boolean notify)(Code) | | Sets the base visibility in the legend and, if requested, sends
a
RendererChangeEvent to all registered listeners.
Parameters: visible - the visibility. Parameters: notify - notify listeners? See Also: AbstractRenderer.getSeriesVisibleInLegend() |
setBaseShape | public void setBaseShape(Shape shape)(Code) | | Sets the base shape and sends a
RendererChangeEvent to all
registered listeners.
Parameters: shape - the shape (null not permitted). |
setBaseShape | public void setBaseShape(Shape shape, boolean notify)(Code) | | Sets the base shape and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: shape - the shape (null not permitted). Parameters: notify - notify listeners? |
setBaseStroke | public void setBaseStroke(Stroke stroke)(Code) | | Sets the base stroke.
Parameters: stroke - the stroke (null not permitted). |
setBaseStroke | public void setBaseStroke(Stroke stroke, boolean notify)(Code) | | Sets the base stroke and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: stroke - the stroke (null not permitted). Parameters: notify - notify listeners? |
setSeriesCreateEntities | public void setSeriesCreateEntities(int series, Boolean create)(Code) | | Sets the flag that controls whether entities are created for a series,
and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: create - the flag (null permitted). |
setSeriesCreateEntities | public void setSeriesCreateEntities(int series, Boolean create, boolean notify)(Code) | | Sets the flag that controls whether entities are created for a series
and, if requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index. Parameters: create - the flag (null permitted). Parameters: notify - notify listeners? |
setSeriesFillPaint | public void setSeriesFillPaint(int series, Paint paint)(Code) | | Sets the paint used for a series fill and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). |
setSeriesFillPaint | public void setSeriesFillPaint(int series, Paint paint, boolean notify)(Code) | | Sets the paint used to fill a series and, if requested,
sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). Parameters: notify - notify listeners? |
setSeriesItemLabelFont | public void setSeriesItemLabelFont(int series, Font font)(Code) | | Sets the item label font for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: font - the font (null permitted). |
setSeriesItemLabelFont | public void setSeriesItemLabelFont(int series, Font font, boolean notify)(Code) | | Sets the item label font for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero based). Parameters: font - the font (null permitted). Parameters: notify - a flag that controls whether or not listeners are notified. |
setSeriesItemLabelPaint | public void setSeriesItemLabelPaint(int series, Paint paint)(Code) | | Sets the item label paint for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series (zero based index). Parameters: paint - the paint (null permitted). |
setSeriesItemLabelPaint | public void setSeriesItemLabelPaint(int series, Paint paint, boolean notify)(Code) | | Sets the item label paint for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero based). Parameters: paint - the paint (null permitted). Parameters: notify - a flag that controls whether or not listeners are notified. |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, boolean visible)(Code) | | Sets a flag that controls the visibility of the item labels for a series.
Parameters: series - the series index (zero-based). Parameters: visible - the flag. |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, Boolean visible)(Code) | | Sets the visibility of the item labels for a series.
Parameters: series - the series index (zero-based). Parameters: visible - the flag (null permitted). |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify)(Code) | | Sets the visibility of item labels for a series and, if requested, sends
a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: visible - the visible flag. Parameters: notify - a flag that controls whether or not listeners are notified. |
setSeriesNegativeItemLabelPosition | public void setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code) | | Sets the item label position for negative values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). Parameters: notify - notify registered listeners? See Also: AbstractRenderer.getSeriesNegativeItemLabelPosition(int) |
setSeriesOutlinePaint | public void setSeriesOutlinePaint(int series, Paint paint)(Code) | | Sets the paint used for a series outline and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). |
setSeriesOutlinePaint | public void setSeriesOutlinePaint(int series, Paint paint, boolean notify)(Code) | | Sets the paint used to draw the outline for a series and, if requested,
sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). Parameters: notify - notify listeners? |
setSeriesOutlineStroke | public void setSeriesOutlineStroke(int series, Stroke stroke)(Code) | | Sets the outline stroke used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: stroke - the stroke (null permitted). |
setSeriesOutlineStroke | public void setSeriesOutlineStroke(int series, Stroke stroke, boolean notify)(Code) | | Sets the outline stroke for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index. Parameters: stroke - the stroke (null permitted). Parameters: notify - notify listeners? |
setSeriesPaint | public void setSeriesPaint(int series, Paint paint, boolean notify)(Code) | | Sets the paint used for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index. Parameters: paint - the paint (null permitted). Parameters: notify - notify listeners? See Also: AbstractRenderer.getSeriesPaint(int) |
setSeriesPositiveItemLabelPosition | public void setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code) | | Sets the item label position for all positive values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). Parameters: notify - notify registered listeners? See Also: AbstractRenderer.getSeriesPositiveItemLabelPosition(int) |
setSeriesShape | public void setSeriesShape(int series, Shape shape)(Code) | | Sets the shape used for a series and sends a
RendererChangeEvent
to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: shape - the shape (null permitted). |
setSeriesShape | public void setSeriesShape(int series, Shape shape, boolean notify)(Code) | | Sets the shape for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero based). Parameters: shape - the shape (null permitted). Parameters: notify - notify listeners? |
setSeriesStroke | public void setSeriesStroke(int series, Stroke stroke)(Code) | | Sets the stroke used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: stroke - the stroke (null permitted). |
setSeriesStroke | public void setSeriesStroke(int series, Stroke stroke, boolean notify)(Code) | | Sets the stroke for a series and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: stroke - the stroke (null permitted). Parameters: notify - notify listeners? |
setSeriesVisible | public void setSeriesVisible(int series, Boolean visible, boolean notify)(Code) | | Sets the flag that controls whether a series is visible and, if
requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index. Parameters: visible - the flag (null permitted). Parameters: notify - notify listeners? See Also: AbstractRenderer.getSeriesVisible(int) |
setSeriesVisibleInLegend | public void setSeriesVisibleInLegend(int series, Boolean visible, boolean notify)(Code) | | Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index. Parameters: visible - the flag (null permitted). Parameters: notify - notify listeners? See Also: AbstractRenderer.getSeriesVisibleInLegend(int) |
|
|