org.jfree.chart.plot

Class WaferMapPlot

Implemented Interfaces:
Cloneable, EventListener, AxisChangeListener, DatasetChangeListener, LegendItemSource, MarkerChangeListener, PublicCloneable, RendererChangeListener, Serializable

public class WaferMapPlot
extends Plot
implements RendererChangeListener, Cloneable, Serializable

A wafer map plot.

Field Summary

static Paint
DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.
static Stroke
DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.
static boolean
DEFAULT_CROSSHAIR_VISIBLE
The default crosshair visibility.
static Paint
DEFAULT_GRIDLINE_PAINT
The default grid line paint.
static Stroke
DEFAULT_GRIDLINE_STROKE
The default grid line stroke.
protected static ResourceBundle
localizationResources
The resourceBundle for the localization.

Fields inherited from class org.jfree.chart.plot.Plot

DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO

Constructor Summary

WaferMapPlot()
Creates a new plot with no dataset.
WaferMapPlot(WaferMapDataset dataset)
Creates a new plot.
WaferMapPlot(WaferMapDataset dataset, WaferMapRenderer renderer)
Creates a new plot.

Method Summary

void
draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info)
Draws the wafermap view.
protected void
drawChipGrid(Graphics2D g2, Rectangle2D plotArea)
Calculates and draws the chip locations on the wafer.
protected void
drawWaferEdge(Graphics2D g2, Rectangle2D plotArea)
Draws the waferedge, including the notch.
WaferMapDataset
getDataset()
Returns the dataset
LegendItemCollection
getLegendItems()
Return the legend items from the renderer.
String
getPlotType()
Returns the plot type as a string.
protected Ellipse2D
getWaferEdge(Rectangle2D plotArea)
Calculates the location of the waferedge.
void
rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a renderer change.
void
setDataset(WaferMapDataset dataset)
Sets the dataset used by the plot and sends a PlotChangeEvent to all registered listeners.
void
setRenderer(WaferMapRenderer renderer)
Sets the item renderer, and notifies all listeners of a change to the plot.

Methods inherited from class org.jfree.chart.plot.Plot

addChangeListener, axisChanged, clone, datasetChanged, draw, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, equals, fillBackground, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getLegendItems, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getPlotType, getRectX, getRectY, getRootPlot, handleClick, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setParent, zoom

Field Details

DEFAULT_CROSSHAIR_PAINT

public static final Paint DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.

DEFAULT_CROSSHAIR_STROKE

public static final Stroke DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.

DEFAULT_CROSSHAIR_VISIBLE

public static final boolean DEFAULT_CROSSHAIR_VISIBLE
The default crosshair visibility.
Field Value:
false

DEFAULT_GRIDLINE_PAINT

public static final Paint DEFAULT_GRIDLINE_PAINT
The default grid line paint.

DEFAULT_GRIDLINE_STROKE

public static final Stroke DEFAULT_GRIDLINE_STROKE
The default grid line stroke.

localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Details

WaferMapPlot

public WaferMapPlot()
Creates a new plot with no dataset.

WaferMapPlot

public WaferMapPlot(WaferMapDataset dataset)
Creates a new plot.
Parameters:
dataset - the dataset (null permitted).

WaferMapPlot

public WaferMapPlot(WaferMapDataset dataset,
                    WaferMapRenderer renderer)
Creates a new plot.
Parameters:
dataset - the dataset (null permitted).
renderer - the renderer (null permitted).

Method Details

draw

public void draw(Graphics2D g2,
                 Rectangle2D area,
                 Point2D anchor,
                 PlotState state,
                 PlotRenderingInfo info)
Draws the wafermap view.
Overrides:
draw in interface Plot
Parameters:
g2 - the graphics device.
area - the plot area.
anchor - the anchor point (null permitted).
state - the plot state.
info - the plot rendering info.

drawChipGrid

protected void drawChipGrid(Graphics2D g2,
                            Rectangle2D plotArea)
Calculates and draws the chip locations on the wafer.
Parameters:
g2 - the graphics device.
plotArea - the plot area.

drawWaferEdge

protected void drawWaferEdge(Graphics2D g2,
                             Rectangle2D plotArea)
Draws the waferedge, including the notch.
Parameters:
g2 - the graphics device.
plotArea - the plot area.

getDataset

public WaferMapDataset getDataset()
Returns the dataset
Returns:
The dataset (possibly null).

getLegendItems

public LegendItemCollection getLegendItems()
Return the legend items from the renderer.
Specified by:
getLegendItems in interface LegendItemSource
Overrides:
getLegendItems in interface Plot
Returns:
The legend items.

getPlotType

public String getPlotType()
Returns the plot type as a string.
Overrides:
getPlotType in interface Plot
Returns:
A short string describing the type of plot.

getWaferEdge

protected Ellipse2D getWaferEdge(Rectangle2D plotArea)
Calculates the location of the waferedge.
Parameters:
plotArea - the plot area.
Returns:
The wafer edge.

rendererChanged

public void rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a renderer change.
Specified by:
rendererChanged in interface RendererChangeListener
Parameters:
event - the event.

setDataset

public void setDataset(WaferMapDataset dataset)
Sets the dataset used by the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
dataset - the dataset (null permitted).

setRenderer

public void setRenderer(WaferMapRenderer renderer)
Sets the item renderer, and notifies all listeners of a change to the plot. If the renderer is set to null, no chart will be drawn.
Parameters:
renderer - the new renderer (null permitted).