org.jfree.chart.renderer

Class WaferMapRenderer

Implemented Interfaces:
Cloneable, Serializable

public class WaferMapRenderer
extends AbstractRenderer

A renderer for wafer map plots. Provides color managment facilities.

Field Summary

static int
POSITION_INDEX
default multivalue paint calculation
static int
VALUE_INDEX
The default value index.

Fields inherited from class org.jfree.chart.renderer.AbstractRenderer

DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO

Constructor Summary

WaferMapRenderer()
Creates a new renderer.
WaferMapRenderer(Integer paintLimit, Integer paintIndexMethod)
Creates a new renderer.
WaferMapRenderer(int paintLimit, int paintIndexMethod)
Creates a new renderer.

Method Summary

Paint
getChipColor(Number value)
Returns the paint for a given chip value.
DrawingSupplier
getDrawingSupplier()
Returns the drawing supplier from the plot.
LegendItemCollection
getLegendCollection()
Builds the list of legend entries.
WaferMapPlot
getPlot()
Returns the plot.
void
setPlot(WaferMapPlot plot)
Sets the plot and build the paint index.

Methods inherited from class org.jfree.chart.renderer.AbstractRenderer

addChangeListener, calculateLabelAnchorPoint, clone, equals, fireChangeEvent, getBaseCreateEntities, getBaseFillPaint, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getCreateEntities, getDrawingSupplier, getItemCreateEntity, getItemFillPaint, getItemLabelAnchorOffset, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemPaint, getItemShape, getItemStroke, getItemVisible, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesCreateEntities, getSeriesFillPaint, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, hasListener, hashCode, isItemLabelVisible, isSeriesItemLabelsVisible, isSeriesVisible, isSeriesVisibleInLegend, notifyListeners, removeChangeListener, setBaseCreateEntities, setBaseCreateEntities, setBaseFillPaint, setBaseFillPaint, setBaseItemLabelFont, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlinePaint, setBaseOutlineStroke, setBaseOutlineStroke, setBasePaint, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseShape, setBaseStroke, setBaseStroke, setCreateEntities, setCreateEntities, setFillPaint, setFillPaint, setItemLabelAnchorOffset, setItemLabelFont, setItemLabelFont, setItemLabelPaint, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, 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

Field Details

POSITION_INDEX

public static final int POSITION_INDEX
default multivalue paint calculation
Field Value:
0

VALUE_INDEX

public static final int VALUE_INDEX
The default value index.
Field Value:
1

Constructor Details

WaferMapRenderer

public WaferMapRenderer()
Creates a new renderer.

WaferMapRenderer

public WaferMapRenderer(Integer paintLimit,
                        Integer paintIndexMethod)
Creates a new renderer.
Parameters:
paintLimit - the paint limit.
paintIndexMethod - the paint index method.

WaferMapRenderer

public WaferMapRenderer(int paintLimit,
                        int paintIndexMethod)
Creates a new renderer.
Parameters:
paintLimit - the paint limit.
paintIndexMethod - the paint index method.

Method Details

getChipColor

public Paint getChipColor(Number value)
Returns the paint for a given chip value.
Parameters:
value - the value.
Returns:
The paint.

getDrawingSupplier

public DrawingSupplier getDrawingSupplier()
Returns the drawing supplier from the plot.
Overrides:
getDrawingSupplier in interface AbstractRenderer
Returns:
The drawing supplier.

getLegendCollection

public LegendItemCollection getLegendCollection()
Builds the list of legend entries. called by getLegendItems in WaferMapPlot to populate the plot legend.
Returns:
The legend items.

getPlot

public WaferMapPlot getPlot()
Returns the plot.
Returns:
The plot.

setPlot

public void setPlot(WaferMapPlot plot)
Sets the plot and build the paint index.
Parameters:
plot - the plot.