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 Details

    • 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.
  • Constructor Details

    • 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

    • getPlotType

      public String getPlotType()
      Returns the plot type as a string.
      Specified by:
      getPlotType in class Plot
      Returns:
      a short string describing the type of plot.
    • 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).
    • draw

      public void draw​(Graphics2D g2, Rectangle2D plotArea, PlotState state, PlotRenderingInfo info)
      Draws the wafermap view.
      Specified by:
      draw in class Plot
      Parameters:
      g2 - the graphics device.
      plotArea - the plot area.
      state - the plot state.
      info - the plot rendering info.
    • getDataset

      public WaferMapDataset getDataset()
      Returns the dataset
      Returns:
      wafermapdataset
    • getLegendItems

      public LegendItemCollection getLegendItems()
      Return the legend items from the renderer.
      Overrides:
      getLegendItems in class Plot
      Returns:
      legenditemcollection
    • rendererChanged

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