Package org.netbeans.jemmy.image
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.-
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.ColorMap
Maps one color into another.- Specified by:
mapColor
in interfaceColorImageComparator.ColorMap
- Parameters:
rgb
- an original color.- Returns:
- a converted color.
-