Package org.jfree.data
Class WaferMapDataset
java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.WaferMapDataset
- All Implemented Interfaces:
 ObjectInputValidation,Serializable,Cloneable,Dataset
public class WaferMapDataset extends AbstractDataset
A dataset that can be used with the 
WaferMapPlot
 class.- Author:
 - Robert Redburn
 - See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description WaferMapDataset(int maxChipX, int maxChipY)Creates a new dataset using the default chipspace.WaferMapDataset(int maxChipX, int maxChipY, Number chipSpace)Creates a new dataset. - 
Method Summary
Modifier and Type Method Description voidaddValue(int v, int x, int y)Adds a value to the dataset.voidaddValue(Number value, Comparable chipx, Comparable chipy)Sets a value in the dataset.doublegetChipSpace()Returns the space to draw between chips.NumbergetChipValue(int chipx, int chipy)Returns the data value for a chip.NumbergetChipValue(Comparable chipx, Comparable chipy)Returns the value for a given chip x and y or null.intgetMaxChipX()Returns the wafer x-dimension.intgetMaxChipY()Returns the number of chips in the y-dimension.NumbergetMaxValue()Returns the maximum value stored in the dataset.NumbergetMinValue()Returns the minimum value stored in the dataset.intgetUniqueValueCount()Returns the number of unique values.SetgetUniqueValues()Returns the set of unique values.booleanisMaxValue(Number check)Tests to see if the passed value is larger than the stored maxvalue.booleanisMinValue(Number check)Tests to see if the passed value is smaller than the stored minvalue.voidsetChipSpace(double space)Sets the space to draw between chips.voidsetMaxChipX(int maxChipX)Sets wafer x dimension.voidsetMaxChipY(int maxChipY)Sets the number of chips in the y-dimension.voidsetValue(Number value, Comparable chipx, Comparable chipy)Sets a value in the dataset and updates min and max value entries.Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObject 
- 
Constructor Details
- 
WaferMapDataset
public WaferMapDataset(int maxChipX, int maxChipY)Creates a new dataset using the default chipspace.- Parameters:
 maxChipX- the wafer x-dimension.maxChipY- the wafer y-dimension.
 - 
WaferMapDataset
Creates a new dataset.- Parameters:
 maxChipX- the wafer x-dimension.maxChipY- the wafer y-dimension.chipSpace- the space between chips.
 
 - 
 - 
Method Details
- 
addValue
Sets a value in the dataset.- Parameters:
 value- the value.chipx- the x-index for the chip.chipy- the y-index for the chip.
 - 
addValue
public void addValue(int v, int x, int y)Adds a value to the dataset.- Parameters:
 v- the value.x- the x-index.y- the y-index.
 - 
setValue
Sets a value in the dataset and updates min and max value entries.- Parameters:
 value- the value.chipx- the x-index.chipy- the y-index.
 - 
getUniqueValueCount
public int getUniqueValueCount()Returns the number of unique values.- Returns:
 - the number of unique values.
 
 - 
getUniqueValues
Returns the set of unique values.- Returns:
 - the set of unique values.
 
 - 
getChipValue
Returns the data value for a chip.- Parameters:
 chipx- the x-index.chipy- the y-index.- Returns:
 - the data value.
 
 - 
getChipValue
Returns the value for a given chip x and y or null.- Parameters:
 chipx- the x-index.chipy- the y-index.- Returns:
 - the data value.
 
 - 
isMaxValue
Tests to see if the passed value is larger than the stored maxvalue.- Parameters:
 check- the number to check.- Returns:
 - true or false.
 
 - 
isMinValue
Tests to see if the passed value is smaller than the stored minvalue.- Parameters:
 check- the number to check.- Returns:
 - true or false.
 
 - 
getMaxValue
Returns the maximum value stored in the dataset.- Returns:
 - the maximum value.
 
 - 
getMinValue
Returns the minimum value stored in the dataset.- Returns:
 - the minimum value.
 
 - 
getMaxChipX
public int getMaxChipX()Returns the wafer x-dimension.- Returns:
 - the number of chips in the x-dimension.
 
 - 
setMaxChipX
public void setMaxChipX(int maxChipX)Sets wafer x dimension.- Parameters:
 maxChipX- the number of chips in the x-dimension.
 - 
getMaxChipY
public int getMaxChipY()Returns the number of chips in the y-dimension.- Returns:
 - the number of chips.
 
 - 
setMaxChipY
public void setMaxChipY(int maxChipY)Sets the number of chips in the y-dimension.- Parameters:
 maxChipY- the number of chips.
 - 
getChipSpace
public double getChipSpace()Returns the space to draw between chips.- Returns:
 - the space.
 
 - 
setChipSpace
public void setChipSpace(double space)Sets the space to draw between chips.- Parameters:
 space- the space.
 
 -