- java.lang.Object
-
- org.testfx.service.support.impl.PixelMatcherBase
-
- org.testfx.service.support.impl.PixelMatcherRgb
-
- All Implemented Interfaces:
ColorMatcher,PixelMatcher
public class PixelMatcherRgb extends PixelMatcherBase implements PixelMatcher
-
-
Constructor Summary
Constructors Constructor Description PixelMatcherRgb()PixelMatcherRgb(double minColorDistFactor, double colorBlendFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritableImagecreateEmptyMatchImage(Image image0, Image image1)ColorcreateMatchColor(Color color0, Color color1)Creates a color that represents a match between the two images' pixels.ColorcreateNonMatchColor(Color color0, Color color1)Creates a color that represents a mismatch between the two images' pixels.booleanmatchColors(Color color0, Color color1)Returns true ifcolor0is close enough tocolor1as determined by a color distance/factor.-
Methods inherited from class org.testfx.service.support.impl.PixelMatcherBase
match
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testfx.service.support.PixelMatcher
match
-
-
-
-
Method Detail
-
matchColors
public boolean matchColors(Color color0, Color color1)
Description copied from interface:ColorMatcherReturns true ifcolor0is close enough tocolor1as determined by a color distance/factor.- Specified by:
matchColorsin interfaceColorMatcher
-
createEmptyMatchImage
public WritableImage createEmptyMatchImage(Image image0, Image image1)
Description copied from interface:PixelMatcher- Specified by:
createEmptyMatchImagein interfacePixelMatcher
-
createMatchColor
public Color createMatchColor(Color color0, Color color1)
Description copied from interface:PixelMatcherCreates a color that represents a match between the two images' pixels.- Specified by:
createMatchColorin interfacePixelMatcher
-
createNonMatchColor
public Color createNonMatchColor(Color color0, Color color1)
Description copied from interface:PixelMatcherCreates a color that represents a mismatch between the two images' pixels.- Specified by:
createNonMatchColorin interfacePixelMatcher
-
-