public class sun.awt.motif.MCheckboxPeer extends sun.awt.motif.MComponentPeer implements java.awt.peer.CheckboxPeer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.motif.MCheckboxPeer
super_class: sun.awt.motif.MComponentPeer
{
private boolean inUpCall;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean inInit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final int SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 19
static final int BORDER;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
static final int SIZ;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
native void create(sun.awt.motif.MComponentPeer);
descriptor: (Lsun/awt/motif/MComponentPeer;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
parent
native void pSetState(boolean);
descriptor: (Z)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
state
native boolean pGetState();
descriptor: ()Z
flags: (0x0100) ACC_NATIVE
public native void setLabel(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
label
public native void setCheckboxGroup(java.awt.CheckboxGroup);
descriptor: (Ljava/awt/CheckboxGroup;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
g
void initialize();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
checkcast java.awt.Checkbox
astore 1
start local 1 1: aload 0
iconst_1
putfield sun.awt.motif.MCheckboxPeer.inInit:Z
2: aload 0
aload 1
invokevirtual java.awt.Checkbox.getState:()Z
invokevirtual sun.awt.motif.MCheckboxPeer.setState:(Z)V
3: aload 0
aload 1
invokevirtual java.awt.Checkbox.getCheckboxGroup:()Ljava/awt/CheckboxGroup;
invokevirtual sun.awt.motif.MCheckboxPeer.setCheckboxGroup:(Ljava/awt/CheckboxGroup;)V
4: aload 0
invokespecial sun.awt.motif.MComponentPeer.initialize:()V
5: aload 0
iconst_0
putfield sun.awt.motif.MCheckboxPeer.inInit:Z
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/motif/MCheckboxPeer;
1 7 1 t Ljava/awt/Checkbox;
public void <init>(java.awt.Checkbox);
descriptor: (Ljava/awt/Checkbox;)V
flags: (0x0001) ACC_PUBLIC
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: aload 0
iconst_0
putfield sun.awt.motif.MCheckboxPeer.inUpCall:Z
2: aload 0
iconst_0
putfield sun.awt.motif.MCheckboxPeer.inInit:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/motif/MCheckboxPeer;
0 4 1 target Ljava/awt/Checkbox;
MethodParameters:
Name Flags
target
public boolean isFocusable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/motif/MCheckboxPeer;
public void setState(boolean);
descriptor: (Z)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.motif.MCheckboxPeer.inInit:Z
ifeq 3
1: aload 0
iload 1
invokevirtual sun.awt.motif.MCheckboxPeer.pSetState:(Z)V
2: goto 5
StackMap locals:
StackMap stack:
3: aload 0
getfield sun.awt.motif.MCheckboxPeer.inUpCall:Z
ifne 5
iload 1
aload 0
invokevirtual sun.awt.motif.MCheckboxPeer.pGetState:()Z
if_icmpeq 5
4: aload 0
iload 1
invokevirtual sun.awt.motif.MCheckboxPeer.pSetState:(Z)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/motif/MCheckboxPeer;
0 6 1 state Z
MethodParameters:
Name Flags
state
private native int getIndicatorSize();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native int getSpacing();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
public java.awt.Dimension getMinimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
checkcast java.awt.Checkbox
invokevirtual java.awt.Checkbox.getLabel:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: ldc ""
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
invokevirtual java.awt.Component.getFont:()Ljava/awt/Font;
invokevirtual sun.awt.motif.MCheckboxPeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 2
start local 2 4: aload 2
aload 1
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
aload 0
invokevirtual sun.awt.motif.MCheckboxPeer.getIndicatorSize:()I
iadd
aload 0
invokevirtual sun.awt.motif.MCheckboxPeer.getSpacing:()I
iadd
bipush 8
iadd
istore 3
start local 3 5: aload 2
invokevirtual java.awt.FontMetrics.getHeight:()I
bipush 8
iadd
bipush 15
invokestatic java.lang.Math.max:(II)I
istore 4
start local 4 6: new java.awt.Dimension
dup
iload 3
iload 4
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/motif/MCheckboxPeer;
1 7 1 lbl Ljava/lang/String;
4 7 2 fm Ljava/awt/FontMetrics;
5 7 3 wdth I
6 7 4 hght I
void notifyStateChanged(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
checkcast java.awt.Checkbox
astore 2
start local 2 1: new java.awt.event.ItemEvent
dup
aload 2
2: sipush 701
3: aload 2
invokevirtual java.awt.Checkbox.getLabel:()Ljava/lang/String;
4: iload 1
ifeq 5
iconst_1
goto 6
StackMap locals: sun.awt.motif.MCheckboxPeer int java.awt.Checkbox
StackMap stack: new 1 new 1 java.awt.Checkbox int java.lang.String
5: iconst_2
6: StackMap locals: sun.awt.motif.MCheckboxPeer int java.awt.Checkbox
StackMap stack: new 1 new 1 java.awt.Checkbox int java.lang.String int
invokespecial java.awt.event.ItemEvent.<init>:(Ljava/awt/ItemSelectable;ILjava/lang/Object;I)V
astore 3
start local 3 7: aload 0
aload 3
invokevirtual sun.awt.motif.MCheckboxPeer.postEvent:(Ljava/awt/AWTEvent;)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/awt/motif/MCheckboxPeer;
0 9 1 state Z
1 9 2 cb Ljava/awt/Checkbox;
7 9 3 e Ljava/awt/event/ItemEvent;
MethodParameters:
Name Flags
state
void action(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
checkcast java.awt.Checkbox
astore 2
start local 2 1: iload 1
istore 3
start local 3 2: aload 2
new sun.awt.motif.MCheckboxPeer$1
dup
aload 0
aload 2
iload 3
invokespecial sun.awt.motif.MCheckboxPeer$1.<init>:(Lsun/awt/motif/MCheckboxPeer;Ljava/awt/Checkbox;Z)V
invokestatic sun.awt.motif.MToolkit.executeOnEventHandlerThread:(Ljava/lang/Object;Ljava/lang/Runnable;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/motif/MCheckboxPeer;
0 4 1 state Z
1 4 2 cb Ljava/awt/Checkbox;
2 4 3 newState Z
MethodParameters:
Name Flags
state
public void print(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=11, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
checkcast java.awt.Checkbox
astore 2
start local 2 1: aload 2
invokevirtual java.awt.Checkbox.size:()Ljava/awt/Dimension;
astore 3
start local 3 2: aload 2
invokevirtual java.awt.Checkbox.getBackground:()Ljava/awt/Color;
astore 4
start local 4 3: aload 2
invokevirtual java.awt.Checkbox.getForeground:()Ljava/awt/Color;
astore 5
start local 5 4: aload 4
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
astore 6
start local 6 5: iconst_4
istore 7
start local 7 6: aload 3
getfield java.awt.Dimension.height:I
bipush 19
isub
iconst_2
idiv
iconst_4
iadd
istore 8
start local 8 7: aload 1
aload 2
invokevirtual java.awt.Checkbox.getState:()Z
ifeq 8
aload 6
goto 9
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: java.awt.Graphics
8: aload 4
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: java.awt.Graphics java.awt.Color
9: invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
10: aload 2
invokevirtual java.awt.Checkbox.getCheckboxGroup:()Ljava/awt/CheckboxGroup;
ifnull 19
11: aload 1
iload 7
iload 8
bipush 10
bipush 10
invokevirtual java.awt.Graphics.fillOval:(IIII)V
12: aload 0
aload 1
aload 4
iload 7
iload 8
bipush 10
bipush 10
aload 2
invokevirtual java.awt.Checkbox.getState:()Z
ifeq 13
iconst_0
goto 14
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Color int int int int
13: iconst_1
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Color int int int int int
14: invokevirtual sun.awt.motif.MCheckboxPeer.draw3DOval:(Ljava/awt/Graphics;Ljava/awt/Color;IIIIZ)V
15: aload 2
invokevirtual java.awt.Checkbox.getState:()Z
ifeq 27
16: aload 1
aload 5
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
17: aload 1
iload 7
iconst_3
iadd
iload 8
iconst_3
iadd
iconst_4
iconst_4
invokevirtual java.awt.Graphics.fillOval:(IIII)V
18: goto 27
19: StackMap locals:
StackMap stack:
aload 1
iload 7
iload 8
bipush 10
bipush 10
invokevirtual java.awt.Graphics.fillRect:(IIII)V
20: aload 0
aload 1
aload 4
iload 7
iload 8
bipush 10
bipush 10
aload 2
invokevirtual java.awt.Checkbox.getState:()Z
ifeq 21
iconst_0
goto 22
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Color int int int int
21: iconst_1
StackMap locals: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Checkbox java.awt.Dimension java.awt.Color java.awt.Color java.awt.Color int int
StackMap stack: sun.awt.motif.MCheckboxPeer java.awt.Graphics java.awt.Color int int int int int
22: invokevirtual sun.awt.motif.MCheckboxPeer.draw3DRect:(Ljava/awt/Graphics;Ljava/awt/Color;IIIIZ)V
23: aload 2
invokevirtual java.awt.Checkbox.getState:()Z
ifeq 27
24: aload 1
aload 5
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
25: aload 1
iload 7
iconst_1
iadd
iload 8
iconst_1
iadd
iload 7
bipush 10
iadd
iconst_1
isub
iload 8
bipush 10
iadd
iconst_1
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
26: aload 1
iload 7
iconst_1
iadd
iload 8
bipush 10
iadd
iconst_1
isub
iload 7
bipush 10
iadd
iconst_1
isub
iload 8
iconst_1
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
27: StackMap locals:
StackMap stack:
aload 1
aload 5
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
28: aload 2
invokevirtual java.awt.Checkbox.getLabel:()Ljava/lang/String;
astore 9
start local 9 29: aload 9
ifnull 35
30: aload 1
aload 2
invokevirtual java.awt.Checkbox.getFont:()Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
31: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 10
start local 10 32: aload 1
aload 9
bipush 19
33: aload 3
getfield java.awt.Dimension.height:I
aload 10
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 10
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
34: invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
end local 10 35: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield sun.awt.motif.MCheckboxPeer.target:Ljava/awt/Component;
aload 1
invokevirtual java.awt.Component.print:(Ljava/awt/Graphics;)V
36: 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 37 0 this Lsun/awt/motif/MCheckboxPeer;
0 37 1 g Ljava/awt/Graphics;
1 37 2 cb Ljava/awt/Checkbox;
2 37 3 d Ljava/awt/Dimension;
3 37 4 bg Ljava/awt/Color;
4 37 5 fg Ljava/awt/Color;
5 37 6 shadow Ljava/awt/Color;
6 37 7 x I
7 37 8 y I
29 37 9 lbl Ljava/lang/String;
32 35 10 fm Ljava/awt/FontMetrics;
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.MCheckboxPeer.getMinimumSize:()Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/motif/MCheckboxPeer;
}
SourceFile: "MCheckboxPeer.java"
NestMembers:
sun.awt.motif.MCheckboxPeer$1
InnerClasses:
sun.awt.motif.MCheckboxPeer$1