org.netbeans.jemmy.image
Class ColorImageComparator.BackgroundColorMap
java.lang.Object
org.netbeans.jemmy.image.ColorImageComparator.BackgroundColorMap
- All Implemented Interfaces:
- ColorImageComparator.ColorMap
- Enclosing class:
- ColorImageComparator
public static class ColorImageComparator.BackgroundColorMap
- extends Object
- implements ColorImageComparator.ColorMap
Turns background
color to black, left others unchanged.
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.BackgroundColorMap
public ColorImageComparator.BackgroundColorMap(int background)
- Constructs a ColorImageComparator$BackgroundColorMap object.
- Parameters:
background
- Background 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.