public static enum GraphicsDevice.WindowTranslucency extends Enum<GraphicsDevice.WindowTranslucency>
Enum Constant and Description |
---|
PERPIXEL_TRANSLUCENT
表示在底层系统中支持包含或可能包含0.0和1.0之间任意α值的像素的Windows。
|
PERPIXEL_TRANSPARENT
表示对底层系统的支持,每个像素的窗口保证完全不透明,alpha值为1.0,或者完全透明,Alpha值为0.0。
|
TRANSLUCENT
表示在底层系统中对Windows的支持,其所有像素具有相同的α值,包括0.0和1.0之间。
|
Modifier and Type | Method and Description |
---|---|
static GraphicsDevice.WindowTranslucency |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static GraphicsDevice.WindowTranslucency[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final GraphicsDevice.WindowTranslucency PERPIXEL_TRANSPARENT
public static final GraphicsDevice.WindowTranslucency TRANSLUCENT
public static final GraphicsDevice.WindowTranslucency PERPIXEL_TRANSLUCENT
public static GraphicsDevice.WindowTranslucency[] values()
for (GraphicsDevice.WindowTranslucency c : GraphicsDevice.WindowTranslucency.values())
System.out.println(c);
public static GraphicsDevice.WindowTranslucency valueOf(String name)
name
- 要返回的枚举常量的名称。
IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
NullPointerException
- 如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.