Enum Class CaptureMode

java.lang.Object
java.lang.Enum<CaptureMode>
io.klib.swtbot.support.CaptureMode
All Implemented Interfaces:
Serializable, Comparable<CaptureMode>, Constable

public enum CaptureMode extends Enum<CaptureMode>
Selects the captured pixel region; screen-based modes can expose private content.
  • Enum Constant Details

    • DESKTOP

      public static final CaptureMode DESKTOP
      Captures display bounds, potentially including other applications and monitors.
    • SHELL_CLIENT_AREA

      public static final CaptureMode SHELL_CLIENT_AREA
      Captures the shell client area directly, excluding window decorations.
    • SHELL_DISPLAY_BOUNDS

      public static final CaptureMode SHELL_DISPLAY_BOUNDS
      Captures the shell's display rectangle, including decorations and possible occlusion.
  • Method Details

    • values

      public static CaptureMode[] 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

      public static CaptureMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • suffix

      public String suffix()
      Returns the artifact label for this region.
      Returns:
      the stable artifact label: screen, shell, or swt