Class ColorImageComparator.ForegroundColorMap
java.lang.Object
org.netbeans.jemmy.image.ColorImageComparator.ForegroundColorMap
- All Implemented Interfaces:
ColorImageComparator.ColorMap
- Enclosing class:
ColorImageComparator
public static class ColorImageComparator.ForegroundColorMap
extends Object
implements ColorImageComparator.ColorMap
Turns
foreground color to white, other - to black.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Constructor Summary
ConstructorsConstructorDescriptionForegroundColorMap(int foreground) Constructs a ColorImageComparator$ForegroundColorMap object. -
Method Summary
-
Constructor Details
-
ForegroundColorMap
public ForegroundColorMap(int foreground) Constructs a ColorImageComparator$ForegroundColorMap object.- Parameters:
foreground- Foreground color.
-
-
Method Details
-
mapColor
public int mapColor(int rgb) Description copied from interface:ColorImageComparator.ColorMapMaps one color into another.- Specified by:
mapColorin interfaceColorImageComparator.ColorMap- Parameters:
rgb- an original color.- Returns:
- a converted color.
-