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: .line 138
            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 // sun.jvm.hotspot.ui.GraphicsUtilities this
         0: .line 36
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.jvm.hotspot.ui.GraphicsUtilities this
      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 // java.lang.String fontName
         0: .line 40
            invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
            invokevirtual java.awt.GraphicsEnvironment.getAllFonts:()[Ljava/awt/Font;
            astore 1 /* allFonts */
        start local 1 // java.awt.Font[] allFonts
         1: .line 41
            aconst_null
            astore 2 /* font */
        start local 2 // java.awt.Font font
         2: .line 42
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         3: goto 8
         4: .line 43
      StackMap locals: java.awt.Font[] java.awt.Font int
      StackMap stack:
            aload 1 /* allFonts */
            iload 3 /* i */
            aaload
            invokevirtual java.awt.Font.getFontName:()Ljava/lang/String;
            aload 0 /* fontName */
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            iconst_m1
            if_icmpeq 7
         5: .line 44
            aload 1 /* allFonts */
            iload 3 /* i */
            aaload
            astore 2 /* font */
         6: .line 45
            goto 9
         7: .line 42
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 3 /* i */
            aload 1 /* allFonts */
            arraylength
            if_icmplt 4
        end local 3 // int i
         9: .line 48
      StackMap locals:
      StackMap stack:
            aload 2 /* font */
            ifnonnull 11
        10: .line 49
            aconst_null
            areturn
        11: .line 51
      StackMap locals:
      StackMap stack:
            aload 2 /* font */
            iconst_0
            ldc 12.0
            invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
            areturn
        end local 2 // java.awt.Font font
        end local 1 // java.awt.Font[] allFonts
        end local 0 // java.lang.String fontName
      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 // java.lang.String s
        start local 1 // java.awt.Graphics g
         0: .line 57
            aload 1 /* g */
            invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
            astore 2 /* fm */
        start local 2 // java.awt.FontMetrics fm
         1: .line 58
            aload 2 /* fm */
            aload 0 /* s */
            iconst_0
            aload 0 /* s */
            invokevirtual java.lang.String.length:()I
            aload 1 /* g */
            invokevirtual java.awt.FontMetrics.getStringBounds:(Ljava/lang/String;IILjava/awt/Graphics;)Ljava/awt/geom/Rectangle2D;
            areturn
        end local 2 // java.awt.FontMetrics fm
        end local 1 // java.awt.Graphics g
        end local 0 // java.lang.String s
      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 // java.lang.String s
        start local 1 // java.awt.FontMetrics fm
         0: .line 65
            aload 1 /* fm */
            aload 0 /* s */
            invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
            ireturn
        end local 1 // java.awt.FontMetrics fm
        end local 0 // java.lang.String s
      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 // java.awt.Component component
        start local 1 // float aspectRatio
        start local 2 // float fillRatio
        start local 3 // java.awt.Dimension containerDimension
         0: .line 72
            aload 3 /* containerDimension */
            getfield java.awt.Dimension.width:I
            istore 4 /* x */
        start local 4 // int x
         1: .line 73
            aload 3 /* containerDimension */
            getfield java.awt.Dimension.height:I
            istore 5 /* y */
        start local 5 // int y
         2: .line 78
            iload 4 /* x */
            i2f
            iload 5 /* y */
            i2f
            fdiv
            fload 1 /* aspectRatio */
            fcmpl
            ifle 6
         3: .line 79
            fload 2 /* fillRatio */
            iload 5 /* y */
            i2f
            fmul
            f2i
            istore 7 /* desiredY */
        start local 7 // int desiredY
         4: .line 80
            iload 7 /* desiredY */
            i2f
            fload 1 /* aspectRatio */
            fmul
            f2i
            istore 6 /* desiredX */
        start local 6 // int desiredX
         5: .line 81
            goto 8
        end local 7 // int desiredY
        end local 6 // int desiredX
         6: .line 82
      StackMap locals: int int
      StackMap stack:
            fload 2 /* fillRatio */
            iload 4 /* x */
            i2f
            fmul
            f2i
            istore 6 /* desiredX */
        start local 6 // int desiredX
         7: .line 83
            iload 6 /* desiredX */
            i2f
            fload 1 /* aspectRatio */
            fdiv
            f2i
            istore 7 /* desiredY */
        start local 7 // int desiredY
         8: .line 85
      StackMap locals: int int
      StackMap stack:
            aload 0 /* component */
            iload 6 /* desiredX */
            iload 7 /* desiredY */
            invokevirtual java.awt.Component.setSize:(II)V
         9: .line 86
            return
        end local 7 // int desiredY
        end local 6 // int desiredX
        end local 5 // int y
        end local 4 // int x
        end local 3 // java.awt.Dimension containerDimension
        end local 2 // float fillRatio
        end local 1 // float aspectRatio
        end local 0 // java.awt.Component component
      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 // java.awt.Component component
        start local 1 // java.awt.Dimension containerDimension
         0: .line 89
            aload 0 /* component */
            invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
            astore 2 /* d */
        start local 2 // java.awt.Dimension d
         1: .line 90
            aload 2 /* d */
            getfield java.awt.Dimension.width:I
            istore 3 /* x */
        start local 3 // int x
         2: .line 91
            aload 2 /* d */
            getfield java.awt.Dimension.height:I
            istore 4 /* y */
        start local 4 // int y
         3: .line 92
            iconst_0
            istore 5 /* changed */
        start local 5 // boolean changed
         4: .line 94
            iload 3 /* x */
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.width:I
            if_icmple 7
         5: .line 95
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.width:I
            istore 3 /* x */
         6: .line 96
            iconst_1
            istore 5 /* changed */
         7: .line 98
      StackMap locals: java.awt.Component java.awt.Dimension java.awt.Dimension int int int
      StackMap stack:
            iload 4 /* y */
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.height:I
            if_icmple 10
         8: .line 99
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.height:I
            istore 4 /* y */
         9: .line 100
            iconst_1
            istore 5 /* changed */
        10: .line 103
      StackMap locals:
      StackMap stack:
            iload 5 /* changed */
            ifeq 12
        11: .line 104
            aload 0 /* component */
            iload 3 /* x */
            iload 4 /* y */
            invokevirtual java.awt.Component.setSize:(II)V
        12: .line 106
      StackMap locals:
      StackMap stack:
            return
        end local 5 // boolean changed
        end local 4 // int y
        end local 3 // int x
        end local 2 // java.awt.Dimension d
        end local 1 // java.awt.Dimension containerDimension
        end local 0 // java.awt.Component component
      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 // java.awt.Component c
         0: .line 109
            aload 0 /* c */
            aload 0 /* c */
            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: .line 110
            return
        end local 0 // java.awt.Component c
      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 // java.awt.Component component
        start local 1 // java.awt.Dimension containerDimension
         0: .line 114
            aload 0 /* component */
            invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
            astore 2 /* sz */
        start local 2 // java.awt.Dimension sz
         1: .line 115
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.width:I
            aload 2 /* sz */
            getfield java.awt.Dimension.width:I
            isub
            iconst_2
            idiv
            istore 3 /* x */
        start local 3 // int x
         2: .line 116
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.height:I
            aload 2 /* sz */
            getfield java.awt.Dimension.height:I
            isub
            iconst_2
            idiv
            istore 4 /* y */
        start local 4 // int y
         3: .line 117
            aload 0 /* component */
            iload 3 /* x */
            iload 4 /* y */
            invokevirtual java.awt.Component.setLocation:(II)V
         4: .line 118
            return
        end local 4 // int y
        end local 3 // int x
        end local 2 // java.awt.Dimension sz
        end local 1 // java.awt.Dimension containerDimension
        end local 0 // java.awt.Component component
      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 // java.awt.Component component
        start local 1 // float relativeX
        start local 2 // float relativeY
        start local 3 // int minX
        start local 4 // int minY
         0: .line 125
            aload 0 /* component */
            invokevirtual java.awt.Component.getParent:()Ljava/awt/Container;
            invokevirtual java.awt.Container.getSize:()Ljava/awt/Dimension;
            astore 5 /* d */
        start local 5 // java.awt.Dimension d
         1: .line 128
            aload 0 /* component */
            invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
            astore 6 /* sz */
        start local 6 // java.awt.Dimension sz
         2: .line 129
            aload 5 /* d */
            getfield java.awt.Dimension.width:I
            aload 6 /* sz */
            getfield java.awt.Dimension.width:I
            isub
         3: .line 130
            aload 5 /* d */
            getfield java.awt.Dimension.width:I
            i2f
            fload 1 /* relativeX */
            fmul
            aload 6 /* sz */
            getfield java.awt.Dimension.width:I
            iconst_2
            idiv
            i2f
            fsub
            f2i
         4: .line 129
            invokestatic java.lang.Math.min:(II)I
            istore 7 /* xPos */
        start local 7 // int xPos
         5: .line 131
            aload 5 /* d */
            getfield java.awt.Dimension.height:I
            aload 6 /* sz */
            getfield java.awt.Dimension.height:I
            isub
         6: .line 132
            aload 5 /* d */
            getfield java.awt.Dimension.height:I
            i2f
            fload 2 /* relativeY */
            fmul
            aload 6 /* sz */
            getfield java.awt.Dimension.height:I
            iconst_2
            idiv
            i2f
            fsub
            f2i
         7: .line 131
            invokestatic java.lang.Math.min:(II)I
            istore 8 /* yPos */
        start local 8 // int yPos
         8: .line 133
            iload 7 /* xPos */
            iload 3 /* minX */
            invokestatic java.lang.Math.max:(II)I
            istore 7 /* xPos */
         9: .line 134
            iload 8 /* yPos */
            iload 4 /* minY */
            invokestatic java.lang.Math.max:(II)I
            istore 8 /* yPos */
        10: .line 135
            aload 0 /* component */
            iload 7 /* xPos */
            iload 8 /* yPos */
            invokevirtual java.awt.Component.setLocation:(II)V
        11: .line 136
            return
        end local 8 // int yPos
        end local 7 // int xPos
        end local 6 // java.awt.Dimension sz
        end local 5 // java.awt.Dimension d
        end local 4 // int minY
        end local 3 // int minX
        end local 2 // float relativeY
        end local 1 // float relativeX
        end local 0 // java.awt.Component component
      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 // java.awt.Component c
         0: .line 141
            aload 0 /* c */
            aload 0 /* c */
            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: .line 142
            return
        end local 0 // java.awt.Component c
      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 // java.awt.Component component
        start local 1 // java.awt.Dimension containerDimension
         0: .line 146
            aload 0 /* component */
            invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
            astore 2 /* sz */
        start local 2 // java.awt.Dimension sz
         1: .line 147
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.width:I
            aload 2 /* sz */
            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 /* x */
        start local 3 // int x
         2: .line 148
            aload 1 /* containerDimension */
            getfield java.awt.Dimension.height:I
            aload 2 /* sz */
            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 /* y */
        start local 4 // int y
         3: .line 149
            aload 0 /* component */
            iload 3 /* x */
            iload 4 /* y */
            invokevirtual java.awt.Component.setLocation:(II)V
         4: .line 150
            return
        end local 4 // int y
        end local 3 // int x
        end local 2 // java.awt.Dimension sz
        end local 1 // java.awt.Dimension containerDimension
        end local 0 // java.awt.Component component
      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 // int size
         0: .line 154
            iload 0 /* size */
            iload 0 /* size */
            iload 0 /* size */
            iload 0 /* size */
            invokestatic javax.swing.BorderFactory.createEmptyBorder:(IIII)Ljavax/swing/border/Border;
            areturn
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  size  I
    MethodParameters:
      Name  Flags
      size  
}
SourceFile: "GraphicsUtilities.java"