public class sun.jvm.hotspot.ui.GraphicsUtilities
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.ui.GraphicsUtilities
super_class: java.lang.Object
{
static java.util.Random random;
descriptor: Ljava/util/Random;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
putstatic sun.jvm.hotspot.ui.GraphicsUtilities.random:Ljava/util/Random;
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 java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/ui/GraphicsUtilities;
public static java.awt.Font lookupFont(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/awt/Font;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
invokevirtual java.awt.GraphicsEnvironment.getAllFonts:()[Ljava/awt/Font;
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: java.awt.Font[] java.awt.Font int
StackMap stack:
aload 1
iload 3
aaload
invokevirtual java.awt.Font.getFontName:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 7
5: aload 1
iload 3
aaload
astore 2
6: goto 9
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmplt 4
end local 3 9: StackMap locals:
StackMap stack:
aload 2
ifnonnull 11
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
aload 2
iconst_0
ldc 12.0
invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 fontName Ljava/lang/String;
1 12 1 allFonts [Ljava/awt/Font;
2 12 2 font Ljava/awt/Font;
3 9 3 i I
MethodParameters:
Name Flags
fontName
public static java.awt.geom.Rectangle2D getStringBounds(java.lang.String, java.awt.Graphics);
descriptor: (Ljava/lang/String;Ljava/awt/Graphics;)Ljava/awt/geom/Rectangle2D;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 2
start local 2 1: aload 2
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.awt.FontMetrics.getStringBounds:(Ljava/lang/String;IILjava/awt/Graphics;)Ljava/awt/geom/Rectangle2D;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/lang/String;
0 2 1 g Ljava/awt/Graphics;
1 2 2 fm Ljava/awt/FontMetrics;
MethodParameters:
Name Flags
s
g
public static int getStringWidth(java.lang.String, java.awt.FontMetrics);
descriptor: (Ljava/lang/String;Ljava/awt/FontMetrics;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 fm Ljava/awt/FontMetrics;
MethodParameters:
Name Flags
s
fm
public static void reshapeToAspectRatio(java.awt.Component, float, float, java.awt.Dimension);
descriptor: (Ljava/awt/Component;FFLjava/awt/Dimension;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
getfield java.awt.Dimension.width:I
istore 4
start local 4 1: aload 3
getfield java.awt.Dimension.height:I
istore 5
start local 5 2: iload 4
i2f
iload 5
i2f
fdiv
fload 1
fcmpl
ifle 6
3: fload 2
iload 5
i2f
fmul
f2i
istore 7
start local 7 4: iload 7
i2f
fload 1
fmul
f2i
istore 6
start local 6 5: goto 8
end local 7 end local 6 6: StackMap locals: int int
StackMap stack:
fload 2
iload 4
i2f
fmul
f2i
istore 6
start local 6 7: iload 6
i2f
fload 1
fdiv
f2i
istore 7
start local 7 8: StackMap locals: int int
StackMap stack:
aload 0
iload 6
iload 7
invokevirtual java.awt.Component.setSize:(II)V
9: return
end local 7 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 10 0 component Ljava/awt/Component;
0 10 1 aspectRatio F
0 10 2 fillRatio F
0 10 3 containerDimension Ljava/awt/Dimension;
1 10 4 x I
2 10 5 y I
5 6 6 desiredX I
7 10 6 desiredX I
4 6 7 desiredY I
8 10 7 desiredY I
MethodParameters:
Name Flags
component
aspectRatio
fillRatio
containerDimension
public static void constrainToSize(java.awt.Component, java.awt.Dimension);
descriptor: (Ljava/awt/Component;Ljava/awt/Dimension;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 2
start local 2 1: aload 2
getfield java.awt.Dimension.width:I
istore 3
start local 3 2: aload 2
getfield java.awt.Dimension.height:I
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: iload 3
aload 1
getfield java.awt.Dimension.width:I
if_icmple 7
5: aload 1
getfield java.awt.Dimension.width:I
istore 3
6: iconst_1
istore 5
7: StackMap locals: java.awt.Component java.awt.Dimension java.awt.Dimension int int int
StackMap stack:
iload 4
aload 1
getfield java.awt.Dimension.height:I
if_icmple 10
8: aload 1
getfield java.awt.Dimension.height:I
istore 4
9: iconst_1
istore 5
10: StackMap locals:
StackMap stack:
iload 5
ifeq 12
11: aload 0
iload 3
iload 4
invokevirtual java.awt.Component.setSize:(II)V
12: StackMap locals:
StackMap stack:
return
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 13 0 component Ljava/awt/Component;
0 13 1 containerDimension Ljava/awt/Dimension;
1 13 2 d Ljava/awt/Dimension;
2 13 3 x I
3 13 4 y I
4 13 5 changed Z
MethodParameters:
Name Flags
component
containerDimension
public static void centerInContainer(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual java.awt.Component.getParent:()Ljava/awt/Container;
invokevirtual java.awt.Container.getSize:()Ljava/awt/Dimension;
invokestatic sun.jvm.hotspot.ui.GraphicsUtilities.centerInContainer:(Ljava/awt/Component;Ljava/awt/Dimension;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c Ljava/awt/Component;
MethodParameters:
Name Flags
c
public static void centerInContainer(java.awt.Component, java.awt.Dimension);
descriptor: (Ljava/awt/Component;Ljava/awt/Dimension;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 2
start local 2 1: aload 1
getfield java.awt.Dimension.width:I
aload 2
getfield java.awt.Dimension.width:I
isub
iconst_2
idiv
istore 3
start local 3 2: aload 1
getfield java.awt.Dimension.height:I
aload 2
getfield java.awt.Dimension.height:I
isub
iconst_2
idiv
istore 4
start local 4 3: aload 0
iload 3
iload 4
invokevirtual java.awt.Component.setLocation:(II)V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 component Ljava/awt/Component;
0 5 1 containerDimension Ljava/awt/Dimension;
1 5 2 sz Ljava/awt/Dimension;
2 5 3 x I
3 5 4 y I
MethodParameters:
Name Flags
component
containerDimension
public static void moveToInContainer(java.awt.Component, float, float, int, int);
descriptor: (Ljava/awt/Component;FFII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual java.awt.Component.getParent:()Ljava/awt/Container;
invokevirtual java.awt.Container.getSize:()Ljava/awt/Dimension;
astore 5
start local 5 1: aload 0
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 6
start local 6 2: aload 5
getfield java.awt.Dimension.width:I
aload 6
getfield java.awt.Dimension.width:I
isub
3: aload 5
getfield java.awt.Dimension.width:I
i2f
fload 1
fmul
aload 6
getfield java.awt.Dimension.width:I
iconst_2
idiv
i2f
fsub
f2i
4: invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 5: aload 5
getfield java.awt.Dimension.height:I
aload 6
getfield java.awt.Dimension.height:I
isub
6: aload 5
getfield java.awt.Dimension.height:I
i2f
fload 2
fmul
aload 6
getfield java.awt.Dimension.height:I
iconst_2
idiv
i2f
fsub
f2i
7: invokestatic java.lang.Math.min:(II)I
istore 8
start local 8 8: iload 7
iload 3
invokestatic java.lang.Math.max:(II)I
istore 7
9: iload 8
iload 4
invokestatic java.lang.Math.max:(II)I
istore 8
10: aload 0
iload 7
iload 8
invokevirtual java.awt.Component.setLocation:(II)V
11: return
end local 8 end local 7 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 12 0 component Ljava/awt/Component;
0 12 1 relativeX F
0 12 2 relativeY F
0 12 3 minX I
0 12 4 minY I
1 12 5 d Ljava/awt/Dimension;
2 12 6 sz Ljava/awt/Dimension;
5 12 7 xPos I
8 12 8 yPos I
MethodParameters:
Name Flags
component
relativeX
relativeY
minX
minY
public static void randomLocation(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual java.awt.Component.getParent:()Ljava/awt/Container;
invokevirtual java.awt.Container.getSize:()Ljava/awt/Dimension;
invokestatic sun.jvm.hotspot.ui.GraphicsUtilities.randomLocation:(Ljava/awt/Component;Ljava/awt/Dimension;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c Ljava/awt/Component;
MethodParameters:
Name Flags
c
public static void randomLocation(java.awt.Component, java.awt.Dimension);
descriptor: (Ljava/awt/Component;Ljava/awt/Dimension;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 2
start local 2 1: aload 1
getfield java.awt.Dimension.width:I
aload 2
getfield java.awt.Dimension.width:I
isub
i2f
getstatic sun.jvm.hotspot.ui.GraphicsUtilities.random:Ljava/util/Random;
invokevirtual java.util.Random.nextFloat:()F
fmul
f2i
istore 3
start local 3 2: aload 1
getfield java.awt.Dimension.height:I
aload 2
getfield java.awt.Dimension.height:I
isub
i2f
getstatic sun.jvm.hotspot.ui.GraphicsUtilities.random:Ljava/util/Random;
invokevirtual java.util.Random.nextFloat:()F
fmul
f2i
istore 4
start local 4 3: aload 0
iload 3
iload 4
invokevirtual java.awt.Component.setLocation:(II)V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 component Ljava/awt/Component;
0 5 1 containerDimension Ljava/awt/Dimension;
1 5 2 sz Ljava/awt/Dimension;
2 5 3 x I
3 5 4 y I
MethodParameters:
Name Flags
component
containerDimension
public static javax.swing.border.Border newBorder(int);
descriptor: (I)Ljavax/swing/border/Border;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iload 0
iload 0
iload 0
iload 0
invokestatic javax.swing.BorderFactory.createEmptyBorder:(IIII)Ljavax/swing/border/Border;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
MethodParameters:
Name Flags
size
}
SourceFile: "GraphicsUtilities.java"