public abstract class java.awt.GraphicsDevice
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.awt.GraphicsDevice
super_class: java.lang.Object
{
private java.awt.Window fullScreenWindow;
descriptor: Ljava/awt/Window;
flags: (0x0002) ACC_PRIVATE
private sun.awt.AppContext fullScreenAppContext;
descriptor: Lsun/awt/AppContext;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object fsAppContextLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.awt.Rectangle windowedModeBounds;
descriptor: Ljava/awt/Rectangle;
flags: (0x0002) ACC_PRIVATE
public static final int TYPE_RASTER_SCREEN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int TYPE_PRINTER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int TYPE_IMAGE_BUFFER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static volatile int[] $SWITCH_TABLE$java$awt$GraphicsDevice$WindowTranslucency;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.awt.GraphicsDevice.fsAppContextLock:Ljava/lang/Object;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/GraphicsDevice;
public abstract int getType();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.lang.String getIDstring();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.awt.GraphicsConfiguration[] getConfigurations();
descriptor: ()[Ljava/awt/GraphicsConfiguration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.awt.GraphicsConfiguration getDefaultConfiguration();
descriptor: ()Ljava/awt/GraphicsConfiguration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfigTemplate);
descriptor: (Ljava/awt/GraphicsConfigTemplate;)Ljava/awt/GraphicsConfiguration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.GraphicsDevice.getConfigurations:()[Ljava/awt/GraphicsConfiguration;
astore 2
start local 2 1: aload 1
aload 2
invokevirtual java.awt.GraphicsConfigTemplate.getBestConfiguration:([Ljava/awt/GraphicsConfiguration;)Ljava/awt/GraphicsConfiguration;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/GraphicsDevice;
0 2 1 gct Ljava/awt/GraphicsConfigTemplate;
1 2 2 configs [Ljava/awt/GraphicsConfiguration;
MethodParameters:
Name Flags
gct
public boolean isFullScreenSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GraphicsDevice;
public void setFullScreenWindow(java.awt.Window);
descriptor: (Ljava/awt/Window;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 15
1: aload 1
invokevirtual java.awt.Window.getShape:()Ljava/awt/Shape;
ifnull 3
2: aload 1
aconst_null
invokevirtual java.awt.Window.setShape:(Ljava/awt/Shape;)V
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Window.getOpacity:()F
fconst_1
fcmpg
ifge 5
4: aload 1
fconst_1
invokevirtual java.awt.Window.setOpacity:(F)V
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Window.isOpaque:()Z
ifne 11
6: aload 1
invokevirtual java.awt.Window.getBackground:()Ljava/awt/Color;
astore 2
start local 2 7: new java.awt.Color
dup
aload 2
invokevirtual java.awt.Color.getRed:()I
aload 2
invokevirtual java.awt.Color.getGreen:()I
8: aload 2
invokevirtual java.awt.Color.getBlue:()I
sipush 255
9: invokespecial java.awt.Color.<init>:(IIII)V
astore 2
10: aload 1
aload 2
invokevirtual java.awt.Window.setBackground:(Ljava/awt/Color;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Window.getGraphicsConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 2
start local 2 12: aload 2
ifnull 15
aload 2
invokevirtual java.awt.GraphicsConfiguration.getDevice:()Ljava/awt/GraphicsDevice;
aload 0
if_acmpeq 15
13: aload 2
invokevirtual java.awt.GraphicsConfiguration.getDevice:()Ljava/awt/GraphicsDevice;
invokevirtual java.awt.GraphicsDevice.getFullScreenWindow:()Ljava/awt/Window;
aload 1
if_acmpne 15
14: aload 2
invokevirtual java.awt.GraphicsConfiguration.getDevice:()Ljava/awt/GraphicsDevice;
aconst_null
invokevirtual java.awt.GraphicsDevice.setFullScreenWindow:(Ljava/awt/Window;)V
end local 2 15: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
ifnull 19
aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
ifnull 19
16: aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
ifne 17
aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
iconst_1
putfield java.awt.Rectangle.width:I
17: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
ifne 18
aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
iconst_1
putfield java.awt.Rectangle.height:I
18: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
aload 0
getfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
invokevirtual java.awt.Window.setBounds:(Ljava/awt/Rectangle;)V
19: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.fsAppContextLock:Ljava/lang/Object;
dup
astore 2
monitorenter
20: aload 1
ifnonnull 23
21: aload 0
aconst_null
putfield java.awt.GraphicsDevice.fullScreenAppContext:Lsun/awt/AppContext;
22: goto 24
23: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
putfield java.awt.GraphicsDevice.fullScreenAppContext:Lsun/awt/AppContext;
24: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
25: aload 2
monitorexit
26: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
27: aload 2
monitorexit
28: athrow
29: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
ifnull 40
30: aload 0
aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
invokevirtual java.awt.Window.getBounds:()Ljava/awt/Rectangle;
putfield java.awt.GraphicsDevice.windowedModeBounds:Ljava/awt/Rectangle;
31: aload 0
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 2
start local 2 32: aload 2
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
astore 3
start local 3 33: aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
invokestatic sun.awt.SunToolkit.isDispatchThreadForAppContext:(Ljava/lang/Object;)Z
ifeq 35
34: aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
aload 2
invokevirtual java.awt.Window.setGraphicsConfiguration:(Ljava/awt/GraphicsConfiguration;)V
35: StackMap locals: java.awt.GraphicsConfiguration java.awt.Rectangle
StackMap stack:
aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
36: aload 3
getfield java.awt.Rectangle.width:I
aload 3
getfield java.awt.Rectangle.height:I
37: invokevirtual java.awt.Window.setBounds:(IIII)V
38: aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
iconst_1
invokevirtual java.awt.Window.setVisible:(Z)V
39: aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
invokevirtual java.awt.Window.toFront:()V
end local 3 end local 2 40: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Ljava/awt/GraphicsDevice;
0 41 1 w Ljava/awt/Window;
7 11 2 bgColor Ljava/awt/Color;
12 15 2 gc Ljava/awt/GraphicsConfiguration;
32 40 2 gc Ljava/awt/GraphicsConfiguration;
33 40 3 screenBounds Ljava/awt/Rectangle;
Exception table:
from to target type
20 26 27 any
27 28 27 any
MethodParameters:
Name Flags
w
public java.awt.Window getFullScreenWindow();
descriptor: ()Ljava/awt/Window;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield java.awt.GraphicsDevice.fsAppContextLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
getfield java.awt.GraphicsDevice.fullScreenAppContext:Lsun/awt/AppContext;
invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
if_acmpne 4
3: aload 0
getfield java.awt.GraphicsDevice.fullScreenWindow:Ljava/awt/Window;
astore 1
4: StackMap locals: java.awt.Window java.lang.Object
StackMap stack:
aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/awt/GraphicsDevice;
1 9 1 returnWindow Ljava/awt/Window;
Exception table:
from to target type
2 5 6 any
6 7 6 any
public boolean isDisplayChangeSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GraphicsDevice;
public void setDisplayMode(java.awt.DisplayMode);
descriptor: (Ljava/awt/DisplayMode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "Cannot change display mode"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GraphicsDevice;
0 1 1 dm Ljava/awt/DisplayMode;
MethodParameters:
Name Flags
dm
public java.awt.DisplayMode getDisplayMode();
descriptor: ()Ljava/awt/DisplayMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 1
start local 1 1: aload 1
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
astore 2
start local 2 2: aload 1
invokevirtual java.awt.GraphicsConfiguration.getColorModel:()Ljava/awt/image/ColorModel;
astore 3
start local 3 3: new java.awt.DisplayMode
dup
aload 2
getfield java.awt.Rectangle.width:I
aload 2
getfield java.awt.Rectangle.height:I
aload 3
invokevirtual java.awt.image.ColorModel.getPixelSize:()I
iconst_0
invokespecial java.awt.DisplayMode.<init>:(IIII)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/GraphicsDevice;
1 4 1 gc Ljava/awt/GraphicsConfiguration;
2 4 2 r Ljava/awt/Rectangle;
3 4 3 cm Ljava/awt/image/ColorModel;
public java.awt.DisplayMode[] getDisplayModes();
descriptor: ()[Ljava/awt/DisplayMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.awt.DisplayMode
dup
iconst_0
aload 0
invokevirtual java.awt.GraphicsDevice.getDisplayMode:()Ljava/awt/DisplayMode;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GraphicsDevice;
public int getAvailableAcceleratedMemory();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GraphicsDevice;
public boolean isWindowTranslucencySupported(java.awt.GraphicsDevice$WindowTranslucency);
descriptor: (Ljava/awt/GraphicsDevice$WindowTranslucency;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic java.awt.GraphicsDevice.$SWITCH_TABLE$java$awt$GraphicsDevice$WindowTranslucency:()[I
aload 1
invokevirtual java.awt.GraphicsDevice$WindowTranslucency.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 2
3: 3
default: 4
}
1: StackMap locals:
StackMap stack:
invokestatic java.awt.GraphicsDevice.isWindowShapingSupported:()Z
ireturn
2: StackMap locals:
StackMap stack:
invokestatic java.awt.GraphicsDevice.isWindowOpacitySupported:()Z
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.awt.GraphicsDevice.isWindowPerpixelTranslucencySupported:()Z
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/awt/GraphicsDevice;
0 5 1 translucencyKind Ljava/awt/GraphicsDevice$WindowTranslucency;
MethodParameters:
Name Flags
translucencyKind
static boolean isWindowShapingSupported();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
astore 0
start local 0 1: aload 0
instanceof sun.awt.SunToolkit
ifne 3
2: iconst_0
ireturn
3: StackMap locals: java.awt.Toolkit
StackMap stack:
aload 0
checkcast sun.awt.SunToolkit
invokevirtual sun.awt.SunToolkit.isWindowShapingSupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 curToolkit Ljava/awt/Toolkit;
static boolean isWindowOpacitySupported();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
astore 0
start local 0 1: aload 0
instanceof sun.awt.SunToolkit
ifne 3
2: iconst_0
ireturn
3: StackMap locals: java.awt.Toolkit
StackMap stack:
aload 0
checkcast sun.awt.SunToolkit
invokevirtual sun.awt.SunToolkit.isWindowOpacitySupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 curToolkit Ljava/awt/Toolkit;
boolean isWindowPerpixelTranslucencySupported();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
astore 1
start local 1 1: aload 1
instanceof sun.awt.SunToolkit
ifne 3
2: iconst_0
ireturn
3: StackMap locals: java.awt.Toolkit
StackMap stack:
aload 1
checkcast sun.awt.SunToolkit
invokevirtual sun.awt.SunToolkit.isWindowTranslucencySupported:()Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.awt.GraphicsDevice.getTranslucencyCapableGC:()Ljava/awt/GraphicsConfiguration;
ifnull 6
iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/awt/GraphicsDevice;
1 7 1 curToolkit Ljava/awt/Toolkit;
java.awt.GraphicsConfiguration getTranslucencyCapableGC();
descriptor: ()Ljava/awt/GraphicsConfiguration;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 1
start local 1 1: aload 1
invokevirtual java.awt.GraphicsConfiguration.isTranslucencyCapable:()Z
ifeq 3
2: aload 1
areturn
3: StackMap locals: java.awt.GraphicsConfiguration
StackMap stack:
aload 0
invokevirtual java.awt.GraphicsDevice.getConfigurations:()[Ljava/awt/GraphicsConfiguration;
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 9
6: StackMap locals: java.awt.GraphicsConfiguration[] int
StackMap stack:
aload 2
iload 3
aaload
invokevirtual java.awt.GraphicsConfiguration.isTranslucencyCapable:()Z
ifeq 8
7: aload 2
iload 3
aaload
areturn
8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 10: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/awt/GraphicsDevice;
1 11 1 defaultGC Ljava/awt/GraphicsConfiguration;
4 11 2 configs [Ljava/awt/GraphicsConfiguration;
5 10 3 j I
static int[] $SWITCH_TABLE$java$awt$GraphicsDevice$WindowTranslucency();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic java.awt.GraphicsDevice.$SWITCH_TABLE$java$awt$GraphicsDevice$WindowTranslucency:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic java.awt.GraphicsDevice$WindowTranslucency.values:()[Ljava/awt/GraphicsDevice$WindowTranslucency;
arraylength
newarray 10
astore 0
2: aload 0
getstatic java.awt.GraphicsDevice$WindowTranslucency.PERPIXEL_TRANSLUCENT:Ljava/awt/GraphicsDevice$WindowTranslucency;
invokevirtual java.awt.GraphicsDevice$WindowTranslucency.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic java.awt.GraphicsDevice$WindowTranslucency.PERPIXEL_TRANSPARENT:Ljava/awt/GraphicsDevice$WindowTranslucency;
invokevirtual java.awt.GraphicsDevice$WindowTranslucency.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic java.awt.GraphicsDevice$WindowTranslucency.TRANSLUCENT:Ljava/awt/GraphicsDevice$WindowTranslucency;
invokevirtual java.awt.GraphicsDevice$WindowTranslucency.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic java.awt.GraphicsDevice.$SWITCH_TABLE$java$awt$GraphicsDevice$WindowTranslucency:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
SourceFile: "GraphicsDevice.java"
NestMembers:
java.awt.GraphicsDevice$WindowTranslucency
InnerClasses:
public final WindowTranslucency = java.awt.GraphicsDevice$WindowTranslucency of java.awt.GraphicsDevice