public class CheckSettings extends Object implements ICheckSettings, ICheckSettingsInternal
| Modifier | Constructor and Description |
|---|---|
protected |
CheckSettings() |
|
CheckSettings(int timeout)
For internal use only.
|
protected |
CheckSettings(Region region) |
| Modifier and Type | Method and Description |
|---|---|
ICheckSettings |
content()
Shortcut to set the match level to
MatchLevel.CONTENT. |
ICheckSettings |
exact()
Shortcut to set the match level to
MatchLevel.EXACT. |
protected void |
floating_(Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset) |
protected void |
floating(GetFloatingRegion regionProvider) |
ICheckSettings |
floating(int maxOffset,
Region... regions)
Adds a floating region.
|
ICheckSettings |
floating(Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset)
Adds a floating region.
|
ICheckSettings |
fully()
Defines that the screenshot will contain the entire element or region, even if it's outside the view.
|
GetFloatingRegion[] |
getFloatingRegions() |
Boolean |
getIgnoreCaret() |
GetRegion[] |
getIgnoreRegions() |
MatchLevel |
getMatchLevel() |
boolean |
getStitchContent() |
Region |
getTargetRegion() |
int |
getTimeout() |
protected void |
ignore(GetRegion regionProvider) |
ICheckSettings |
ignore(Region... regions)
Adds one or more ignore regions.
|
protected void |
ignore(Region region) |
ICheckSettings |
ignoreCaret()
Defines to ignore a blinking caret in the screenshot.
|
ICheckSettings |
ignoreCaret(boolean ignoreCaret)
Defines if to detect and ignore a blinking caret in the screenshot.
|
ICheckSettings |
layout()
Shortcut to set the match level to
MatchLevel.LAYOUT. |
ICheckSettings |
matchLevel(MatchLevel matchLevel)
Set the match level by which to compare the screenshot.
|
ICheckSettings |
strict()
Shortcut to set the match level to
MatchLevel.STRICT. |
ICheckSettings |
timeout(int timeoutMilliseconds)
Defines the timeout to use when acquiring and comparing screenshots.
|
protected void |
updateTargetRegion(Region region) |
protected CheckSettings()
protected CheckSettings(Region region)
public CheckSettings(int timeout)
timeout - timeoutprotected void ignore(Region region)
protected void ignore(GetRegion regionProvider)
protected void floating_(Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset)
protected void floating(GetFloatingRegion regionProvider)
public ICheckSettings ignore(Region... regions)
ignore in interface ICheckSettingsregions - One or more regions to ignore when validating the screenshot.public ICheckSettings fully()
fully in interface ICheckSettingspublic ICheckSettings floating(int maxOffset, Region... regions)
floating in interface ICheckSettingsmaxOffset - How much each of the content rectangles can move in any direction.regions - One or more content rectangles.public ICheckSettings floating(Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset)
floating in interface ICheckSettingsregion - The content rectangle.maxUpOffset - How much the content can move up.maxDownOffset - How much the content can move down.maxLeftOffset - How much the content can move to the left.maxRightOffset - How much the content can move to the right.public ICheckSettings timeout(int timeoutMilliseconds)
timeout in interface ICheckSettingstimeoutMilliseconds - The timeout to use in milliseconds.public ICheckSettings layout()
MatchLevel.LAYOUT.layout in interface ICheckSettingspublic ICheckSettings exact()
MatchLevel.EXACT.exact in interface ICheckSettingspublic ICheckSettings strict()
MatchLevel.STRICT.strict in interface ICheckSettingspublic ICheckSettings content()
MatchLevel.CONTENT.content in interface ICheckSettingspublic ICheckSettings matchLevel(MatchLevel matchLevel)
matchLevel in interface ICheckSettingsmatchLevel - The match level to use.public ICheckSettings ignoreCaret(boolean ignoreCaret)
ignoreCaret in interface ICheckSettingsignoreCaret - Whether or not to detect and ignore a blinking caret in the screenshot.public ICheckSettings ignoreCaret()
ignoreCaret in interface ICheckSettingspublic Region getTargetRegion()
getTargetRegion in interface ICheckSettingsInternalpublic int getTimeout()
getTimeout in interface ICheckSettingsInternalpublic boolean getStitchContent()
getStitchContent in interface ICheckSettingsInternalpublic MatchLevel getMatchLevel()
getMatchLevel in interface ICheckSettingsInternalpublic GetRegion[] getIgnoreRegions()
getIgnoreRegions in interface ICheckSettingsInternalpublic GetFloatingRegion[] getFloatingRegions()
getFloatingRegions in interface ICheckSettingsInternalpublic Boolean getIgnoreCaret()
getIgnoreCaret in interface ICheckSettingsInternalprotected void updateTargetRegion(Region region)
Copyright © 2017. All rights reserved.