java.lang.Object
org.jfree.chart.plot.Plot
org.jfree.chart.plot.WaferMapPlot
- All Implemented Interfaces:
Disposable
,Serializable
,Cloneable
,EventListener
,AnnotationChangeListener
,AxisChangeListener
,MarkerChangeListener
,RendererChangeListener
,LegendItemSource
,PublicCloneable
,DatasetChangeListener
A wafer map plot.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Paint
The default crosshair paint.static final Stroke
The default crosshair stroke.static final boolean
The default crosshair visibility.static final Paint
The default grid line paint.static final Stroke
The default grid line stroke.protected static ResourceBundle
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
ConstructorDescriptionCreates a new plot with no dataset.WaferMapPlot
(WaferMapDataset dataset) Creates a new plot.WaferMapPlot
(WaferMapDataset dataset, WaferMapRenderer renderer) Creates a new plot. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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.Returns the datasetReturn the legend items from the renderer.Returns the plot type as a string.protected Ellipse2D
getWaferEdge
(Rectangle2D plotArea) Calculates the location of the waferedge.void
Notifies all registered listeners of a renderer change.void
setDataset
(WaferMapDataset dataset) Sets the dataset used by the plot and sends aPlotChangeEvent
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, annotationChanged, axisChanged, clone, createAndAddEntity, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, equals, fetchElementHintingFlag, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getChart, getDatasetGroup, 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, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
-
Field Details
-
DEFAULT_GRIDLINE_STROKE
The default grid line stroke. -
DEFAULT_GRIDLINE_PAINT
The default grid line paint. -
DEFAULT_CROSSHAIR_VISIBLE
public static final boolean DEFAULT_CROSSHAIR_VISIBLEThe default crosshair visibility.- See Also:
-
DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke. -
DEFAULT_CROSSHAIR_PAINT
The default crosshair paint. -
localizationResources
The resourceBundle for the localization.
-
-
Constructor Details
-
WaferMapPlot
public WaferMapPlot()Creates a new plot with no dataset. -
WaferMapPlot
Creates a new plot.- Parameters:
dataset
- the dataset (null
permitted).
-
WaferMapPlot
Creates a new plot.- Parameters:
dataset
- the dataset (null
permitted).renderer
- the renderer (null
permitted).
-
-
Method Details
-
getPlotType
Returns the plot type as a string.- Specified by:
getPlotType
in classPlot
- Returns:
- A short string describing the type of plot.
-
getDataset
Returns the dataset- Returns:
- The dataset (possibly
null
).
-
setDataset
Sets the dataset used by the plot and sends aPlotChangeEvent
to all registered listeners.- Parameters:
dataset
- the dataset (null
permitted).
-
setRenderer
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 (null
permitted).
-
draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info) Draws the wafermap view. -
drawChipGrid
Calculates and draws the chip locations on the wafer.- Parameters:
g2
- the graphics device.plotArea
- the plot area.
-
getWaferEdge
Calculates the location of the waferedge.- Parameters:
plotArea
- the plot area.- Returns:
- The wafer edge.
-
drawWaferEdge
Draws the waferedge, including the notch.- Parameters:
g2
- the graphics device.plotArea
- the plot area.
-
getLegendItems
Return the legend items from the renderer.- Specified by:
getLegendItems
in interfaceLegendItemSource
- Overrides:
getLegendItems
in classPlot
- Returns:
- The legend items.
-
rendererChanged
Notifies all registered listeners of a renderer change.- Specified by:
rendererChanged
in interfaceRendererChangeListener
- Parameters:
event
- the event.
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-