Class WaferMapRenderer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class WaferMapRenderer
    extends AbstractRenderer
    A renderer for wafer map plots. Provides color management facilities.
    See Also:
    Serialized Form
    • Field Detail

      • paintIndex

        private java.util.Map paintIndex
        paint index
      • paintLimit

        private int paintLimit
        paint limit
      • DEFAULT_PAINT_LIMIT

        private static final int DEFAULT_PAINT_LIMIT
        default paint limit
        See Also:
        Constant Field Values
      • POSITION_INDEX

        public static final int POSITION_INDEX
        default multivalue paint calculation
        See Also:
        Constant Field Values
      • VALUE_INDEX

        public static final int VALUE_INDEX
        The default value index.
        See Also:
        Constant Field Values
      • paintIndexMethod

        private int paintIndexMethod
        paint index method
    • Constructor Detail

      • WaferMapRenderer

        public WaferMapRenderer()
        Creates a new renderer.
      • WaferMapRenderer

        public WaferMapRenderer​(int paintLimit,
                                int paintIndexMethod)
        Creates a new renderer.
        Parameters:
        paintLimit - the paint limit.
        paintIndexMethod - the paint index method.
      • WaferMapRenderer

        public WaferMapRenderer​(java.lang.Integer paintLimit,
                                java.lang.Integer paintIndexMethod)
        Creates a new renderer.
        Parameters:
        paintLimit - the paint limit.
        paintIndexMethod - the paint index method.
    • Method Detail

      • isMethodValid

        private boolean isMethodValid​(int method)
        Verifies that the passed paint index method is valid.
        Parameters:
        method - the method.
        Returns:
        true or false.
      • getPlot

        public WaferMapPlot getPlot()
        Returns the plot.
        Returns:
        The plot.
      • setPlot

        public void setPlot​(WaferMapPlot plot)
        Sets the plot and build the paint index.
        Parameters:
        plot - the plot.
      • getChipColor

        public java.awt.Paint getChipColor​(java.lang.Number value)
        Returns the paint for a given chip value.
        Parameters:
        value - the value.
        Returns:
        The paint.
      • getPaintIndex

        private int getPaintIndex​(java.lang.Number value)
        Returns the paint index for a given chip value.
        Parameters:
        value - the value.
        Returns:
        The paint index.
      • makePaintIndex

        private void makePaintIndex()
        Builds a map of chip values to paint colors. paintlimit is the maximum allowed number of colors.
      • makePositionIndex

        private void makePositionIndex​(java.util.Set uniqueValues)
        Builds the paintindex by assigning colors based on the number of unique values: totalvalues/totalcolors.
        Parameters:
        uniqueValues - the set of unique values.
      • makeValueIndex

        private void makeValueIndex​(java.lang.Number max,
                                    java.lang.Number min,
                                    java.util.Set uniqueValues)
        Builds the paintindex by assigning colors evenly across the range of values: maxValue-minValue/totalcolors
        Parameters:
        max - the maximum value.
        min - the minumum value.
        uniqueValues - the unique values.
      • getLegendCollection

        public LegendItemCollection getLegendCollection()
        Builds the list of legend entries. called by getLegendItems in WaferMapPlot to populate the plot legend.
        Returns:
        The legend items.
      • getMinPaintValue

        private java.lang.Number getMinPaintValue​(java.lang.Integer index)
        Returns the minimum chip value assigned to a color in the paintIndex
        Parameters:
        index - the index.
        Returns:
        The value.
      • getMaxPaintValue

        private java.lang.Number getMaxPaintValue​(java.lang.Integer index)
        Returns the maximum chip value assigned to a color in the paintIndex
        Parameters:
        index - the index.
        Returns:
        The value