public class javax.swing.plaf.metal.MetalToggleButtonUI extends javax.swing.plaf.basic.BasicToggleButtonUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.metal.MetalToggleButtonUI
super_class: javax.swing.plaf.basic.BasicToggleButtonUI
{
private static final java.lang.Object METAL_TOGGLE_BUTTON_UI_KEY;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected java.awt.Color focusColor;
descriptor: Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
protected java.awt.Color selectColor;
descriptor: Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
protected java.awt.Color disabledTextColor;
descriptor: Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
private boolean defaults_initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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.metal.MetalToggleButtonUI.METAL_TOGGLE_BUTTON_UI_KEY:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.<init>:()V
1: aload 0
iconst_0
putfield javax.swing.plaf.metal.MetalToggleButtonUI.defaults_initialized:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
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.metal.MetalToggleButtonUI.METAL_TOGGLE_BUTTON_UI_KEY:Ljava/lang/Object;
invokevirtual sun.awt.AppContext.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.plaf.metal.MetalToggleButtonUI
2: astore 2
start local 2 3: aload 2
ifnonnull 6
4: new javax.swing.plaf.metal.MetalToggleButtonUI
dup
invokespecial javax.swing.plaf.metal.MetalToggleButtonUI.<init>:()V
astore 2
5: aload 1
getstatic javax.swing.plaf.metal.MetalToggleButtonUI.METAL_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.metal.MetalToggleButtonUI
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 metalToggleButtonUI Ljavax/swing/plaf/metal/MetalToggleButtonUI;
MethodParameters:
Name Flags
b
public void installDefaults(javax.swing.AbstractButton);
descriptor: (Ljavax/swing/AbstractButton;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.installDefaults:(Ljavax/swing/AbstractButton;)V
1: aload 0
getfield javax.swing.plaf.metal.MetalToggleButtonUI.defaults_initialized:Z
ifne 6
2: aload 0
new java.lang.StringBuilder
dup
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getPropertyPrefix:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "focus"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
putfield javax.swing.plaf.metal.MetalToggleButtonUI.focusColor:Ljava/awt/Color;
3: aload 0
new java.lang.StringBuilder
dup
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getPropertyPrefix:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "select"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
putfield javax.swing.plaf.metal.MetalToggleButtonUI.selectColor:Ljava/awt/Color;
4: aload 0
new java.lang.StringBuilder
dup
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getPropertyPrefix:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "disabledText"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
putfield javax.swing.plaf.metal.MetalToggleButtonUI.disabledTextColor:Ljava/awt/Color;
5: aload 0
iconst_1
putfield javax.swing.plaf.metal.MetalToggleButtonUI.defaults_initialized:Z
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 7 1 b Ljavax/swing/AbstractButton;
MethodParameters:
Name Flags
b
protected void uninstallDefaults(javax.swing.AbstractButton);
descriptor: (Ljavax/swing/AbstractButton;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.uninstallDefaults:(Ljavax/swing/AbstractButton;)V
1: aload 0
iconst_0
putfield javax.swing.plaf.metal.MetalToggleButtonUI.defaults_initialized:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 3 1 b Ljavax/swing/AbstractButton;
MethodParameters:
Name Flags
b
protected java.awt.Color getSelectColor();
descriptor: ()Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalToggleButtonUI.selectColor:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
protected java.awt.Color getDisabledTextColor();
descriptor: ()Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalToggleButtonUI.disabledTextColor:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
protected java.awt.Color getFocusColor();
descriptor: ()Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalToggleButtonUI.focusColor:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
public void update(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, 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 2
invokevirtual javax.swing.JComponent.getBackground:()Ljava/awt/Color;
instanceof javax.swing.plaf.UIResource
ifeq 19
2: aload 3
invokevirtual javax.swing.AbstractButton.isContentAreaFilled:()Z
ifeq 19
aload 2
invokevirtual javax.swing.JComponent.isEnabled:()Z
ifeq 19
3: aload 3
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
astore 4
start local 4 4: aload 2
invokestatic javax.swing.plaf.metal.MetalUtils.isToolBarButton:(Ljavax/swing/JComponent;)Z
ifne 12
5: aload 4
invokeinterface javax.swing.ButtonModel.isArmed:()Z
ifne 19
aload 4
invokeinterface javax.swing.ButtonModel.isPressed:()Z
ifne 19
6: aload 2
aload 1
ldc "ToggleButton.gradient"
iconst_0
iconst_0
aload 2
invokevirtual javax.swing.JComponent.getWidth:()I
7: aload 2
invokevirtual javax.swing.JComponent.getHeight:()I
iconst_1
8: invokestatic javax.swing.plaf.metal.MetalUtils.drawGradient:(Ljava/awt/Component;Ljava/awt/Graphics;Ljava/lang/String;IIIIZ)Z
9: ifeq 19
10: aload 0
aload 1
aload 2
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.paint:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
11: return
12: StackMap locals: javax.swing.AbstractButton javax.swing.ButtonModel
StackMap stack:
aload 4
invokeinterface javax.swing.ButtonModel.isRollover:()Z
ifne 13
aload 4
invokeinterface javax.swing.ButtonModel.isSelected:()Z
ifeq 19
13: StackMap locals:
StackMap stack:
aload 2
aload 1
ldc "ToggleButton.gradient"
14: iconst_0
iconst_0
aload 2
invokevirtual javax.swing.JComponent.getWidth:()I
aload 2
invokevirtual javax.swing.JComponent.getHeight:()I
iconst_1
15: invokestatic javax.swing.plaf.metal.MetalUtils.drawGradient:(Ljava/awt/Component;Ljava/awt/Graphics;Ljava/lang/String;IIIIZ)Z
16: ifeq 19
17: aload 0
aload 1
aload 2
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.paint:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
18: return
end local 4 19: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.update:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
20: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 21 1 g Ljava/awt/Graphics;
0 21 2 c Ljavax/swing/JComponent;
1 21 3 button Ljavax/swing/AbstractButton;
4 19 4 model Ljavax/swing/ButtonModel;
MethodParameters:
Name Flags
g
c
protected void paintButtonPressed(java.awt.Graphics, javax.swing.AbstractButton);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/AbstractButton;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual javax.swing.AbstractButton.isContentAreaFilled:()Z
ifeq 3
1: aload 1
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getSelectColor:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
2: aload 1
iconst_0
iconst_0
aload 2
invokevirtual javax.swing.AbstractButton.getWidth:()I
aload 2
invokevirtual javax.swing.AbstractButton.getHeight:()I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 4 1 g Ljava/awt/Graphics;
0 4 2 b Ljavax/swing/AbstractButton;
MethodParameters:
Name Flags
g
b
protected void paintText(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle, java.lang.String);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;Ljava/awt/Rectangle;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
checkcast javax.swing.AbstractButton
astore 5
start local 5 1: aload 5
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
astore 6
start local 6 2: aload 5
aload 1
invokestatic sun.swing.SwingUtilities2.getFontMetrics:(Ljavax/swing/JComponent;Ljava/awt/Graphics;)Ljava/awt/FontMetrics;
astore 7
start local 7 3: aload 5
invokevirtual javax.swing.AbstractButton.getDisplayedMnemonicIndex:()I
istore 8
start local 8 4: aload 6
invokeinterface javax.swing.ButtonModel.isEnabled:()Z
ifeq 7
5: aload 1
aload 5
invokevirtual javax.swing.AbstractButton.getForeground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
6: goto 11
7: StackMap locals: javax.swing.plaf.metal.MetalToggleButtonUI java.awt.Graphics javax.swing.JComponent java.awt.Rectangle java.lang.String javax.swing.AbstractButton javax.swing.ButtonModel java.awt.FontMetrics int
StackMap stack:
aload 6
invokeinterface javax.swing.ButtonModel.isSelected:()Z
ifeq 10
8: aload 1
aload 2
invokevirtual javax.swing.JComponent.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getDisabledTextColor:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
11: StackMap locals:
StackMap stack:
aload 2
aload 1
aload 4
iload 8
12: aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
aload 7
invokevirtual java.awt.FontMetrics.getAscent:()I
iadd
13: invokestatic sun.swing.SwingUtilities2.drawStringUnderlineCharAt:(Ljavax/swing/JComponent;Ljava/awt/Graphics;Ljava/lang/String;III)V
14: return
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 15 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 15 1 g Ljava/awt/Graphics;
0 15 2 c Ljavax/swing/JComponent;
0 15 3 textRect Ljava/awt/Rectangle;
0 15 4 text Ljava/lang/String;
1 15 5 b Ljavax/swing/AbstractButton;
2 15 6 model Ljavax/swing/ButtonModel;
3 15 7 fm Ljava/awt/FontMetrics;
4 15 8 mnemIndex I
MethodParameters:
Name Flags
g
c
textRect
text
protected void paintFocus(java.awt.Graphics, javax.swing.AbstractButton, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;Ljava/awt/Rectangle;Ljava/awt/Rectangle;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 6
start local 6 1: aload 2
invokevirtual javax.swing.AbstractButton.getText:()Ljava/lang/String;
astore 7
start local 7 2: aload 2
invokevirtual javax.swing.AbstractButton.getIcon:()Ljavax/swing/Icon;
ifnull 3
iconst_1
goto 4
StackMap locals: java.awt.Rectangle java.lang.String
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 8
start local 8 5: aload 7
ifnull 11
aload 7
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
6: iload 8
ifne 9
7: aload 6
aload 4
invokevirtual java.awt.Rectangle.setBounds:(Ljava/awt/Rectangle;)V
8: goto 13
9: StackMap locals: int
StackMap stack:
aload 6
aload 5
aload 4
invokevirtual java.awt.Rectangle.union:(Ljava/awt/Rectangle;)Ljava/awt/Rectangle;
invokevirtual java.awt.Rectangle.setBounds:(Ljava/awt/Rectangle;)V
10: goto 13
11: StackMap locals:
StackMap stack:
iload 8
ifeq 13
12: aload 6
aload 5
invokevirtual java.awt.Rectangle.setBounds:(Ljava/awt/Rectangle;)V
13: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual javax.swing.plaf.metal.MetalToggleButtonUI.getFocusColor:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
14: aload 1
aload 6
getfield java.awt.Rectangle.x:I
iconst_1
isub
aload 6
getfield java.awt.Rectangle.y:I
iconst_1
isub
15: aload 6
getfield java.awt.Rectangle.width:I
iconst_1
iadd
aload 6
getfield java.awt.Rectangle.height:I
iconst_1
iadd
16: invokevirtual java.awt.Graphics.drawRect:(IIII)V
17: return
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 Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 18 1 g Ljava/awt/Graphics;
0 18 2 b Ljavax/swing/AbstractButton;
0 18 3 viewRect Ljava/awt/Rectangle;
0 18 4 textRect Ljava/awt/Rectangle;
0 18 5 iconRect Ljava/awt/Rectangle;
1 18 6 focusRect Ljava/awt/Rectangle;
2 18 7 text Ljava/lang/String;
5 18 8 isIcon Z
MethodParameters:
Name Flags
g
b
viewRect
textRect
iconRect
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=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokespecial javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon:(Ljava/awt/Graphics;Ljavax/swing/AbstractButton;Ljava/awt/Rectangle;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/plaf/metal/MetalToggleButtonUI;
0 2 1 g Ljava/awt/Graphics;
0 2 2 b Ljavax/swing/AbstractButton;
0 2 3 iconRect Ljava/awt/Rectangle;
MethodParameters:
Name Flags
g
b
iconRect
}
SourceFile: "MetalToggleButtonUI.java"