Package com.applitools.eyes
Class ImageMatchSettings
- java.lang.Object
-
- com.applitools.eyes.ImageMatchSettings
-
public class ImageMatchSettings extends Object
Encapsulates match settings for the session.
-
-
Field Summary
Fields Modifier and Type Field Description booleanenablePatternsbooleanignoreDisplacements
-
Constructor Summary
Constructors Constructor Description ImageMatchSettings()ImageMatchSettings(ImageMatchSettings other)ImageMatchSettings(MatchLevel matchLevel, ExactMatchSettings exact, boolean useDom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessibilityRegionByRectangle[]getAccessibility()AccessibilitySettingsgetAccessibilitySettings()com.applitools.eyes.Region[]getContentRegions()Returns the array of regions to check using the Content method.ExactMatchSettingsgetExact()FloatingMatchSettings[]getFloatingRegions()Returns an array of floating regions.BooleangetIgnoreCaret()com.applitools.eyes.Region[]getIgnoreRegions()Returns the array of regions to ignore.com.applitools.eyes.Region[]getLayoutRegions()Returns the array of regions to check using the Layout method.MatchLevelgetMatchLevel()com.applitools.eyes.Region[]getStrictRegions()Returns the array of regions to check using the Strict method.booleanisEnablePatterns()booleanisIgnoreDisplacements()booleanisUseDom()voidsetAccessibility(AccessibilityRegionByRectangle[] accessibilityValidation)voidsetAccessibilitySettings(AccessibilitySettings accessibilitySettings)voidsetContentRegions(com.applitools.eyes.Region[] contentRegions)Sets an array of regions to check using the Content method.voidsetEnablePatterns(boolean enablePatterns)voidsetExact(ExactMatchSettings exact)voidsetFloatingRegions(FloatingMatchSettings[] floatingRegions)Sets an array of floating regions.voidsetIgnoreCaret(Boolean ignoreCaret)voidsetIgnoreDisplacements(boolean ignoreDisplacements)voidsetIgnoreRegions(com.applitools.eyes.Region[] ignoreRegions)Sets an array of regions to ignore.voidsetLayoutRegions(com.applitools.eyes.Region[] layoutRegions)Sets an array of regions to check using the Layout method.voidsetMatchLevel(MatchLevel matchLevel)voidsetStrictRegions(com.applitools.eyes.Region[] strictRegions)Sets an array of regions to check using the Strict method.voidsetUseDom(boolean useDom)StringtoString()
-
-
-
Constructor Detail
-
ImageMatchSettings
public ImageMatchSettings(MatchLevel matchLevel, ExactMatchSettings exact, boolean useDom)
-
ImageMatchSettings
public ImageMatchSettings()
SeeImageMatchSettings(MatchLevel, ExactMatchSettings, boolean).matchLeveldefaults toSTRICT,exactdefaults tonull.
-
ImageMatchSettings
public ImageMatchSettings(ImageMatchSettings other)
-
-
Method Detail
-
getMatchLevel
public MatchLevel getMatchLevel()
- Returns:
- The "strictness" level of the match.
-
setMatchLevel
public void setMatchLevel(MatchLevel matchLevel)
- Parameters:
matchLevel- The "strictness" level of the match.
-
getExact
public ExactMatchSettings getExact()
- Returns:
- The parameters for the "Exact" match settings.
-
setExact
public void setExact(ExactMatchSettings exact)
- Parameters:
exact- The parameters for the "exact" match settings.
-
getIgnoreCaret
public Boolean getIgnoreCaret()
- Returns:
- The parameters for the "IgnoreCaret" match settings.
-
isUseDom
public boolean isUseDom()
-
setUseDom
public void setUseDom(boolean useDom)
-
setIgnoreRegions
public void setIgnoreRegions(com.applitools.eyes.Region[] ignoreRegions)
Sets an array of regions to ignore.- Parameters:
ignoreRegions- The array of regions to ignore.
-
setLayoutRegions
public void setLayoutRegions(com.applitools.eyes.Region[] layoutRegions)
Sets an array of regions to check using the Layout method.- Parameters:
layoutRegions- The array of regions to ignore.
-
setStrictRegions
public void setStrictRegions(com.applitools.eyes.Region[] strictRegions)
Sets an array of regions to check using the Strict method.- Parameters:
strictRegions- The array of regions to ignore.
-
setContentRegions
public void setContentRegions(com.applitools.eyes.Region[] contentRegions)
Sets an array of regions to check using the Content method.- Parameters:
contentRegions- The array of regions to ignore.
-
getIgnoreRegions
public com.applitools.eyes.Region[] getIgnoreRegions()
Returns the array of regions to ignore.- Returns:
- the array of regions to ignore.
-
getStrictRegions
public com.applitools.eyes.Region[] getStrictRegions()
Returns the array of regions to check using the Strict method.- Returns:
- the array of regions to check using the Strict method.
-
getLayoutRegions
public com.applitools.eyes.Region[] getLayoutRegions()
Returns the array of regions to check using the Layout method.- Returns:
- the array of regions to check using the Layout method.
-
getContentRegions
public com.applitools.eyes.Region[] getContentRegions()
Returns the array of regions to check using the Content method.- Returns:
- the array of regions to check using the Content method.
-
setFloatingRegions
public void setFloatingRegions(FloatingMatchSettings[] floatingRegions)
Sets an array of floating regions.- Parameters:
floatingRegions- The array of floating regions.
-
getFloatingRegions
public FloatingMatchSettings[] getFloatingRegions()
Returns an array of floating regions.- Returns:
- an array of floating regions.
-
setIgnoreCaret
public void setIgnoreCaret(Boolean ignoreCaret)
- Parameters:
ignoreCaret- The parameters for the "ignoreCaret" match settings.
-
isEnablePatterns
public boolean isEnablePatterns()
-
setEnablePatterns
public void setEnablePatterns(boolean enablePatterns)
-
setIgnoreDisplacements
public void setIgnoreDisplacements(boolean ignoreDisplacements)
-
isIgnoreDisplacements
public boolean isIgnoreDisplacements()
-
setAccessibility
public void setAccessibility(AccessibilityRegionByRectangle[] accessibilityValidation)
-
getAccessibilitySettings
public AccessibilitySettings getAccessibilitySettings()
-
setAccessibilitySettings
public void setAccessibilitySettings(AccessibilitySettings accessibilitySettings)
-
getAccessibility
public AccessibilityRegionByRectangle[] getAccessibility()
-
-