class sun.awt.motif.MLabelPeer extends sun.awt.motif.MComponentPeer implements java.awt.peer.LabelPeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.motif.MLabelPeer
super_class: sun.awt.motif.MComponentPeer
{
native void create(sun.awt.motif.MComponentPeer);
descriptor: (Lsun/awt/motif/MComponentPeer;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
parent
public void initialize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.awt.motif.MLabelPeer.target:Ljava/awt/Component;
checkcast java.awt.Label
astore 1
start local 1 1: aload 1
invokevirtual java.awt.Label.getText:()Ljava/lang/String;
ifnull 3
2: aload 0
aload 1
invokevirtual java.awt.Label.getText:()Ljava/lang/String;
invokevirtual sun.awt.motif.MLabelPeer.setText:(Ljava/lang/String;)V
3: StackMap locals: java.awt.Label
StackMap stack:
aload 1
invokevirtual java.awt.Label.getAlignment:()I
dup
istore 2
start local 2 4: ifeq 6
5: aload 0
iload 2
invokevirtual sun.awt.motif.MLabelPeer.setAlignment:(I)V
6: StackMap locals: int
StackMap stack:
aload 0
invokespecial sun.awt.motif.MComponentPeer.initialize:()V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/motif/MLabelPeer;
1 8 1 l Ljava/awt/Label;
4 8 2 align I
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.motif.MComponentPeer.<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/motif/MLabelPeer;
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
aload 0
getfield sun.awt.motif.MLabelPeer.target:Ljava/awt/Component;
invokevirtual java.awt.Component.getFont:()Ljava/awt/Font;
invokevirtual sun.awt.motif.MLabelPeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 1
start local 1 1: aload 0
getfield sun.awt.motif.MLabelPeer.target:Ljava/awt/Component;
checkcast java.awt.Label
invokevirtual java.awt.Label.getText:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 3
ldc ""
astore 2
3: StackMap locals: java.awt.FontMetrics java.lang.String
StackMap stack:
new java.awt.Dimension
dup
aload 1
aload 2
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
bipush 14
iadd
4: aload 1
invokevirtual java.awt.FontMetrics.getHeight:()I
bipush 8
iadd
5: invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/motif/MLabelPeer;
1 6 1 fm Ljava/awt/FontMetrics;
2 6 2 label Ljava/lang/String;
public native void setText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
label
public native void setAlignment(int);
descriptor: (I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
alignment
public void print(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MLabelPeer.target:Ljava/awt/Component;
checkcast java.awt.Label
astore 2
start local 2 1: aload 2
invokevirtual java.awt.Label.size:()Ljava/awt/Dimension;
astore 3
start local 3 2: aload 2
invokevirtual java.awt.Label.getBackground:()Ljava/awt/Color;
astore 4
start local 4 3: aload 2
invokevirtual java.awt.Label.getForeground:()Ljava/awt/Color;
astore 5
start local 5 4: aload 1
aload 4
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
5: aload 1
iconst_1
iconst_1
aload 3
getfield java.awt.Dimension.width:I
iconst_2
isub
aload 3
getfield java.awt.Dimension.height:I
iconst_2
isub
invokevirtual java.awt.Graphics.fillRect:(IIII)V
6: aload 1
aload 5
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
7: aload 1
aload 2
invokevirtual java.awt.Label.getFont:()Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
8: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 6
start local 6 9: aload 2
invokevirtual java.awt.Label.getText:()Ljava/lang/String;
astore 7
start local 7 10: aload 2
invokevirtual java.awt.Label.getAlignment:()I
tableswitch { // 0 - 2
0: 11
1: 19
2: 15
default: 22
}
11: StackMap locals: sun.awt.motif.MLabelPeer java.awt.Graphics java.awt.Label java.awt.Dimension java.awt.Color java.awt.Color java.awt.FontMetrics java.lang.String
StackMap stack:
aload 1
aload 7
iconst_2
12: aload 3
getfield java.awt.Dimension.height:I
aload 6
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 6
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
13: invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
14: goto 22
15: StackMap locals:
StackMap stack:
aload 1
aload 7
aload 3
getfield java.awt.Dimension.width:I
aload 6
aload 7
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
iconst_2
iadd
isub
16: aload 3
getfield java.awt.Dimension.height:I
aload 6
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 6
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
17: invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
18: goto 22
19: StackMap locals:
StackMap stack:
aload 1
aload 7
aload 3
getfield java.awt.Dimension.width:I
aload 6
aload 7
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
isub
iconst_2
idiv
20: aload 3
getfield java.awt.Dimension.height:I
aload 6
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 6
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
21: invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
22: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.motif.MLabelPeer.target:Ljava/awt/Component;
aload 1
invokevirtual java.awt.Component.print:(Ljava/awt/Graphics;)V
23: 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 24 0 this Lsun/awt/motif/MLabelPeer;
0 24 1 g Ljava/awt/Graphics;
1 24 2 l Ljava/awt/Label;
2 24 3 d Ljava/awt/Dimension;
3 24 4 bg Ljava/awt/Color;
4 24 5 fg Ljava/awt/Color;
9 24 6 fm Ljava/awt/FontMetrics;
10 24 7 lbl Ljava/lang/String;
MethodParameters:
Name Flags
g
public java.awt.Dimension minimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.motif.MLabelPeer.getMinimumSize:()Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/motif/MLabelPeer;
}
SourceFile: "MLabelPeer.java"