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.
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 |
ColorImageComparator.ForegroundColorMap
public ColorImageComparator.ForegroundColorMap(int foreground)
- Constructs a ColorImageComparator$ForegroundColorMap object.
- Parameters:
foreground
- Foreground color.
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.