Package org.zkoss.zul

Class WaferMapModel

All Implemented Interfaces:
Serializable, ChartModel

public class WaferMapModel extends AbstractChartModel
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:
  • 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

      public Number getValue(int x, int y)
      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

      public Object clone()
      Overrides:
      clone in class AbstractChartModel