public abstract class sun.java2d.SunGraphicsEnvironment extends java.awt.GraphicsEnvironment implements sun.awt.DisplayChangedListener
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.java2d.SunGraphicsEnvironment
super_class: java.awt.GraphicsEnvironment
{
public static boolean isOpenSolaris;
descriptor: Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static java.awt.Font defaultFont;
descriptor: Ljava/awt/Font;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
protected java.awt.GraphicsDevice[] screens;
descriptor: [Ljava/awt/GraphicsDevice;
flags: (0x0004) ACC_PROTECTED
protected sun.awt.SunDisplayChanger displayChanger;
descriptor: Lsun/awt/SunDisplayChanger;
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.awt.GraphicsEnvironment.<init>:()V
1: aload 0
new sun.awt.SunDisplayChanger
dup
invokespecial sun.awt.SunDisplayChanger.<init>:()V
putfield sun.java2d.SunGraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
2: new sun.java2d.SunGraphicsEnvironment$1
dup
aload 0
invokespecial sun.java2d.SunGraphicsEnvironment$1.<init>:(Lsun/java2d/SunGraphicsEnvironment;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/java2d/SunGraphicsEnvironment;
public synchronized java.awt.GraphicsDevice[] getScreenDevices();
descriptor: ()[Ljava/awt/GraphicsDevice;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.java2d.SunGraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
astore 1
start local 1 1: aload 1
ifnonnull 10
2: aload 0
invokevirtual sun.java2d.SunGraphicsEnvironment.getNumScreens:()I
istore 2
start local 2 3: iload 2
anewarray java.awt.GraphicsDevice
astore 1
4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: java.awt.GraphicsDevice[] int int
StackMap stack:
aload 1
iload 3
aload 0
iload 3
invokevirtual sun.java2d.SunGraphicsEnvironment.makeScreenDevice:(I)Ljava/awt/GraphicsDevice;
aastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 6
end local 3 9: aload 0
aload 1
putfield sun.java2d.SunGraphicsEnvironment.screens:[Ljava/awt/GraphicsDevice;
end local 2 10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/java2d/SunGraphicsEnvironment;
1 11 1 ret [Ljava/awt/GraphicsDevice;
3 10 2 num I
5 9 3 i I
protected abstract int getNumScreens();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract java.awt.GraphicsDevice makeScreenDevice(int);
descriptor: (I)Ljava/awt/GraphicsDevice;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
screennum
public java.awt.GraphicsDevice getDefaultScreenDevice();
descriptor: ()Ljava/awt/GraphicsDevice;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.java2d.SunGraphicsEnvironment.getScreenDevices:()[Ljava/awt/GraphicsDevice;
astore 1
start local 1 1: aload 1
arraylength
ifne 3
2: new java.awt.AWTError
dup
ldc "no screen devices"
invokespecial java.awt.AWTError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.awt.GraphicsDevice[]
StackMap stack:
aload 1
iconst_0
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/java2d/SunGraphicsEnvironment;
1 4 1 screens [Ljava/awt/GraphicsDevice;
public java.awt.Graphics2D createGraphics(java.awt.image.BufferedImage);
descriptor: (Ljava/awt/image/BufferedImage;)Ljava/awt/Graphics2D;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "BufferedImage cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.java2d.SurfaceData.getPrimarySurfaceData:(Ljava/awt/Image;)Lsun/java2d/SurfaceData;
astore 2
start local 2 3: new sun.java2d.SunGraphics2D
dup
aload 2
getstatic java.awt.Color.white:Ljava/awt/Color;
getstatic java.awt.Color.black:Ljava/awt/Color;
getstatic sun.java2d.SunGraphicsEnvironment.defaultFont:Ljava/awt/Font;
invokespecial sun.java2d.SunGraphics2D.<init>:(Lsun/java2d/SurfaceData;Ljava/awt/Color;Ljava/awt/Color;Ljava/awt/Font;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/java2d/SunGraphicsEnvironment;
0 4 1 img Ljava/awt/image/BufferedImage;
3 4 2 sd Lsun/java2d/SurfaceData;
MethodParameters:
Name Flags
img
public static sun.font.FontManagerForSGE getFontManagerForSGE();
descriptor: ()Lsun/font/FontManagerForSGE;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic sun.font.FontManagerFactory.getInstance:()Lsun/font/FontManager;
astore 0
start local 0 1: aload 0
checkcast sun.font.FontManagerForSGE
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 fm Lsun/font/FontManager;
public static void useAlternateFontforJALocales();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE:()Lsun/font/FontManagerForSGE;
invokeinterface sun.font.FontManagerForSGE.useAlternateFontforJALocales:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public java.awt.Font[] getAllFonts();
descriptor: ()[Ljava/awt/Font;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: invokestatic sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE:()Lsun/font/FontManagerForSGE;
astore 1
start local 1 1: aload 1
invokeinterface sun.font.FontManagerForSGE.getAllInstalledFonts:()[Ljava/awt/Font;
astore 2
start local 2 2: aload 1
invokeinterface sun.font.FontManagerForSGE.getCreatedFonts:()[Ljava/awt/Font;
astore 3
start local 3 3: aload 3
ifnull 4
aload 3
arraylength
ifne 5
4: StackMap locals: sun.font.FontManagerForSGE java.awt.Font[] java.awt.Font[]
StackMap stack:
aload 2
areturn
5: StackMap locals:
StackMap stack:
aload 2
arraylength
aload 3
arraylength
iadd
istore 4
start local 4 6: aload 2
iload 4
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast java.awt.Font[]
astore 5
start local 5 7: aload 3
iconst_0
aload 5
8: aload 2
arraylength
aload 3
arraylength
9: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/java2d/SunGraphicsEnvironment;
1 11 1 fm Lsun/font/FontManagerForSGE;
2 11 2 installedFonts [Ljava/awt/Font;
3 11 3 created [Ljava/awt/Font;
6 11 4 newlen I
7 11 5 fonts [Ljava/awt/Font;
public java.lang.String[] getAvailableFontFamilyNames(java.util.Locale);
descriptor: (Ljava/util/Locale;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: invokestatic sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE:()Lsun/font/FontManagerForSGE;
astore 2
start local 2 1: aload 2
aload 1
invokeinterface sun.font.FontManagerForSGE.getInstalledFontFamilyNames:(Ljava/util/Locale;)[Ljava/lang/String;
astore 3
start local 3 2: aload 2
invokeinterface sun.font.FontManagerForSGE.getCreatedFontFamilyNames:()Ljava/util/TreeMap;
astore 4
start local 4 3: aload 4
ifnull 4
aload 4
invokevirtual java.util.TreeMap.size:()I
ifne 5
4: StackMap locals: sun.font.FontManagerForSGE java.lang.String[] java.util.TreeMap
StackMap stack:
aload 3
areturn
5: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 6: goto 11
7: StackMap locals: int
StackMap stack:
aload 4
aload 3
iload 5
aaload
aload 1
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
8: aload 3
iload 5
aaload
9: invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 3
arraylength
if_icmplt 7
end local 5 12: aload 4
invokevirtual java.util.TreeMap.size:()I
anewarray java.lang.String
astore 5
start local 5 13: aload 4
invokevirtual java.util.TreeMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.toArray:()[Ljava/lang/Object;
astore 6
start local 6 14: iconst_0
istore 7
start local 7 15: goto 18
16: StackMap locals: sun.java2d.SunGraphicsEnvironment java.util.Locale sun.font.FontManagerForSGE java.lang.String[] java.util.TreeMap java.lang.String[] java.lang.Object[] int
StackMap stack:
aload 5
iload 7
aload 4
aload 6
iload 7
aaload
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
aastore
17: iinc 7 1
StackMap locals:
StackMap stack:
18: iload 7
aload 6
arraylength
if_icmplt 16
end local 7 19: aload 5
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/java2d/SunGraphicsEnvironment;
0 20 1 requestedLocale Ljava/util/Locale;
1 20 2 fm Lsun/font/FontManagerForSGE;
2 20 3 installed [Ljava/lang/String;
3 20 4 map Ljava/util/TreeMap<Ljava/lang/String;Ljava/lang/String;>;
6 12 5 i I
13 20 5 retval [Ljava/lang/String;
14 20 6 keyNames [Ljava/lang/Object;
15 19 7 i I
MethodParameters:
Name Flags
requestedLocale
public java.lang.String[] getAvailableFontFamilyNames();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokevirtual sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames:(Ljava/util/Locale;)[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/SunGraphicsEnvironment;
public static java.awt.Rectangle getUsableBounds(java.awt.GraphicsDevice);
descriptor: (Ljava/awt/GraphicsDevice;)Ljava/awt/Rectangle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, 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: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
aload 1
invokevirtual java.awt.Toolkit.getScreenInsets:(Ljava/awt/GraphicsConfiguration;)Ljava/awt/Insets;
astore 2
start local 2 2: aload 1
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
astore 3
start local 3 3: aload 3
dup
getfield java.awt.Rectangle.x:I
aload 2
getfield java.awt.Insets.left:I
iadd
putfield java.awt.Rectangle.x:I
4: aload 3
dup
getfield java.awt.Rectangle.y:I
aload 2
getfield java.awt.Insets.top:I
iadd
putfield java.awt.Rectangle.y:I
5: aload 3
dup
getfield java.awt.Rectangle.width:I
aload 2
getfield java.awt.Insets.left:I
aload 2
getfield java.awt.Insets.right:I
iadd
isub
putfield java.awt.Rectangle.width:I
6: aload 3
dup
getfield java.awt.Rectangle.height:I
aload 2
getfield java.awt.Insets.top:I
aload 2
getfield java.awt.Insets.bottom:I
iadd
isub
putfield java.awt.Rectangle.height:I
7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 gd Ljava/awt/GraphicsDevice;
1 8 1 gc Ljava/awt/GraphicsConfiguration;
2 8 2 insets Ljava/awt/Insets;
3 8 3 usableBounds Ljava/awt/Rectangle;
MethodParameters:
Name Flags
gd
public void displayChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual sun.java2d.SunGraphicsEnvironment.getScreenDevices:()[Ljava/awt/GraphicsDevice;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: sun.java2d.SunGraphicsEnvironment top int int java.awt.GraphicsDevice[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
instanceof sun.awt.DisplayChangedListener
ifeq 4
3: aload 1
checkcast sun.awt.DisplayChangedListener
invokeinterface sun.awt.DisplayChangedListener.displayChanged:()V
end local 1 4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 1
6: aload 0
getfield sun.java2d.SunGraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
invokevirtual sun.awt.SunDisplayChanger.notifyListeners:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/java2d/SunGraphicsEnvironment;
2 4 1 gd Ljava/awt/GraphicsDevice;
public void paletteChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.java2d.SunGraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
invokevirtual sun.awt.SunDisplayChanger.notifyPaletteChanged:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/SunGraphicsEnvironment;
public abstract boolean isDisplayLocal();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public void addDisplayChangedListener(sun.awt.DisplayChangedListener);
descriptor: (Lsun/awt/DisplayChangedListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.java2d.SunGraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
aload 1
invokevirtual sun.awt.SunDisplayChanger.add:(Lsun/awt/DisplayChangedListener;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/SunGraphicsEnvironment;
0 2 1 client Lsun/awt/DisplayChangedListener;
MethodParameters:
Name Flags
client
public void removeDisplayChangedListener(sun.awt.DisplayChangedListener);
descriptor: (Lsun/awt/DisplayChangedListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.java2d.SunGraphicsEnvironment.displayChanger:Lsun/awt/SunDisplayChanger;
aload 1
invokevirtual sun.awt.SunDisplayChanger.remove:(Lsun/awt/DisplayChangedListener;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/SunGraphicsEnvironment;
0 2 1 client Lsun/awt/DisplayChangedListener;
MethodParameters:
Name Flags
client
public boolean isFlipStrategyPreferred(java.awt.peer.ComponentPeer);
descriptor: (Ljava/awt/peer/ComponentPeer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/SunGraphicsEnvironment;
0 1 1 peer Ljava/awt/peer/ComponentPeer;
MethodParameters:
Name Flags
peer
}
SourceFile: "SunGraphicsEnvironment.java"
NestMembers:
sun.java2d.SunGraphicsEnvironment$1
InnerClasses:
sun.java2d.SunGraphicsEnvironment$1