public class sun.awt.Win32GraphicsEnvironment extends sun.java2d.SunGraphicsEnvironment
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.Win32GraphicsEnvironment
super_class: sun.java2d.SunGraphicsEnvironment
{
private static boolean displayInitialized;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.util.ArrayList<java.lang.ref.WeakReference<sun.awt.Win32GraphicsDevice>> oldDevices;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Ljava/lang/ref/WeakReference<Lsun/awt/Win32GraphicsDevice;>;>;
private static volatile boolean isDWMCompositionEnabled;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/awt/Win32GraphicsEnvironment;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.awt.Win32GraphicsEnvironment.$assertionsDisabled:Z
3: invokestatic sun.awt.windows.WToolkit.loadLibraries:()V
4: invokestatic sun.java2d.windows.WindowsFlags.initFlags:()V
5: invokestatic sun.awt.Win32GraphicsEnvironment.initDisplayWrapper:()V
6: new sun.java2d.WindowsSurfaceManagerFactory
dup
invokespecial sun.java2d.WindowsSurfaceManagerFactory.<init>:()V
invokestatic sun.java2d.SurfaceManagerFactory.setInstance:(Lsun/java2d/SurfaceManagerFactory;)V
7: return
LocalVariableTable:
Start End Slot Name Signature
private static native void initDisplay();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
public static void initDisplayWrapper();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.awt.Win32GraphicsEnvironment.displayInitialized:Z
ifne 3
1: iconst_1
putstatic sun.awt.Win32GraphicsEnvironment.displayInitialized:Z
2: invokestatic sun.awt.Win32GraphicsEnvironment.initDisplay:()V
3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.java2d.SunGraphicsEnvironment.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/Win32GraphicsEnvironment;
protected native int getNumScreens();
descriptor: ()I
flags: (0x0104) ACC_PROTECTED, ACC_NATIVE
protected native int getDefaultScreen();
descriptor: ()I
flags: (0x0104) ACC_PROTECTED, ACC_NATIVE
public java.awt.GraphicsDevice getDefaultScreenDevice();
descriptor: ()Ljava/awt/GraphicsDevice;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.Win32GraphicsEnvironment.getScreenDevices:()[Ljava/awt/GraphicsDevice;
aload 0
invokevirtual sun.awt.Win32GraphicsEnvironment.getDefaultScreen:()I
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/Win32GraphicsEnvironment;
public native int getXResolution();
descriptor: ()I
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native int getYResolution();
descriptor: ()I
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public void displayChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.Win32GraphicsEnvironment.getNumScreens:()I
anewarray java.awt.GraphicsDevice
astore 1
start local 1 1: aload 0
getfield sun.awt.Win32GraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
astore 2
start local 2 2: aload 2
ifnull 20
3: iconst_0
istore 3
start local 3 4: goto 18
5: StackMap locals: java.awt.GraphicsDevice[] java.awt.GraphicsDevice[] int
StackMap stack:
aload 0
getfield sun.awt.Win32GraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
iload 3
aaload
instanceof sun.awt.Win32GraphicsDevice
ifne 7
6: getstatic sun.awt.Win32GraphicsEnvironment.$assertionsDisabled:Z
ifne 17
new java.lang.AssertionError
dup
aload 2
iload 3
aaload
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals:
StackMap stack:
aload 2
iload 3
aaload
checkcast sun.awt.Win32GraphicsDevice
astore 4
start local 4 8: aload 4
invokevirtual sun.awt.Win32GraphicsDevice.isValid:()Z
ifne 15
9: aload 0
getfield sun.awt.Win32GraphicsEnvironment.oldDevices:Ljava/util/ArrayList;
ifnonnull 13
10: aload 0
11: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
12: putfield sun.awt.Win32GraphicsEnvironment.oldDevices:Ljava/util/ArrayList;
13: StackMap locals: sun.awt.Win32GraphicsDevice
StackMap stack:
aload 0
getfield sun.awt.Win32GraphicsEnvironment.oldDevices:Ljava/util/ArrayList;
new java.lang.ref.WeakReference
dup
aload 4
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
14: goto 17
StackMap locals:
StackMap stack:
15: iload 3
aload 1
arraylength
if_icmpge 17
16: aload 1
iload 3
aload 4
aastore
end local 4 17: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
18: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 19: aconst_null
astore 2
20: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 21: goto 25
22: StackMap locals: int
StackMap stack:
aload 1
iload 3
aaload
ifnonnull 24
23: aload 1
iload 3
aload 0
iload 3
invokevirtual sun.awt.Win32GraphicsEnvironment.makeScreenDevice:(I)Ljava/awt/GraphicsDevice;
aastore
24: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
25: iload 3
aload 1
arraylength
if_icmplt 22
end local 3 26: aload 0
aload 1
putfield sun.awt.Win32GraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
27: aload 0
getfield sun.awt.Win32GraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 32
StackMap locals: sun.awt.Win32GraphicsEnvironment java.awt.GraphicsDevice[] java.awt.GraphicsDevice[] top int int java.awt.GraphicsDevice[]
StackMap stack:
28: aload 6
iload 4
aaload
astore 3
start local 3 29: aload 3
instanceof sun.awt.DisplayChangedListener
ifeq 31
30: aload 3
checkcast sun.awt.DisplayChangedListener
invokeinterface sun.awt.DisplayChangedListener.displayChanged:()V
end local 3 31: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
32: iload 4
iload 5
if_icmplt 28
33: aload 0
getfield sun.awt.Win32GraphicsEnvironment.oldDevices:Ljava/util/ArrayList;
ifnull 45
34: aload 0
invokevirtual sun.awt.Win32GraphicsEnvironment.getDefaultScreen:()I
istore 3
start local 3 35: aload 0
getfield sun.awt.Win32GraphicsEnvironment.oldDevices:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.listIterator:()Ljava/util/ListIterator;
36: astore 4
start local 4 37: goto 44
38: StackMap locals: sun.awt.Win32GraphicsEnvironment java.awt.GraphicsDevice[] java.awt.GraphicsDevice[] int java.util.ListIterator
StackMap stack:
aload 4
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast sun.awt.Win32GraphicsDevice
astore 5
start local 5 39: aload 5
ifnull 43
40: aload 5
iload 3
invokevirtual sun.awt.Win32GraphicsDevice.invalidate:(I)V
41: aload 5
invokevirtual sun.awt.Win32GraphicsDevice.displayChanged:()V
42: goto 44
43: StackMap locals: sun.awt.Win32GraphicsDevice
StackMap stack:
aload 4
invokeinterface java.util.ListIterator.remove:()V
end local 5 44: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 38
end local 4 end local 3 45: StackMap locals:
StackMap stack:
invokestatic sun.awt.windows.WToolkit.resetGC:()V
46: aload 0
getfield sun.awt.Win32GraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
invokevirtual sun.awt.SunDisplayChanger.notifyListeners:()V
47: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lsun/awt/Win32GraphicsEnvironment;
1 48 1 newDevices [Ljava/awt/GraphicsDevice;
2 48 2 oldScreens [Ljava/awt/GraphicsDevice;
4 19 3 i I
8 17 4 gd Lsun/awt/Win32GraphicsDevice;
21 26 3 i I
29 31 3 gd Ljava/awt/GraphicsDevice;
35 45 3 defScreen I
37 45 4 it Ljava/util/ListIterator<Ljava/lang/ref/WeakReference<Lsun/awt/Win32GraphicsDevice;>;>;
39 44 5 gd Lsun/awt/Win32GraphicsDevice;
protected java.awt.GraphicsDevice makeScreenDevice(int);
descriptor: (I)Ljava/awt/GraphicsDevice;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: invokestatic sun.java2d.windows.WindowsFlags.isD3DEnabled:()Z
ifeq 3
2: iload 1
invokestatic sun.java2d.d3d.D3DGraphicsDevice.createDevice:(I)Lsun/java2d/d3d/D3DGraphicsDevice;
astore 2
3: StackMap locals: java.awt.GraphicsDevice
StackMap stack:
aload 2
ifnonnull 5
4: new sun.awt.Win32GraphicsDevice
dup
iload 1
invokespecial sun.awt.Win32GraphicsDevice.<init>:(I)V
astore 2
5: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/Win32GraphicsEnvironment;
0 6 1 screennum I
1 6 2 device Ljava/awt/GraphicsDevice;
MethodParameters:
Name Flags
screennum
public boolean isDisplayLocal();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/Win32GraphicsEnvironment;
public boolean isFlipStrategyPreferred(java.awt.peer.ComponentPeer);
descriptor: (Ljava/awt/peer/ComponentPeer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 5
aload 1
invokeinterface java.awt.peer.ComponentPeer.getGraphicsConfiguration:()Ljava/awt/GraphicsConfiguration;
dup
astore 2
start local 2 1: ifnull 5
2: aload 2
invokevirtual java.awt.GraphicsConfiguration.getDevice:()Ljava/awt/GraphicsDevice;
astore 3
start local 3 3: aload 3
instanceof sun.java2d.d3d.D3DGraphicsDevice
ifeq 5
4: aload 3
checkcast sun.java2d.d3d.D3DGraphicsDevice
invokevirtual sun.java2d.d3d.D3DGraphicsDevice.isD3DEnabledOnDevice:()Z
ireturn
end local 3 end local 2 5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/Win32GraphicsEnvironment;
0 6 1 peer Ljava/awt/peer/ComponentPeer;
1 5 2 gc Ljava/awt/GraphicsConfiguration;
3 5 3 gd Ljava/awt/GraphicsDevice;
MethodParameters:
Name Flags
peer
public static boolean isDWMCompositionEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.awt.Win32GraphicsEnvironment.isDWMCompositionEnabled:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static void dwmCompositionChanged(boolean);
descriptor: (Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic sun.awt.Win32GraphicsEnvironment.isDWMCompositionEnabled:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 enabled Z
MethodParameters:
Name Flags
enabled
public static native boolean isVistaOS();
descriptor: ()Z
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
}
SourceFile: "Win32GraphicsEnvironment.java"