Package org.jfree.chart.plot
Class WaferMapPlot
java.lang.Object
org.jfree.chart.plot.Plot
org.jfree.chart.plot.WaferMapPlot
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,AxisChangeListener
,RendererChangeListener
,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 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.Fields inherited from class org.jfree.chart.plot.Plot
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
-
Constructor Summary
Constructors Constructor Description WaferMapPlot(WaferMapDataset dataset)
Creates a new plot.WaferMapPlot(WaferMapDataset dataset, WaferMapRenderer renderer)
Creates a new plot. -
Method Summary
Modifier and Type Method Description void
draw(Graphics2D g2, Rectangle2D plotArea, PlotState state, PlotRenderingInfo info)
Draws the wafermap view.WaferMapDataset
getDataset()
Returns the datasetLegendItemCollection
getLegendItems()
Return the legend items from the renderer.String
getPlotType()
Returns the plot type as a string.void
rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a renderer change.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, drawOutline, equals, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundPaint, getDataAreaRatio, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRootPlot, handleClick, isPlotShowing, isSubplot, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundPaint, setDataAreaRatio, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setParent, setPlotShowing, 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:
- Constant Field Values
-
DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke. -
DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.
-
-
Constructor Details
-
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.
-
setRenderer
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).
-
draw
Draws the wafermap view. -
getDataset
Returns the dataset- Returns:
- wafermapdataset
-
getLegendItems
Return the legend items from the renderer.- Overrides:
getLegendItems
in classPlot
- Returns:
- legenditemcollection
-
rendererChanged
Notifies all registered listeners of a renderer change.- Specified by:
rendererChanged
in interfaceRendererChangeListener
- Parameters:
event
- the event.
-