de.laures.cewolf.jfree
Class WaferMapPlot

java.lang.Object
  extended by org.jfree.chart.plot.Plot
      extended by de.laures.cewolf.jfree.WaferMapPlot
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, org.jfree.chart.event.AxisChangeListener, org.jfree.chart.event.MarkerChangeListener, org.jfree.chart.event.RendererChangeListener, org.jfree.chart.LegendItemSource, org.jfree.data.general.DatasetChangeListener, org.jfree.util.PublicCloneable

public class WaferMapPlot
extends org.jfree.chart.plot.Plot
implements org.jfree.chart.event.RendererChangeListener

A wafer map plot.

See Also:
Serialized Form

Field Summary
 
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(org.jfree.data.general.WaferMapDataset dataset)
          Creates a new plot.
WaferMapPlot(org.jfree.data.general.WaferMapDataset dataset, WaferMapRenderer renderer)
          Creates a new plot.
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.awt.geom.Point2D anchor, org.jfree.chart.plot.PlotState state, org.jfree.chart.plot.PlotRenderingInfo info)
          Draws the wafermap view.
protected  void drawChipGrid(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)
          Calculates and draws the chip locations on the wafer.
protected  void drawWaferEdge(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)
          Draws the waferedge, including the notch.
 boolean equals(java.lang.Object obj)
          Tests this plot for equality with another object.
 org.jfree.data.general.WaferMapDataset getDataset()
          Returns the dataset
 org.jfree.chart.LegendItemCollection getLegendItems()
          Return the legend items from the renderer.
 java.lang.String getPlotType()
          Returns the plot type as a string.
 WaferMapRenderer getRenderer()
          Returns the renderer for the primary dataset.
protected  java.awt.geom.Ellipse2D getWaferEdge(java.awt.geom.Rectangle2D plotArea)
          Calculates the location of the waferedge.
 int hashCode()
           
 void rendererChanged(org.jfree.chart.event.RendererChangeEvent event)
          Implements the RendererChangeListener interface Notifies all registered listeners of a renderer change.
 void setDataset(org.jfree.data.general.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.
 void setShowCellValues(boolean showCellValues)
           
 
Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, axisChanged, clone, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaferMapPlot

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


WaferMapPlot

public WaferMapPlot(org.jfree.data.general.WaferMapDataset dataset)
Creates a new plot.

Parameters:
dataset - the dataset (null permitted).

WaferMapPlot

public WaferMapPlot(org.jfree.data.general.WaferMapDataset dataset,
                    WaferMapRenderer renderer)
Creates a new plot.

Parameters:
dataset - the dataset (null permitted).
renderer - the renderer (null permitted).
Method Detail

setShowCellValues

public void setShowCellValues(boolean showCellValues)

getPlotType

public java.lang.String getPlotType()
Returns the plot type as a string.

Specified by:
getPlotType in class org.jfree.chart.plot.Plot
Returns:
A short string describing the type of plot.

getDataset

public org.jfree.data.general.WaferMapDataset getDataset()
Returns the dataset

Returns:
The dataset (possibly null).

setDataset

public void setDataset(org.jfree.data.general.WaferMapDataset dataset)
Sets the dataset used by the plot and sends a PlotChangeEvent to all registered listeners.

Parameters:
dataset - the dataset (null permitted).

getRenderer

public WaferMapRenderer getRenderer()
Returns the renderer for the primary dataset.

Returns:
The renderer (possibly null).
See Also:
setRenderer(WaferMapRenderer)

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(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D area,
                 java.awt.geom.Point2D anchor,
                 org.jfree.chart.plot.PlotState state,
                 org.jfree.chart.plot.PlotRenderingInfo info)
Draws the wafermap view.

Specified by:
draw in class org.jfree.chart.plot.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(java.awt.Graphics2D g2,
                            java.awt.geom.Rectangle2D plotArea)
Calculates and draws the chip locations on the wafer.

Parameters:
g2 - the graphics device.
plotArea - the plot area.

getWaferEdge

protected java.awt.geom.Ellipse2D getWaferEdge(java.awt.geom.Rectangle2D plotArea)
Calculates the location of the waferedge.

Parameters:
plotArea - the plot area.
Returns:
The wafer edge.

drawWaferEdge

protected void drawWaferEdge(java.awt.Graphics2D g2,
                             java.awt.geom.Rectangle2D plotArea)
Draws the waferedge, including the notch.

Parameters:
g2 - the graphics device.
plotArea - the plot area.

getLegendItems

public org.jfree.chart.LegendItemCollection getLegendItems()
Return the legend items from the renderer.

Specified by:
getLegendItems in interface org.jfree.chart.LegendItemSource
Overrides:
getLegendItems in class org.jfree.chart.plot.Plot
Returns:
The legend items.

rendererChanged

public void rendererChanged(org.jfree.chart.event.RendererChangeEvent event)
Implements the RendererChangeListener interface Notifies all registered listeners of a renderer change.

Specified by:
rendererChanged in interface org.jfree.chart.event.RendererChangeListener
Parameters:
event - the event.

equals

public boolean equals(java.lang.Object obj)
Tests this plot for equality with another object. The plot's dataset is not considered in the test.

Overrides:
equals in class org.jfree.chart.plot.Plot
Parameters:
obj - the object (null permitted).
Returns:
true or false.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


cewolf tag library - web charts with JFreeChart