org.netbeans.jemmy.image
Class ColorImageComparator.ForegroundColorMap

java.lang.Object
  extended by org.netbeans.jemmy.image.ColorImageComparator.ForegroundColorMap
All Implemented Interfaces:
ColorImageComparator.ColorMap
Enclosing class:
ColorImageComparator

public static class ColorImageComparator.ForegroundColorMap
extends java.lang.Object
implements ColorImageComparator.ColorMap

Turns foreground color to white, other - to black.


Constructor Summary
ColorImageComparator.ForegroundColorMap(int foreground)
          Constructs a ColorImageComparator$ForegroundColorMap object.
 
Method Summary
 int mapColor(int rgb)
          Maps one color into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorImageComparator.ForegroundColorMap

public ColorImageComparator.ForegroundColorMap(int foreground)
Constructs a ColorImageComparator$ForegroundColorMap object.

Parameters:
foreground - Foreground color.
Method Detail

mapColor

public int mapColor(int rgb)
Description copied from interface: ColorImageComparator.ColorMap
Maps one color into another.

Specified by:
mapColor in interface ColorImageComparator.ColorMap
Parameters:
rgb - an original color.
Returns:
a converted color.