Package org.jfree.data.general
Class WaferMapDataset
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.WaferMapDataset
- All Implemented Interfaces:
ObjectInputValidation
,Serializable
,Cloneable
,Dataset
A dataset that can be used with the
WaferMapPlot
class.- See Also:
-
Constructor Summary
ConstructorDescriptionWaferMapDataset
(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 TypeMethodDescriptionvoid
addValue
(int v, int x, int y) Adds a value to the dataset.void
addValue
(Number value, Comparable chipx, Comparable chipy) Sets a value in the dataset.double
Returns the space to draw between chips.getChipValue
(int chipx, int chipy) Returns the data value for a chip.getChipValue
(Comparable chipx, Comparable chipy) Returns the value for a given chip x and y or null.int
Returns the wafer x-dimension.int
Returns the number of chips in the y-dimension.Returns the maximum value stored in the dataset.Returns the minimum value stored in the dataset.int
Returns the number of unique values.Returns the set of unique values.boolean
isMaxValue
(Number check) Tests to see if the passed value is larger than the stored maxvalue.boolean
isMinValue
(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
(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.general.AbstractDataset
addChangeListener, canEqual, clone, equals, fireDatasetChanged, getGroup, getNotify, hashCode, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
-
Constructor Details
-
WaferMapDataset
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
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
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:
- A boolean.
-
isMinValue
Tests to see if the passed value is smaller than the stored minvalue.- Parameters:
check
- the number to check.- Returns:
- A boolean.
-
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
Returns the wafer x-dimension.- Returns:
- The number of chips in the x-dimension.
-
setMaxChipX
Sets wafer x dimension.- Parameters:
maxChipX
- the number of chips in the x-dimension.
-
getMaxChipY
Returns the number of chips in the y-dimension.- Returns:
- The number of chips.
-
setMaxChipY
Sets the number of chips in the y-dimension.- Parameters:
maxChipY
- the number of chips.
-
getChipSpace
Returns the space to draw between chips.- Returns:
- The space.
-
setChipSpace
Sets the space to draw between chips.- Parameters:
space
- the space.
-