模块 java.desktop
 java.awt

枚举类枚举类 GraphicsDevice.WindowTranslucency

java.lang.Object
java.lang.Enum <GraphicsDevice.WindowTranslucency >
java.awt.GraphicsDevice.WindowTranslucency
所有已实现的接口:
Serializable , Comparable<GraphicsDevice.WindowTranslucency> , Constable
封闭类:
GraphicsDevice

public static enum GraphicsDevice.WindowTranslucency extends Enum <GraphicsDevice.WindowTranslucency >
底层系统支持的半透明类型。
自从:
1.7
参见:
  • 枚举常量详细信息

    • PERPIXEL_TRANSPARENT

      public static final GraphicsDevice.WindowTranslucency  PERPIXEL_TRANSPARENT
      表示底层系统对窗口的支持,窗口的每个像素都保证完全不透明,alpha 值为 1.0,或完全透明,alpha 值为 0.0。
    • TRANSLUCENT

      public static final GraphicsDevice.WindowTranslucency  TRANSLUCENT
      表示在底层系统中支持窗口的所有像素都具有介于 0.0 和 1.0 之间或包括 0.0 和 1.0 之间的相同 alpha 值。
    • PERPIXEL_TRANSLUCENT

      public static final GraphicsDevice.WindowTranslucency  PERPIXEL_TRANSLUCENT
      表示在底层系统中支持包含或可能包含具有介于 0.0 和 1.0 之间的任意 alpha 值的像素的窗口。
  • 方法详情

    • values

      public static GraphicsDevice.WindowTranslucency [] values()
      返回一个数组,其中包含此枚举类的常量,按照它们声明的顺序排列。
      返回:
      包含此枚举类常量的数组,按照它们声明的顺序排列
    • valueOf

      public static GraphicsDevice.WindowTranslucency  valueOf(String  name)
      返回具有指定名称的此类的枚举常量。字符串必须匹配确切地用于在此类中声明枚举常量的标识符。 (不允许使用无关的空白字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      具有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果此枚举类没有具有指定名称的常量
      NullPointerException - 如果参数为空