Package io.klib.swtbot.support
Enum Class CaptureMode
- All Implemented Interfaces:
Serializable,Comparable<CaptureMode>,Constable
Selects the captured pixel region; screen-based modes can expose private content.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCaptures display bounds, potentially including other applications and monitors.Captures the shell client area directly, excluding window decorations.Captures the shell's display rectangle, including decorations and possible occlusion. -
Method Summary
Modifier and TypeMethodDescriptionsuffix()Returns the artifact label for this region.static CaptureModeReturns the enum constant of this class with the specified name.static CaptureMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DESKTOP
Captures display bounds, potentially including other applications and monitors. -
SHELL_CLIENT_AREA
Captures the shell client area directly, excluding window decorations. -
SHELL_DISPLAY_BOUNDS
Captures the shell's display rectangle, including decorations and possible occlusion.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
suffix
Returns the artifact label for this region.- Returns:
- the stable artifact label: screen, shell, or swt
-