class sun.awt.X11.XLabelPeer extends sun.awt.X11.XComponentPeer implements java.awt.peer.LabelPeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.X11.XLabelPeer
super_class: sun.awt.X11.XComponentPeer
{
static final int TEXT_XPAD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
static final int TEXT_YPAD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 6
java.lang.String label;
descriptor: Ljava/lang/String;
flags: (0x0000)
int alignment;
descriptor: I
flags: (0x0000)
java.awt.FontMetrics cachedFontMetrics;
descriptor: Ljava/awt/FontMetrics;
flags: (0x0000)
java.awt.Font oldfont;
descriptor: Ljava/awt/Font;
flags: (0x0000)
java.awt.FontMetrics getFontMetrics();
descriptor: ()Ljava/awt/FontMetrics;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.X11.XLabelPeer.cachedFontMetrics:Ljava/awt/FontMetrics;
ifnull 2
1: aload 0
getfield sun.awt.X11.XLabelPeer.cachedFontMetrics:Ljava/awt/FontMetrics;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerFont:()Ljava/awt/Font;
invokevirtual sun.awt.X11.XLabelPeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XLabelPeer;
void preInit(sun.awt.X11.XCreateWindowParams);
descriptor: (Lsun/awt/X11/XCreateWindowParams;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.X11.XComponentPeer.preInit:(Lsun/awt/X11/XCreateWindowParams;)V
1: aload 0
getfield sun.awt.X11.XLabelPeer.target:Ljava/awt/Component;
checkcast java.awt.Label
astore 2
start local 2 2: aload 0
aload 2
invokevirtual java.awt.Label.getText:()Ljava/lang/String;
putfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
3: aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
ifnonnull 5
4: aload 0
ldc ""
putfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
5: StackMap locals: java.awt.Label
StackMap stack:
aload 0
aload 2
invokevirtual java.awt.Label.getAlignment:()I
putfield sun.awt.X11.XLabelPeer.alignment:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/X11/XLabelPeer;
0 7 1 params Lsun/awt/X11/XCreateWindowParams;
2 7 2 target Ljava/awt/Label;
MethodParameters:
Name Flags
params
void <init>(java.awt.Label);
descriptor: (Ljava/awt/Label;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.X11.XComponentPeer.<init>:(Ljava/awt/Component;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XLabelPeer;
0 2 1 target Ljava/awt/Label;
MethodParameters:
Name Flags
target
public java.awt.Dimension getMinimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.X11.XLabelPeer.getFontMetrics:()Ljava/awt/FontMetrics;
astore 1
start local 1 1: aload 1
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
istore 2
start local 2 2: goto 5
end local 2 3: StackMap locals: sun.awt.X11.XLabelPeer java.awt.FontMetrics
StackMap stack: java.lang.NullPointerException
pop
4: iconst_0
istore 2
start local 2 5: StackMap locals: int
StackMap stack:
new java.awt.Dimension
dup
iload 2
bipush 8
iadd
6: aload 1
invokevirtual java.awt.FontMetrics.getAscent:()I
aload 1
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
iadd
bipush 6
iadd
7: invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/X11/XLabelPeer;
1 8 1 fm Ljava/awt/FontMetrics;
2 3 2 w I
5 8 2 w I
Exception table:
from to target type
1 2 3 Class java.lang.NullPointerException
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 1
aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
3: aload 1
iconst_0
iconst_0
aload 0
getfield sun.awt.X11.XLabelPeer.width:I
aload 0
getfield sun.awt.X11.XLabelPeer.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
4: aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerFont:()Ljava/awt/Font;
astore 4
start local 4 5: aload 1
aload 4
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
6: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 5
start local 5 7: aload 0
getfield sun.awt.X11.XLabelPeer.cachedFontMetrics:Ljava/awt/FontMetrics;
ifnonnull 10
8: aload 0
aload 5
putfield sun.awt.X11.XLabelPeer.cachedFontMetrics:Ljava/awt/FontMetrics;
9: goto 12
10: StackMap locals: sun.awt.X11.XLabelPeer java.awt.Graphics int int java.awt.Font java.awt.FontMetrics
StackMap stack:
aload 0
getfield sun.awt.X11.XLabelPeer.oldfont:Ljava/awt/Font;
aload 4
if_acmpeq 12
11: aload 0
aload 5
putfield sun.awt.X11.XLabelPeer.cachedFontMetrics:Ljava/awt/FontMetrics;
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XLabelPeer.alignment:I
tableswitch { // 0 - 2
0: 13
1: 19
2: 16
default: 21
}
13: StackMap locals:
StackMap stack:
iconst_2
istore 2
14: aload 0
getfield sun.awt.X11.XLabelPeer.height:I
aload 5
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 5
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
istore 3
15: goto 21
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XLabelPeer.width:I
aload 5
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
iconst_2
iadd
isub
istore 2
17: aload 0
getfield sun.awt.X11.XLabelPeer.height:I
aload 5
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 5
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
istore 3
18: goto 21
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XLabelPeer.width:I
aload 5
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
isub
iconst_2
idiv
istore 2
20: aload 0
getfield sun.awt.X11.XLabelPeer.height:I
aload 5
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 5
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
istore 3
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.awt.X11.XLabelPeer.isEnabled:()Z
ifeq 25
22: aload 1
aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerForeground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
23: aload 1
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
iload 2
iload 3
invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
24: goto 29
25: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual java.awt.Color.brighter:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
26: aload 1
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
iload 2
iload 3
invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
27: aload 1
aload 0
invokevirtual sun.awt.X11.XLabelPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
28: aload 1
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
iload 2
iconst_1
isub
iload 3
iconst_1
isub
invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
29: 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 30 0 this Lsun/awt/X11/XLabelPeer;
0 30 1 g Ljava/awt/Graphics;
1 30 2 textX I
2 30 3 textY I
5 30 4 f Ljava/awt/Font;
7 30 5 fm Ljava/awt/FontMetrics;
MethodParameters:
Name Flags
g
public void setText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc ""
astore 1
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
3: aload 0
aload 1
putfield sun.awt.X11.XLabelPeer.label:Ljava/lang/String;
4: aload 0
invokevirtual sun.awt.X11.XLabelPeer.repaint:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/X11/XLabelPeer;
0 6 1 label Ljava/lang/String;
MethodParameters:
Name Flags
label
public void setAlignment(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
getfield sun.awt.X11.XLabelPeer.alignment:I
iload 1
if_icmpeq 3
1: aload 0
iload 1
putfield sun.awt.X11.XLabelPeer.alignment:I
2: aload 0
invokevirtual sun.awt.X11.XLabelPeer.repaint:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/X11/XLabelPeer;
0 4 1 alignment I
MethodParameters:
Name Flags
alignment final
}
SourceFile: "XLabelPeer.java"