public class DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer
PolarPlot
class.DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO
Constructor and Description |
---|
DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a clone of the renderer.
|
void |
drawAngularGridLines(Graphics2D g2,
PolarPlot plot,
List ticks,
Rectangle2D dataArea)
Draw the angular gridlines - the spokes.
|
void |
drawRadialGridLines(Graphics2D g2,
PolarPlot plot,
ValueAxis radialAxis,
List ticks,
Rectangle2D dataArea)
Draw the radial gridlines - the rings.
|
void |
drawSeries(Graphics2D g2,
Rectangle2D dataArea,
PlotRenderingInfo info,
PolarPlot plot,
XYDataset dataset,
int seriesIndex)
Plots the data for a given series.
|
boolean |
equals(Object obj)
Tests this renderer for equality with an arbitrary object.
|
XYToolTipGenerator |
getBaseToolTipGenerator()
Returns the default tool tip generator.
|
boolean |
getConnectFirstAndLastPoint()
Returns
true if first and last point of a series will be
connected, false otherwise. |
DrawingSupplier |
getDrawingSupplier()
Returns the drawing supplier from the plot.
|
boolean |
getDrawOutlineWhenFilled()
Returns
true if the renderer will draw an outline around
a filled polygon, false otherwise. |
Composite |
getFillComposite()
Get the composite that is used for filling.
|
LegendItem |
getLegendItem(int series)
Return the legend for the given series.
|
XYSeriesLabelGenerator |
getLegendItemToolTipGenerator()
Returns the legend item tool tip generator.
|
XYSeriesLabelGenerator |
getLegendItemURLGenerator()
Returns the legend item URL generator.
|
Shape |
getLegendLine()
Returns the shape used to represent a line in the legend.
|
PolarPlot |
getPlot()
Return the plot associated with this renderer.
|
XYToolTipGenerator |
getSeriesToolTipGenerator(int series)
Returns the tool tip generator for the specified series.
|
boolean |
getShapesVisible()
Returns
true if a shape will be drawn for every item, or
false if not. |
XYToolTipGenerator |
getToolTipGenerator(int series,
int item)
Returns the tooltip generator for the specified series and item.
|
XYURLGenerator |
getURLGenerator()
Returns the URL generator.
|
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. |
boolean |
isSeriesFilled(int series)
Returns
true if the renderer should fill the specified
series, and false otherwise. |
void |
setBaseToolTipGenerator(XYToolTipGenerator generator)
Sets the default tool tip generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setConnectFirstAndLastPoint(boolean connect)
Set the flag that controls whether the first and last point of a series
will be connected or not and sends a
RendererChangeEvent to all
registered listeners. |
void |
setDrawOutlineWhenFilled(boolean drawOutlineWhenFilled)
Set the flag that controls whether the outline around a filled
polygon will be drawn or not and sends a
RendererChangeEvent
to all registered listeners. |
void |
setFillComposite(Composite composite)
Sets the composite which will be used for filling polygons and sends a
RendererChangeEvent to all registered listeners. |
void |
setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)
Sets the legend item tool tip generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setLegendItemURLGenerator(XYSeriesLabelGenerator generator)
Sets the legend item URL generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setLegendLine(Shape line)
Sets the shape used as a line in each legend item and sends a
RendererChangeEvent to all registered listeners. |
void |
setPlot(PolarPlot plot)
Set the plot associated with this renderer.
|
void |
setSeriesFilled(int series,
boolean filled)
Sets a flag that controls whether or not a series is filled.
|
void |
setSeriesToolTipGenerator(int series,
XYToolTipGenerator generator)
Sets the tooltip generator for the specified series.
|
void |
setShapesVisible(boolean visible)
Set the flag that controls whether a shape will be drawn for every
item, or not and sends a
RendererChangeEvent to all registered
listeners. |
void |
setURLGenerator(XYURLGenerator urlGenerator)
Sets the URL generator.
|
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. |
addChangeListener, clearSeriesPaints, clearSeriesStrokes, getAutoPopulateSeriesFillPaint, getAutoPopulateSeriesOutlinePaint, getAutoPopulateSeriesOutlineStroke, getAutoPopulateSeriesPaint, getAutoPopulateSeriesShape, getAutoPopulateSeriesStroke, getBaseCreateEntities, getBaseFillPaint, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseLegendShape, getBaseLegendTextFont, getBaseLegendTextPaint, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getCreateEntities, getDataBoundsIncludesVisibleSeriesOnly, getDefaultEntityRadius, getItemCreateEntity, getItemFillPaint, getItemLabelAnchorOffset, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemPaint, getItemShape, getItemStroke, getItemVisible, getLegendShape, getLegendTextFont, getLegendTextPaint, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesCreateEntities, getSeriesFillPaint, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, hashCode, hasListener, isItemLabelVisible, isSeriesItemLabelsVisible, isSeriesVisible, isSeriesVisibleInLegend, lookupLegendShape, lookupLegendTextFont, lookupLegendTextPaint, lookupSeriesFillPaint, lookupSeriesOutlinePaint, lookupSeriesOutlineStroke, lookupSeriesPaint, lookupSeriesShape, lookupSeriesStroke, notifyListeners, removeChangeListener, setAutoPopulateSeriesFillPaint, setAutoPopulateSeriesOutlinePaint, setAutoPopulateSeriesOutlineStroke, setAutoPopulateSeriesPaint, setAutoPopulateSeriesShape, setAutoPopulateSeriesStroke, setBaseCreateEntities, setBaseCreateEntities, setBaseFillPaint, setBaseFillPaint, setBaseItemLabelFont, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseLegendShape, setBaseLegendTextFont, setBaseLegendTextPaint, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlinePaint, setBaseOutlineStroke, setBaseOutlineStroke, setBasePaint, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseShape, setBaseStroke, setBaseStroke, setCreateEntities, setCreateEntities, setDataBoundsIncludesVisibleSeriesOnly, setDefaultEntityRadius, setFillPaint, setFillPaint, setItemLabelAnchorOffset, setItemLabelFont, setItemLabelFont, setItemLabelPaint, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setLegendShape, setLegendTextFont, setLegendTextPaint, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlinePaint, setOutlineStroke, setOutlineStroke, setPaint, setPaint, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesCreateEntities, setSeriesCreateEntities, setSeriesFillPaint, setSeriesFillPaint, setSeriesItemLabelFont, setSeriesItemLabelFont, setSeriesItemLabelPaint, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesOutlineStroke, setSeriesPaint, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesShape, setSeriesStroke, setSeriesStroke, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setShape, setStroke, setStroke
getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, removeChangeListener
public DefaultPolarItemRenderer()
public void setPlot(PolarPlot plot)
setPlot
in interface PolarItemRenderer
plot
- the plot.getPlot()
public PolarPlot getPlot()
getPlot
in interface PolarItemRenderer
setPlot(PolarPlot)
public boolean getDrawOutlineWhenFilled()
true
if the renderer will draw an outline around
a filled polygon, false
otherwise.public void setDrawOutlineWhenFilled(boolean drawOutlineWhenFilled)
RendererChangeEvent
to all registered listeners.drawOutlineWhenFilled
- the flag.public Composite getFillComposite()
null
).public void setFillComposite(Composite composite)
RendererChangeEvent
to all registered listeners.composite
- the composite to use (null
not
permitted).public boolean getShapesVisible()
true
if a shape will be drawn for every item, or
false
if not.public void setShapesVisible(boolean visible)
RendererChangeEvent
to all registered
listeners.visible
- the flag.public boolean getConnectFirstAndLastPoint()
true
if first and last point of a series will be
connected, false
otherwise.public void setConnectFirstAndLastPoint(boolean connect)
RendererChangeEvent
to all
registered listeners.connect
- the flag.public DrawingSupplier getDrawingSupplier()
getDrawingSupplier
in class AbstractRenderer
public boolean isSeriesFilled(int series)
true
if the renderer should fill the specified
series, and false
otherwise.series
- the series index (zero-based).public void setSeriesFilled(int series, boolean filled)
series
- the series index.filled
- the flag.public boolean getUseFillPaint()
true
if the renderer should use the fill paint
setting to fill shapes, and false
if it should just
use the regular paint.setUseFillPaint(boolean)
public void setUseFillPaint(boolean flag)
RendererChangeEvent
to all
registered listeners.flag
- the flag.getUseFillPaint()
public Shape getLegendLine()
null
).setLegendLine(Shape)
public void setLegendLine(Shape line)
RendererChangeEvent
to all registered listeners.line
- the line (null
not permitted).getLegendLine()
public void drawSeries(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, PolarPlot plot, XYDataset dataset, int seriesIndex)
drawSeries
in interface PolarItemRenderer
g2
- the drawing surface.dataArea
- the data area.info
- collects plot rendering info.plot
- the plot.dataset
- the dataset.seriesIndex
- the series index.public void drawAngularGridLines(Graphics2D g2, PolarPlot plot, List ticks, Rectangle2D dataArea)
drawAngularGridLines
in interface PolarItemRenderer
g2
- the drawing surface.plot
- the plot (null
not permitted).ticks
- the ticks (null
not permitted).dataArea
- the data area.public void drawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea)
drawRadialGridLines
in interface PolarItemRenderer
g2
- the drawing surface (null
not permitted).plot
- the plot (null
not permitted).radialAxis
- the radial axis (null
not permitted).ticks
- the ticks (null
not permitted).dataArea
- the data area.public LegendItem getLegendItem(int series)
getLegendItem
in interface PolarItemRenderer
series
- the series index.public XYToolTipGenerator getToolTipGenerator(int series, int item)
getToolTipGenerator
in interface PolarItemRenderer
series
- the series index.item
- the item index.null
).public XYToolTipGenerator getSeriesToolTipGenerator(int series)
getSeriesToolTipGenerator
in interface PolarItemRenderer
series
- the series index (zero based).null
).PolarItemRenderer.setSeriesToolTipGenerator(int, XYToolTipGenerator)
public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)
setSeriesToolTipGenerator
in interface PolarItemRenderer
series
- the series index.generator
- the tool tip generator (null
permitted).PolarItemRenderer.getSeriesToolTipGenerator(int)
public XYToolTipGenerator getBaseToolTipGenerator()
getBaseToolTipGenerator
in interface PolarItemRenderer
null
).PolarItemRenderer.setBaseToolTipGenerator(XYToolTipGenerator)
public void setBaseToolTipGenerator(XYToolTipGenerator generator)
RendererChangeEvent
to all registered listeners.setBaseToolTipGenerator
in interface PolarItemRenderer
generator
- the generator (null
permitted).PolarItemRenderer.getBaseToolTipGenerator()
public XYURLGenerator getURLGenerator()
getURLGenerator
in interface PolarItemRenderer
null
).public void setURLGenerator(XYURLGenerator urlGenerator)
setURLGenerator
in interface PolarItemRenderer
urlGenerator
- the generator (null
permitted)public XYSeriesLabelGenerator getLegendItemToolTipGenerator()
null
).setLegendItemToolTipGenerator(XYSeriesLabelGenerator)
public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)
RendererChangeEvent
to all registered listeners.generator
- the generator (null
permitted).getLegendItemToolTipGenerator()
public XYSeriesLabelGenerator getLegendItemURLGenerator()
null
).setLegendItemURLGenerator(XYSeriesLabelGenerator)
public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)
RendererChangeEvent
to all registered listeners.generator
- the generator (null
permitted).getLegendItemURLGenerator()
public boolean equals(Object obj)
equals
in class AbstractRenderer
obj
- the object (null
not permitted).true
if this renderer is equal to obj
,
and false
otherwise.public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the renderer cannot be cloned.Jas4pp 1.5 © Java Analysis Studio for Particle Physics