public class sun.tools.jconsole.InternalDialog$MastheadIcon implements javax.swing.Icon
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jconsole.InternalDialog$MastheadIcon
super_class: java.lang.Object
{
private javax.swing.ImageIcon leftIcon;
descriptor: Ljavax/swing/ImageIcon;
flags: (0x0002) ACC_PRIVATE
private javax.swing.ImageIcon rightIcon;
descriptor: Ljavax/swing/ImageIcon;
flags: (0x0002) ACC_PRIVATE
private java.awt.Font font;
descriptor: Ljava/awt/Font;
flags: (0x0002) ACC_PRIVATE
private int gap;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String title;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
final sun.tools.jconsole.InternalDialog this$0;
descriptor: Lsun/tools/jconsole/InternalDialog;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(sun.tools.jconsole.InternalDialog, java.lang.String);
descriptor: (Lsun/tools/jconsole/InternalDialog;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.this$0:Lsun/tools/jconsole/InternalDialog;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new javax.swing.ImageIcon
dup
ldc Lsun/tools/jconsole/InternalDialog;
ldc "resources/masthead-left.png"
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
invokespecial javax.swing.ImageIcon.<init>:(Ljava/net/URL;)V
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.leftIcon:Ljavax/swing/ImageIcon;
3: aload 0
4: new javax.swing.ImageIcon
dup
ldc Lsun/tools/jconsole/InternalDialog;
ldc "resources/masthead-right.png"
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
invokespecial javax.swing.ImageIcon.<init>:(Ljava/net/URL;)V
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.rightIcon:Ljavax/swing/ImageIcon;
5: aload 0
getstatic sun.tools.jconsole.Messages.MASTHEAD_FONT:Ljava/lang/String;
invokestatic java.awt.Font.decode:(Ljava/lang/String;)Ljava/awt/Font;
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.font:Ljava/awt/Font;
6: aload 0
bipush 10
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.gap:I
7: aload 0
aload 2
putfield sun.tools.jconsole.InternalDialog$MastheadIcon.title:Ljava/lang/String;
8: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/tools/jconsole/InternalDialog$MastheadIcon;
0 9 2 title Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
title
public synchronized void paintIcon(java.awt.Component, java.awt.Graphics, int, int);
descriptor: (Ljava/awt/Component;Ljava/awt/Graphics;II)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokevirtual java.awt.Graphics.create:()Ljava/awt/Graphics;
astore 2
1: iconst_0
istore 3
2: aload 1
invokevirtual java.awt.Component.getWidth:()I
istore 5
start local 5 3: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.leftIcon:Ljavax/swing/ImageIcon;
invokevirtual javax.swing.ImageIcon.getIconWidth:()I
istore 6
start local 6 4: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.rightIcon:Ljavax/swing/ImageIcon;
invokevirtual javax.swing.ImageIcon.getIconWidth:()I
istore 7
start local 7 5: aload 0
invokevirtual sun.tools.jconsole.InternalDialog$MastheadIcon.getIconHeight:()I
istore 8
start local 8 6: aload 2
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.font:Ljava/awt/Font;
invokevirtual java.awt.Graphics.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
invokevirtual java.awt.FontMetrics.getAscent:()I
istore 9
start local 9 7: aload 2
getstatic java.awt.Color.white:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
8: aload 2
iload 3
iload 4
iload 5
iload 8
invokevirtual java.awt.Graphics.fillRect:(IIII)V
9: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.leftIcon:Ljavax/swing/ImageIcon;
aload 1
aload 2
iload 3
iload 4
invokevirtual javax.swing.ImageIcon.paintIcon:(Ljava/awt/Component;Ljava/awt/Graphics;II)V
10: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.rightIcon:Ljavax/swing/ImageIcon;
aload 1
aload 2
iload 5
iload 7
isub
iload 4
invokevirtual javax.swing.ImageIcon.paintIcon:(Ljava/awt/Component;Ljava/awt/Graphics;II)V
11: aload 2
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.font:Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
12: aload 2
checkcast java.awt.Graphics2D
getstatic java.awt.RenderingHints.KEY_TEXT_ANTIALIASING:Ljava/awt/RenderingHints$Key;
13: getstatic java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_ON:Ljava/lang/Object;
14: invokevirtual java.awt.Graphics2D.setRenderingHint:(Ljava/awt/RenderingHints$Key;Ljava/lang/Object;)V
15: aload 2
new java.awt.Color
dup
ldc 3495275
invokespecial java.awt.Color.<init>:(I)V
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
16: aload 2
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.title:Ljava/lang/String;
iload 6
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.gap:I
iadd
iload 8
iconst_2
idiv
iload 9
iconst_2
idiv
iadd
invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
17: return
end local 9 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 18 0 this Lsun/tools/jconsole/InternalDialog$MastheadIcon;
0 18 1 c Ljava/awt/Component;
0 18 2 g Ljava/awt/Graphics;
0 18 3 x I
0 18 4 y I
3 18 5 width I
4 18 6 lWidth I
5 18 7 rWidth I
6 18 8 height I
7 18 9 textHeight I
MethodParameters:
Name Flags
c
g
x
y
public int getIconWidth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.this$0:Lsun/tools/jconsole/InternalDialog;
invokevirtual sun.tools.jconsole.InternalDialog.getGraphics:()Ljava/awt/Graphics;
astore 2
start local 2 2: aload 2
ifnull 6
3: aload 2
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.font:Ljava/awt/Font;
invokevirtual java.awt.Graphics.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.title:Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
istore 1
end local 3 6: StackMap locals: int java.awt.Graphics
StackMap stack:
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.leftIcon:Ljavax/swing/ImageIcon;
invokevirtual javax.swing.ImageIcon.getIconWidth:()I
aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.gap:I
iadd
iload 1
iadd
7: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.gap:I
8: iadd
9: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.rightIcon:Ljavax/swing/ImageIcon;
invokevirtual javax.swing.ImageIcon.getIconWidth:()I
10: iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/tools/jconsole/InternalDialog$MastheadIcon;
1 11 1 textWidth I
2 11 2 g Ljava/awt/Graphics;
4 6 3 fm Ljava/awt/FontMetrics;
public int getIconHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jconsole.InternalDialog$MastheadIcon.leftIcon:Ljavax/swing/ImageIcon;
invokevirtual javax.swing.ImageIcon.getIconHeight:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jconsole/InternalDialog$MastheadIcon;
}
SourceFile: "InternalDialog.java"
NestHost: sun.tools.jconsole.InternalDialog
InnerClasses:
public abstract Key = java.awt.RenderingHints$Key of java.awt.RenderingHints
protected MastheadIcon = sun.tools.jconsole.InternalDialog$MastheadIcon of sun.tools.jconsole.InternalDialog