Package org.zkoss.zul
Class WaferMapModel
java.lang.Object
org.zkoss.zul.AbstractChartModel
org.zkoss.zul.WaferMapModel
- All Implemented Interfaces:
Serializable,ChartModel
A semiconductor wafer map data model to be used with wafermap chart.
A value of a specified (x,y) on a wafter matrix.
- Since:
- 3.5.0
- Author:
- henrichen
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.zkoss.zul.AbstractChartModel
_listeners -
Constructor Summary
ConstructorsConstructorDescriptiondata model to be used with wafermap chart.WaferMapModel(int xsize, int ysize) data model to be used with wafermap chart.WaferMapModel(int xsize, int ysize, double space) data model to be used with wafermap chart. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(int value, int x, int y) Add a value to the given chip at (x,y) (0-based) of the wafer chip matrix.voidclear()clear the model.clone()Internal Use Only.doublegetSpace()Returns the space between chips, default to 1.getValue(int x, int y) Returns the value of the given chip at (x,y) of the wafer matrix.intgetXsize()Returns the x size of the wafer matrix.intgetYsize()Returns the y size of the wafer matrix.voidremoveValue(int x, int y) remove the value of the specified x and y.voidsetXsize(int xsize) Returns the x size of the wafer matrix.voidsetYsize(int ysize) Returns the y size of the wafer matrix.Methods inherited from class org.zkoss.zul.AbstractChartModel
addChartDataListener, fireEvent, removeChartDataListener
-
Constructor Details
-
WaferMapModel
public WaferMapModel()data model to be used with wafermap chart. -
WaferMapModel
public WaferMapModel(int xsize, int ysize) data model to be used with wafermap chart.- Parameters:
xsize- the x size of the wafer matrix.ysize- the y size of the wafer matrix.
-
WaferMapModel
public WaferMapModel(int xsize, int ysize, double space) data model to be used with wafermap chart.- Parameters:
xsize- the x size of the wafer matrix.ysize- the y size of the wafer matrix.space- the space between chips.
-
-
Method Details
-
getXsize
public int getXsize()Returns the x size of the wafer matrix. -
getYsize
public int getYsize()Returns the y size of the wafer matrix. -
setXsize
public void setXsize(int xsize) Returns the x size of the wafer matrix. -
setYsize
public void setYsize(int ysize) Returns the y size of the wafer matrix. -
getSpace
public double getSpace()Returns the space between chips, default to 1. -
getValue
Returns the value of the given chip at (x,y) of the wafer matrix.- Parameters:
x- the x index of the wafer matrix.y- the y index of the wafer matrix.- Returns:
- the value of the given chip at (x,y) of the wafer matrix.
-
addValue
public void addValue(int value, int x, int y) Add a value to the given chip at (x,y) (0-based) of the wafer chip matrix. If the given x or y is bigger than the specified matrix size, the IndexOutOfBoundsException will be thrown.- Parameters:
value- the chip value on the wafer matrix.x- the x index to specify the chip on the wafer.y- the y index to specify the chip on the wafer.
-
getEntrySet
Internal Use Only. The entrySet of the added values. -
removeValue
public void removeValue(int x, int y) remove the value of the specified x and y.- Parameters:
x- the x index of the wafer matrix.y- the y index of the wafer matrix.
-
clear
public void clear()clear the model. -
clone
- Overrides:
clonein classAbstractChartModel
-