Enum Class Translucency

java.lang.Object
java.lang.Enum<Translucency>
ch.swingfx.window.translucentandshaped.Translucency
All Implemented Interfaces:
Serializable, Comparable<Translucency>, Constable

public enum Translucency extends Enum<Translucency>
This enum is used in combination with ITranslucentAndShapedWindowApi.isTranslucencySupported()
  • Enum Constant Details

    • PERPIXEL_TRANSPARENT

      public static final Translucency PERPIXEL_TRANSPARENT
      shaping
    • TRANSLUCENT

      public static final Translucency TRANSLUCENT
      simple translucency (everything or nothing)
    • PERPIXEL_TRANSLUCENT

      public static final Translucency PERPIXEL_TRANSLUCENT
      per-pixel translucency (example: Only window but not the button).
      check with isTranslucencyCapable(gc)
  • Constructor Details

    • Translucency

      private Translucency()
  • Method Details

    • values

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