public class javax.swing.plaf.basic.BasicToggleButtonUI extends javax.swing.plaf.basic.BasicButtonUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.basic.BasicToggleButtonUI
super_class: javax.swing.plaf.basic.BasicButtonUI
{
private static final java.lang.Object BASIC_TOGGLE_BUTTON_UI_KEY;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String propertyPrefix;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ToggleButton."
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javax.swing.plaf.basic.BasicToggleButtonUI.BASIC_TOGGLE_BUTTON_UI_KEY:Ljava/lang/Object;
1: 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 0: aload 0
invokespecial javax.swing.plaf.basic.BasicButtonUI.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicToggleButtonUI;
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljavax/swing/plaf/ComponentUI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
astore 1
start local 1 1: aload 1
getstatic javax.swing.plaf.basic.BasicToggleButtonUI.BASIC_TOGGLE_BUTTON_UI_KEY:Ljava/lang/Object;
invokevirtual sun.awt.AppContext.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.plaf.basic.BasicToggleButtonUI
2: astore 2
start local 2 3: aload 2
ifnonnull 6
4: new javax.swing.plaf.basic.BasicToggleButtonUI
dup
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.<init>:()V
astore 2
5: aload 1
getstatic javax.swing.plaf.basic.BasicToggleButtonUI.BASIC_TOGGLE_BUTTON_UI_KEY:Ljava/lang/Object;
aload 2
invokevirtual sun.awt.AppContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: sun.awt.AppContext javax.swing.plaf.basic.BasicToggleButtonUI
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 b Ljavax/swing/JComponent;
1 7 1 appContext Lsun/awt/AppContext;
3 7 2 toggleButtonUI Ljavax/swing/plaf/basic/BasicToggleButtonUI;
MethodParameters:
Name Flags
b
protected java.lang.String getPropertyPrefix();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "ToggleButton."
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicToggleButtonUI;
public void paint(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast javax.swing.AbstractButton
astore 3
start local 3 1: aload 3
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
astore 4
start local 4 2: aload 3
invokevirtual javax.swing.AbstractButton.getSize:()Ljava/awt/Dimension;
astore 5
start local 5 3: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 6
start local 6 4: aload 2
invokevirtual javax.swing.JComponent.getInsets:()Ljava/awt/Insets;
astore 7
start local 7 5: new java.awt.Rectangle
dup
aload 5
invokespecial java.awt.Rectangle.<init>:(Ljava/awt/Dimension;)V
astore 8
start local 8 6: aload 8
dup
getfield java.awt.Rectangle.x:I
aload 7
getfield java.awt.Insets.left:I
iadd
putfield java.awt.Rectangle.x:I
7: aload 8
dup
getfield java.awt.Rectangle.y:I
aload 7
getfield java.awt.Insets.top:I
iadd
putfield java.awt.Rectangle.y:I
8: aload 8
dup
getfield java.awt.Rectangle.width:I
aload 7
getfield java.awt.Insets.right:I
aload 8
getfield java.awt.Rectangle.x:I
iadd
isub
putfield java.awt.Rectangle.width:I
9: aload 8
dup
getfield java.awt.Rectangle.height:I
aload 7
getfield java.awt.Insets.bottom:I
aload 8
getfield java.awt.Rectangle.y:I
iadd
isub
putfield java.awt.Rectangle.height:I
10: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 9
start local 9 11: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 10
start local 10 12: aload 2
invokevirtual javax.swing.JComponent.getFont:()Ljava/awt/Font;
astore 11
start local 11 13: aload 1
aload 11
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
14: aload 2
aload 6
aload 3
invokevirtual javax.swing.AbstractButton.getText:()Ljava/lang/String;
aload 3
invokevirtual javax.swing.AbstractButton.getIcon:()Ljavax/swing/Icon;
15: aload 3
invokevirtual javax.swing.AbstractButton.getVerticalAlignment:()I
aload 3
invokevirtual javax.swing.AbstractButton.getHorizontalAlignment:()I
16: aload 3
invokevirtual javax.swing.AbstractButton.getVerticalTextPosition:()I
aload 3
invokevirtual javax.swing.AbstractButton.getHorizontalTextPosition:()I
17: aload 8
aload 9
aload 10
18: aload 3
invokevirtual javax.swing.AbstractButton.getText:()Ljava/lang/String;
ifnonnull 19
iconst_0
goto 20
StackMap locals: javax.swing.plaf.basic.BasicToggleButtonUI java.awt.Graphics javax.swing.JComponent javax.swing.AbstractButton javax.swing.ButtonModel java.awt.Dimension java.awt.FontMetrics java.awt.Insets java.awt.Rectangle java.awt.Rectangle java.awt.Rectangle java.awt.Font
StackMap stack: javax.swing.JComponent java.awt.FontMetrics java.lang.String javax.swing.Icon int int int int java.awt.Rectangle java.awt.Rectangle java.awt.Rectangle
19: aload 3
invokevirtual javax.swing.AbstractButton.getIconTextGap:()I
20: StackMap locals: javax.swing.plaf.basic.BasicToggleButtonUI java.awt.Graphics javax.swing.JComponent javax.swing.AbstractButton javax.swing.ButtonModel java.awt.Dimension java.awt.FontMetrics java.awt.Insets java.awt.Rectangle java.awt.Rectangle java.awt.Rectangle java.awt.Font
StackMap stack: javax.swing.JComponent java.awt.FontMetrics java.lang.String javax.swing.Icon int int int int java.awt.Rectangle java.awt.Rectangle java.awt.Rectangle int
invokestatic javax.swing.SwingUtilities.layoutCompoundLabel:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;Ljavax/swing/Icon;IIIILjava/awt/Rectangle;Ljava/awt/Rectangle;Ljava/awt/Rectangle;I)Ljava/lang/String;
astore 12
start local 12 21: aload 1
aload 3
invokevirtual javax.swing.AbstractButton.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
22: aload 4
invokeinterface javax.swing.ButtonModel.isArmed:()Z
ifeq 23
aload 4
invokeinterface javax.swing.ButtonModel.isPressed:()Z
ifne 24
StackMap locals: java.lang.String
StackMap stack:
23: aload 4
invokeinterface javax.swing.ButtonModel.isSelected:()Z
ifeq 25
24: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual javax.swing.plaf.basic.BasicToggleButtonUI.paintButtonPressed:(Ljava/awt/Graphics;Ljavax/swing/AbstractButton;)V
25: StackMap locals:
StackMap stack:
aload 3
invokevirtual javax.swing.AbstractButton.getIcon:()Ljavax/swing/Icon;
ifnull 27
26: aload 0
aload 1
aload 3
aload 9
invokevirtual javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon:(Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;)V
27: StackMap locals:
StackMap stack:
aload 12
ifnull 33
aload 12
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 33
28: aload 2
ldc "html"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.text.View
astore 13
start local 13 29: aload 13
ifnull 32
30: aload 13
aload 1
aload 10
invokevirtual javax.swing.text.View.paint:(Ljava/awt/Graphics;Ljava/awt/Shape;)V
31: goto 33
32: StackMap locals: javax.swing.text.View
StackMap stack:
aload 0
aload 1
aload 3
aload 10
aload 12
invokevirtual javax.swing.plaf.basic.BasicToggleButtonUI.paintText:(Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;Ljava/lang/String;)V
end local 13 33: StackMap locals:
StackMap stack:
aload 3
invokevirtual javax.swing.AbstractButton.isFocusPainted:()Z
ifeq 35
aload 3
invokevirtual javax.swing.AbstractButton.hasFocus:()Z
ifeq 35
34: aload 0
aload 1
aload 3
aload 8
aload 10
aload 9
invokevirtual javax.swing.plaf.basic.BasicToggleButtonUI.paintFocus:(Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;Ljava/awt/Rectangle;Ljava/awt/Rectangle;)V
35: StackMap locals:
StackMap stack:
return
end local 12 end local 11 end local 10 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 36 0 this Ljavax/swing/plaf/basic/BasicToggleButtonUI;
0 36 1 g Ljava/awt/Graphics;
0 36 2 c Ljavax/swing/JComponent;
1 36 3 b Ljavax/swing/AbstractButton;
2 36 4 model Ljavax/swing/ButtonModel;
3 36 5 size Ljava/awt/Dimension;
4 36 6 fm Ljava/awt/FontMetrics;
5 36 7 i Ljava/awt/Insets;
6 36 8 viewRect Ljava/awt/Rectangle;
11 36 9 iconRect Ljava/awt/Rectangle;
12 36 10 textRect Ljava/awt/Rectangle;
13 36 11 f Ljava/awt/Font;
21 36 12 text Ljava/lang/String;
29 33 13 v Ljavax/swing/text/View;
MethodParameters:
Name Flags
g
c
protected void paintIcon(java.awt.Graphics, javax.swing.AbstractButton, java.awt.Rectangle);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 4
invokeinterface javax.swing.ButtonModel.isEnabled:()Z
ifne 8
3: aload 4
invokeinterface javax.swing.ButtonModel.isSelected:()Z
ifeq 6
4: aload 2
invokevirtual javax.swing.AbstractButton.getDisabledSelectedIcon:()Ljavax/swing/Icon;
astore 5
5: goto 23
6: StackMap locals: javax.swing.ButtonModel javax.swing.Icon
StackMap stack:
aload 2
invokevirtual javax.swing.AbstractButton.getDisabledIcon:()Ljavax/swing/Icon;
astore 5
7: goto 23
StackMap locals:
StackMap stack:
8: aload 4
invokeinterface javax.swing.ButtonModel.isPressed:()Z
ifeq 13
aload 4
invokeinterface javax.swing.ButtonModel.isArmed:()Z
ifeq 13
9: aload 2
invokevirtual javax.swing.AbstractButton.getPressedIcon:()Ljavax/swing/Icon;
astore 5
10: aload 5
ifnonnull 23
11: aload 2
invokevirtual javax.swing.AbstractButton.getSelectedIcon:()Ljavax/swing/Icon;
astore 5
12: goto 23
StackMap locals:
StackMap stack:
13: aload 4
invokeinterface javax.swing.ButtonModel.isSelected:()Z
ifeq 21
14: aload 2
invokevirtual javax.swing.AbstractButton.isRolloverEnabled:()Z
ifeq 19
aload 4
invokeinterface javax.swing.ButtonModel.isRollover:()Z
ifeq 19
15: aload 2
invokevirtual javax.swing.AbstractButton.getRolloverSelectedIcon:()Ljavax/swing/Icon;
astore 5
16: aload 5
ifnonnull 23
17: aload 2
invokevirtual javax.swing.AbstractButton.getSelectedIcon:()Ljavax/swing/Icon;
astore 5
18: goto 23
19: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.AbstractButton.getSelectedIcon:()Ljavax/swing/Icon;
astore 5
20: goto 23
StackMap locals:
StackMap stack:
21: aload 2
invokevirtual javax.swing.AbstractButton.isRolloverEnabled:()Z
ifeq 23
aload 4
invokeinterface javax.swing.ButtonModel.isRollover:()Z
ifeq 23
22: aload 2
invokevirtual javax.swing.AbstractButton.getRolloverIcon:()Ljavax/swing/Icon;
astore 5
23: StackMap locals:
StackMap stack:
aload 5
ifnonnull 25
24: aload 2
invokevirtual javax.swing.AbstractButton.getIcon:()Ljavax/swing/Icon;
astore 5
25: StackMap locals:
StackMap stack:
aload 5
aload 2
aload 1
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
invokeinterface javax.swing.Icon.paintIcon:(Ljava/awt/Component;Ljava/awt/Graphics;II)V
26: 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 27 0 this Ljavax/swing/plaf/basic/BasicToggleButtonUI;
0 27 1 g Ljava/awt/Graphics;
0 27 2 b Ljavax/swing/AbstractButton;
0 27 3 iconRect Ljava/awt/Rectangle;
1 27 4 model Ljavax/swing/ButtonModel;
2 27 5 icon Ljavax/swing/Icon;
MethodParameters:
Name Flags
g
b
iconRect
protected int getTextShiftOffset();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicToggleButtonUI;
}
SourceFile: "BasicToggleButtonUI.java"