public class WaferMapDataset extends AbstractDataset
WaferMapPlot
class.Constructor and Description |
---|
WaferMapDataset(int maxChipX,
int maxChipY)
Creates a new dataset using the default chipspace.
|
WaferMapDataset(int maxChipX,
int maxChipY,
java.lang.Number chipSpace)
Creates a new dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(int v,
int x,
int y)
Adds a value to the dataset.
|
void |
addValue(java.lang.Number value,
java.lang.Comparable chipx,
java.lang.Comparable chipy)
Sets a value in the dataset.
|
double |
getChipSpace()
Returns the space to draw between chips.
|
java.lang.Number |
getChipValue(java.lang.Comparable chipx,
java.lang.Comparable chipy)
Returns the value for a given chip x and y or null.
|
java.lang.Number |
getChipValue(int chipx,
int chipy)
Returns the data value for a chip.
|
int |
getMaxChipX()
Returns the wafer x-dimension.
|
int |
getMaxChipY()
Returns the number of chips in the y-dimension.
|
java.lang.Number |
getMaxValue()
Returns the maximum value stored in the dataset.
|
java.lang.Number |
getMinValue()
Returns the minimum value stored in the dataset.
|
int |
getUniqueValueCount()
Returns the number of unique values.
|
java.util.Set |
getUniqueValues()
Returns the set of unique values.
|
boolean |
isMaxValue(java.lang.Number check)
Tests to see if the passed value is larger than the stored maxvalue.
|
boolean |
isMinValue(java.lang.Number check)
Tests to see if the passed value is smaller than the stored minvalue.
|
void |
setChipSpace(double space)
Sets the space to draw between chips.
|
void |
setMaxChipX(int maxChipX)
Sets wafer x dimension.
|
void |
setMaxChipY(int maxChipY)
Sets the number of chips in the y-dimension.
|
void |
setValue(java.lang.Number value,
java.lang.Comparable chipx,
java.lang.Comparable chipy)
Sets a value in the dataset and updates min and max value entries.
|
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
public WaferMapDataset(int maxChipX, int maxChipY)
maxChipX
- the wafer x-dimension.maxChipY
- the wafer y-dimension.public WaferMapDataset(int maxChipX, int maxChipY, java.lang.Number chipSpace)
maxChipX
- the wafer x-dimension.maxChipY
- the wafer y-dimension.chipSpace
- the space between chips.public void addValue(java.lang.Number value, java.lang.Comparable chipx, java.lang.Comparable chipy)
value
- the value.chipx
- the x-index for the chip.chipy
- the y-index for the chip.public void addValue(int v, int x, int y)
v
- the value.x
- the x-index.y
- the y-index.public void setValue(java.lang.Number value, java.lang.Comparable chipx, java.lang.Comparable chipy)
value
- the value.chipx
- the x-index.chipy
- the y-index.public int getUniqueValueCount()
public java.util.Set getUniqueValues()
public java.lang.Number getChipValue(int chipx, int chipy)
chipx
- the x-index.chipy
- the y-index.public java.lang.Number getChipValue(java.lang.Comparable chipx, java.lang.Comparable chipy)
chipx
- the x-index.chipy
- the y-index.public boolean isMaxValue(java.lang.Number check)
check
- the number to check.public boolean isMinValue(java.lang.Number check)
check
- the number to check.public java.lang.Number getMaxValue()
public java.lang.Number getMinValue()
public int getMaxChipX()
public void setMaxChipX(int maxChipX)
maxChipX
- the number of chips in the x-dimension.public int getMaxChipY()
public void setMaxChipY(int maxChipY)
maxChipY
- the number of chips.public double getChipSpace()
public void setChipSpace(double space)
space
- the space.