- java.lang.Object
-
- org.jfree.chart.plot.Plot
-
- org.jfree.chart.plot.WaferMapPlot
-
- All Implemented Interfaces:
Serializable,Cloneable,EventListener,PublicCloneable,ChartElement,AnnotationChangeListener,AxisChangeListener,MarkerChangeListener,RendererChangeListener,org.jfree.chart.legend.LegendItemSource,DatasetChangeListener
public class WaferMapPlot extends Plot implements RendererChangeListener, Cloneable, Serializable
A wafer map plot.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PaintDEFAULT_CROSSHAIR_PAINTThe default crosshair paint.static StrokeDEFAULT_CROSSHAIR_STROKEThe default crosshair stroke.static booleanDEFAULT_CROSSHAIR_VISIBLEThe default crosshair visibility.static PaintDEFAULT_GRIDLINE_PAINTThe default grid line paint.static StrokeDEFAULT_GRIDLINE_STROKEThe default grid line stroke.protected static ResourceBundlelocalizationResourcesThe 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info)Draws the wafermap view.protected voiddrawChipGrid(Graphics2D g2, Rectangle2D plotArea)Calculates and draws the chip locations on the wafer.protected voiddrawWaferEdge(Graphics2D g2, Rectangle2D plotArea)Draws the waferedge, including the notch.WaferMapDatasetgetDataset()Returns the datasetorg.jfree.chart.legend.LegendItemCollectiongetLegendItems()Return the legend items from the renderer.StringgetPlotType()Returns the plot type as a string.protected Ellipse2DgetWaferEdge(Rectangle2D plotArea)Calculates the location of the waferedge.voidreceive(ChartElementVisitor visitor)Receives a chart element visitor.voidrendererChanged(RendererChangeEvent event)Notifies all registered listeners of a renderer change.voidsetDataset(WaferMapDataset dataset)Sets the dataset used by the plot and sends aPlotChangeEventto all registered listeners.voidsetRenderer(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, annotationChanged, axisChanged, clone, createAndAddEntity, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, equals, fetchElementHintingFlag, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getChart, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setChart, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
-
-
-
-
Field Detail
-
DEFAULT_GRIDLINE_STROKE
public static final Stroke DEFAULT_GRIDLINE_STROKE
The default grid line stroke.
-
DEFAULT_GRIDLINE_PAINT
public static final Paint DEFAULT_GRIDLINE_PAINT
The default grid line paint.
-
DEFAULT_CROSSHAIR_VISIBLE
public static final boolean DEFAULT_CROSSHAIR_VISIBLE
The default crosshair visibility.- See Also:
- Constant Field Values
-
DEFAULT_CROSSHAIR_STROKE
public static final Stroke DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.
-
DEFAULT_CROSSHAIR_PAINT
public static final Paint DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.
-
localizationResources
protected static ResourceBundle localizationResources
The resourceBundle for the localization.
-
-
Constructor Detail
-
WaferMapPlot
public WaferMapPlot()
Creates a new plot with no dataset.
-
WaferMapPlot
public WaferMapPlot(WaferMapDataset dataset)
Creates a new plot.- Parameters:
dataset- the dataset (nullpermitted).
-
WaferMapPlot
public WaferMapPlot(WaferMapDataset dataset, WaferMapRenderer renderer)
Creates a new plot.- Parameters:
dataset- the dataset (nullpermitted).renderer- the renderer (nullpermitted).
-
-
Method Detail
-
getPlotType
public String getPlotType()
Returns the plot type as a string.- Specified by:
getPlotTypein classPlot- Returns:
- A short string describing the type of plot.
-
getDataset
public WaferMapDataset getDataset()
Returns the dataset- Returns:
- The dataset (possibly
null).
-
setDataset
public void setDataset(WaferMapDataset dataset)
Sets the dataset used by the plot and sends aPlotChangeEventto all registered listeners.- Parameters:
dataset- the dataset (nullpermitted).
-
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 tonull, no chart will be drawn.- Parameters:
renderer- the new renderer (nullpermitted).
-
receive
public void receive(ChartElementVisitor visitor)
Receives a chart element visitor. Many plot subclasses will override this method to handle their subcomponents.- Specified by:
receivein interfaceChartElement- Overrides:
receivein classPlot- Parameters:
visitor- the visitor (nullnot permitted).
-
draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info)
Draws the wafermap view.
-
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.
-
getWaferEdge
protected Ellipse2D getWaferEdge(Rectangle2D plotArea)
Calculates the location of the waferedge.- Parameters:
plotArea- the plot area.- Returns:
- The wafer edge.
-
drawWaferEdge
protected void drawWaferEdge(Graphics2D g2, Rectangle2D plotArea)
Draws the waferedge, including the notch.- Parameters:
g2- the graphics device.plotArea- the plot area.
-
getLegendItems
public org.jfree.chart.legend.LegendItemCollection getLegendItems()
Return the legend items from the renderer.- Specified by:
getLegendItemsin interfaceorg.jfree.chart.legend.LegendItemSource- Overrides:
getLegendItemsin classPlot- Returns:
- The legend items.
-
rendererChanged
public void rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a renderer change.- Specified by:
rendererChangedin interfaceRendererChangeListener- Parameters:
event- the event.
-
-