public final class sun.awt.CGraphicsDevice extends java.awt.GraphicsDevice implements sun.awt.DisplayChangedListener
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.awt.CGraphicsDevice
super_class: java.awt.GraphicsDevice
{
private volatile int displayID;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile double xResolution;
descriptor: D
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile double yResolution;
descriptor: D
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int scale;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.awt.GraphicsConfiguration[] configs;
descriptor: [Ljava/awt/GraphicsConfiguration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int DEFAULT_CONFIG;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: 0
private static java.awt.AWTPermission fullScreenExclusivePermission;
descriptor: Ljava/awt/AWTPermission;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.awt.DisplayMode originalMode;
descriptor: Ljava/awt/DisplayMode;
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.awt.GraphicsDevice.<init>:()V
1: aload 0
iconst_0
putfield sun.awt.CGraphicsDevice.DEFAULT_CONFIG:I
2: aload 0
iload 1
putfield sun.awt.CGraphicsDevice.displayID:I
3: aload 0
iconst_1
anewarray java.awt.GraphicsConfiguration
dup
iconst_0
4: aload 0
iconst_0
invokestatic sun.java2d.opengl.CGLGraphicsConfig.getConfig:(Lsun/awt/CGraphicsDevice;I)Lsun/java2d/opengl/CGLGraphicsConfig;
aastore
5: putfield sun.awt.CGraphicsDevice.configs:[Ljava/awt/GraphicsConfiguration;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/CGraphicsDevice;
0 7 1 displayID I
MethodParameters:
Name Flags
displayID final
public int getCGDisplayID();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public java.awt.GraphicsConfiguration[] getConfigurations();
descriptor: ()[Ljava/awt/GraphicsConfiguration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.configs:[Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration[].clone:()Ljava/lang/Object;
checkcast java.awt.GraphicsConfiguration[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public java.awt.GraphicsConfiguration getDefaultConfiguration();
descriptor: ()Ljava/awt/GraphicsConfiguration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.configs:[Ljava/awt/GraphicsConfiguration;
iconst_0
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public java.lang.String getIDstring();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Display "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public int getType();
descriptor: ()I
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 Lsun/awt/CGraphicsDevice;
public double getXResolution();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.xResolution:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public double getYResolution();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.yResolution:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public java.awt.Insets getScreenInsets();
descriptor: ()Ljava/awt/Insets;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetScreenInsets:(I)Ljava/awt/Insets;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public int getScaleFactor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.scale:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public void invalidate(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.awt.CGraphicsDevice.displayID:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/CGraphicsDevice;
0 2 1 defaultDisplayID I
MethodParameters:
Name Flags
defaultDisplayID final
public void displayChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetXResolution:(I)D
putfield sun.awt.CGraphicsDevice.xResolution:D
1: aload 0
aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetYResolution:(I)D
putfield sun.awt.CGraphicsDevice.yResolution:D
2: aload 0
aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetScaleFactor:(I)D
d2i
putfield sun.awt.CGraphicsDevice.scale:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/CGraphicsDevice;
public void paletteChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public synchronized void setFullScreenWindow(java.awt.Window);
descriptor: (Ljava/awt/Window;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.awt.CGraphicsDevice.getFullScreenWindow:()Ljava/awt/Window;
astore 2
start local 2 1: aload 1
aload 2
if_acmpne 3
2: return
3: StackMap locals: java.awt.Window
StackMap stack:
aload 0
invokevirtual sun.awt.CGraphicsDevice.isFullScreenSupported:()Z
istore 3
start local 3 4: iload 3
ifeq 9
aload 2
ifnull 9
5: aload 2
invokestatic sun.awt.CGraphicsDevice.exitFullScreenExclusive:(Ljava/awt/Window;)V
6: aload 0
getfield sun.awt.CGraphicsDevice.originalMode:Ljava/awt/DisplayMode;
ifnull 9
7: aload 0
aload 0
getfield sun.awt.CGraphicsDevice.originalMode:Ljava/awt/DisplayMode;
invokevirtual sun.awt.CGraphicsDevice.setDisplayMode:(Ljava/awt/DisplayMode;)V
8: aload 0
aconst_null
putfield sun.awt.CGraphicsDevice.originalMode:Ljava/awt/DisplayMode;
9: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokespecial java.awt.GraphicsDevice.setFullScreenWindow:(Ljava/awt/Window;)V
10: iload 3
ifeq 14
aload 1
ifnull 14
11: aload 0
invokevirtual sun.awt.CGraphicsDevice.isDisplayChangeSupported:()Z
ifeq 13
12: aload 0
aload 0
invokevirtual sun.awt.CGraphicsDevice.getDisplayMode:()Ljava/awt/DisplayMode;
putfield sun.awt.CGraphicsDevice.originalMode:Ljava/awt/DisplayMode;
13: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.awt.CGraphicsDevice.enterFullScreenExclusive:(Ljava/awt/Window;)V
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/awt/CGraphicsDevice;
0 15 1 w Ljava/awt/Window;
1 15 2 old Ljava/awt/Window;
4 15 3 fsSupported Z
MethodParameters:
Name Flags
w
public boolean isFullScreenSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic sun.awt.CGraphicsDevice.isFSExclusiveModeAllowed:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
private static boolean isFSExclusiveModeAllowed();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 9
2: getstatic sun.awt.CGraphicsDevice.fullScreenExclusivePermission:Ljava/awt/AWTPermission;
ifnonnull 5
3: new java.awt.AWTPermission
dup
ldc "fullScreenExclusive"
invokespecial java.awt.AWTPermission.<init>:(Ljava/lang/String;)V
4: putstatic sun.awt.CGraphicsDevice.fullScreenExclusivePermission:Ljava/awt/AWTPermission;
5: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
getstatic sun.awt.CGraphicsDevice.fullScreenExclusivePermission:Ljava/awt/AWTPermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
6: goto 9
StackMap locals:
StackMap stack: java.lang.SecurityException
7: pop
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 security Ljava/lang/SecurityManager;
Exception table:
from to target type
5 6 7 Class java.lang.SecurityException
private static void enterFullScreenExclusive(java.awt.Window);
descriptor: (Ljava/awt/Window;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Window.getPeer:()Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.FullScreenCapable
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface sun.awt.FullScreenCapable.enterFullScreenMode:()V
3: StackMap locals: sun.awt.FullScreenCapable
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 w Ljava/awt/Window;
1 4 1 peer Lsun/awt/FullScreenCapable;
MethodParameters:
Name Flags
w
private static void exitFullScreenExclusive(java.awt.Window);
descriptor: (Ljava/awt/Window;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Window.getPeer:()Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.FullScreenCapable
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface sun.awt.FullScreenCapable.exitFullScreenMode:()V
3: StackMap locals: sun.awt.FullScreenCapable
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 w Ljava/awt/Window;
1 4 1 peer Lsun/awt/FullScreenCapable;
MethodParameters:
Name Flags
w
public boolean isDisplayChangeSupported();
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/CGraphicsDevice;
public void setDisplayMode(java.awt.DisplayMode);
descriptor: (Ljava/awt/DisplayMode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid display mode"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual sun.awt.CGraphicsDevice.getDisplayMode:()Ljava/awt/DisplayMode;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 8
3: aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
aload 1
invokevirtual java.awt.DisplayMode.getWidth:()I
aload 1
invokevirtual java.awt.DisplayMode.getHeight:()I
4: aload 1
invokevirtual java.awt.DisplayMode.getBitDepth:()I
aload 1
invokevirtual java.awt.DisplayMode.getRefreshRate:()I
5: invokestatic sun.awt.CGraphicsDevice.nativeSetDisplayMode:(IIIII)V
6: aload 0
invokevirtual sun.awt.CGraphicsDevice.isFullScreenSupported:()Z
ifeq 8
aload 0
invokevirtual sun.awt.CGraphicsDevice.getFullScreenWindow:()Ljava/awt/Window;
ifnull 8
7: aload 0
invokevirtual sun.awt.CGraphicsDevice.getFullScreenWindow:()Ljava/awt/Window;
aload 1
invokevirtual java.awt.DisplayMode.getWidth:()I
aload 1
invokevirtual java.awt.DisplayMode.getHeight:()I
invokevirtual java.awt.Window.setSize:(II)V
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/awt/CGraphicsDevice;
0 9 1 dm Ljava/awt/DisplayMode;
MethodParameters:
Name Flags
dm final
public java.awt.DisplayMode getDisplayMode();
descriptor: ()Ljava/awt/DisplayMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetDisplayMode:(I)Ljava/awt/DisplayMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
public java.awt.DisplayMode[] getDisplayModes();
descriptor: ()[Ljava/awt/DisplayMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.CGraphicsDevice.displayID:I
invokestatic sun.awt.CGraphicsDevice.nativeGetDisplayModes:(I)[Ljava/awt/DisplayMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/CGraphicsDevice;
private static native double nativeGetScaleFactor(int);
descriptor: (I)D
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
private static native void nativeSetDisplayMode(int, int, int, int, int);
descriptor: (IIIII)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
w
h
bpp
refrate
private static native java.awt.DisplayMode nativeGetDisplayMode(int);
descriptor: (I)Ljava/awt/DisplayMode;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
private static native java.awt.DisplayMode[] nativeGetDisplayModes(int);
descriptor: (I)[Ljava/awt/DisplayMode;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
private static native double nativeGetXResolution(int);
descriptor: (I)D
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
private static native double nativeGetYResolution(int);
descriptor: (I)D
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
private static native java.awt.Insets nativeGetScreenInsets(int);
descriptor: (I)Ljava/awt/Insets;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
displayID
}
SourceFile: "CGraphicsDevice.java"