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.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundColorMap(int background) Constructs a ColorImageComparator$BackgroundColorMap object. -
Method Summary
-
Constructor Details
-
BackgroundColorMap
public BackgroundColorMap(int background) Constructs a ColorImageComparator$BackgroundColorMap object.- Parameters:
background- Background 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.
-