public class javax.swing.plaf.basic.BasicArrowButton extends javax.swing.JButton implements javax.swing.SwingConstants
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.basic.BasicArrowButton
super_class: javax.swing.JButton
{
protected int direction;
descriptor: I
flags: (0x0004) ACC_PROTECTED
private java.awt.Color shadow;
descriptor: Ljava/awt/Color;
flags: (0x0002) ACC_PRIVATE
private java.awt.Color darkShadow;
descriptor: Ljava/awt/Color;
flags: (0x0002) ACC_PRIVATE
private java.awt.Color highlight;
descriptor: Ljava/awt/Color;
flags: (0x0002) ACC_PRIVATE
public void <init>(int, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color);
descriptor: (ILjava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial javax.swing.JButton.<init>:()V
1: aload 0
iconst_0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.setRequestFocusEnabled:(Z)V
2: aload 0
iload 1
invokevirtual javax.swing.plaf.basic.BasicArrowButton.setDirection:(I)V
3: aload 0
aload 2
invokevirtual javax.swing.plaf.basic.BasicArrowButton.setBackground:(Ljava/awt/Color;)V
4: aload 0
aload 3
putfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
5: aload 0
aload 4
putfield javax.swing.plaf.basic.BasicArrowButton.darkShadow:Ljava/awt/Color;
6: aload 0
aload 5
putfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
7: 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 8 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
0 8 1 direction I
0 8 2 background Ljava/awt/Color;
0 8 3 shadow Ljava/awt/Color;
0 8 4 darkShadow Ljava/awt/Color;
0 8 5 highlight Ljava/awt/Color;
MethodParameters:
Name Flags
direction
background
shadow
darkShadow
highlight
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc "control"
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
ldc "controlShadow"
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
1: ldc "controlDkShadow"
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
ldc "controlLtHighlight"
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
invokespecial javax.swing.plaf.basic.BasicArrowButton.<init>:(ILjava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
0 3 1 direction I
MethodParameters:
Name Flags
direction
public int getDirection();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.direction:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
public void setDirection(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
iload 1
putfield javax.swing.plaf.basic.BasicArrowButton.direction:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
0 2 1 direction I
MethodParameters:
Name Flags
direction
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getSize:()Ljava/awt/Dimension;
getfield java.awt.Dimension.width:I
istore 5
start local 5 1: aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getSize:()Ljava/awt/Dimension;
getfield java.awt.Dimension.height:I
istore 6
start local 6 2: aload 1
invokevirtual java.awt.Graphics.getColor:()Ljava/awt/Color;
astore 2
start local 2 3: aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getModel:()Ljavax/swing/ButtonModel;
invokeinterface javax.swing.ButtonModel.isPressed:()Z
istore 3
start local 3 4: aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.isEnabled:()Z
istore 4
start local 4 5: aload 1
aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
6: aload 1
iconst_1
iconst_1
iload 5
iconst_2
isub
iload 6
iconst_2
isub
invokevirtual java.awt.Graphics.fillRect:(IIII)V
7: aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getBorder:()Ljavax/swing/border/Border;
ifnull 10
aload 0
invokevirtual javax.swing.plaf.basic.BasicArrowButton.getBorder:()Ljavax/swing/border/Border;
instanceof javax.swing.plaf.UIResource
ifne 10
8: aload 0
aload 1
invokevirtual javax.swing.plaf.basic.BasicArrowButton.paintBorder:(Ljava/awt/Graphics;)V
9: goto 25
StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics java.awt.Color int int int int
StackMap stack:
10: iload 3
ifeq 14
11: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
12: aload 1
iconst_0
iconst_0
iload 5
iconst_1
isub
iload 6
iconst_1
isub
invokevirtual java.awt.Graphics.drawRect:(IIII)V
13: goto 25
14: StackMap locals:
StackMap stack:
aload 1
iconst_0
iconst_0
iconst_0
iload 6
iconst_1
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
15: aload 1
iconst_1
iconst_0
iload 5
iconst_2
isub
iconst_0
invokevirtual java.awt.Graphics.drawLine:(IIII)V
16: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
17: aload 1
iconst_1
iconst_1
iconst_1
iload 6
iconst_3
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
18: aload 1
iconst_2
iconst_1
iload 5
iconst_3
isub
iconst_1
invokevirtual java.awt.Graphics.drawLine:(IIII)V
19: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
20: aload 1
iconst_1
iload 6
iconst_2
isub
iload 5
iconst_2
isub
iload 6
iconst_2
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
21: aload 1
iload 5
iconst_2
isub
iconst_1
iload 5
iconst_2
isub
iload 6
iconst_3
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
22: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.darkShadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
23: aload 1
iconst_0
iload 6
iconst_1
isub
iload 5
iconst_1
isub
iload 6
iconst_1
isub
invokevirtual java.awt.Graphics.drawLine:(IIII)V
24: aload 1
iload 5
iconst_1
isub
iload 6
iconst_1
isub
iload 5
iconst_1
isub
iconst_0
invokevirtual java.awt.Graphics.drawLine:(IIII)V
25: StackMap locals:
StackMap stack:
iload 6
iconst_5
if_icmplt 26
iload 5
iconst_5
if_icmpge 28
26: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
27: return
28: StackMap locals:
StackMap stack:
iload 3
ifeq 30
29: aload 1
iconst_1
iconst_1
invokevirtual java.awt.Graphics.translate:(II)V
30: StackMap locals:
StackMap stack:
iload 6
iconst_4
isub
iconst_3
idiv
iload 5
iconst_4
isub
iconst_3
idiv
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 31: iload 7
iconst_2
invokestatic java.lang.Math.max:(II)I
istore 7
32: aload 0
aload 1
iload 5
iload 7
isub
iconst_2
idiv
iload 6
iload 7
isub
iconst_2
idiv
33: iload 7
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.direction:I
iload 4
34: invokevirtual javax.swing.plaf.basic.BasicArrowButton.paintTriangle:(Ljava/awt/Graphics;IIIIZ)V
35: iload 3
ifeq 37
36: aload 1
iconst_m1
iconst_m1
invokevirtual java.awt.Graphics.translate:(II)V
37: StackMap locals: int
StackMap stack:
aload 1
aload 2
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
38: 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 39 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
0 39 1 g Ljava/awt/Graphics;
3 39 2 origColor Ljava/awt/Color;
4 39 3 isPressed Z
5 39 4 isEnabled Z
1 39 5 w I
2 39 6 h I
31 39 7 size I
MethodParameters:
Name Flags
g
public java.awt.Dimension getPreferredSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.awt.Dimension
dup
bipush 16
bipush 16
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
public java.awt.Dimension getMinimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.awt.Dimension
dup
iconst_5
iconst_5
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
public java.awt.Dimension getMaximumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.awt.Dimension
dup
ldc 2147483647
ldc 2147483647
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
public boolean isFocusTraversable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
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/BasicArrowButton;
public void paintTriangle(java.awt.Graphics, int, int, int, int, boolean);
descriptor: (Ljava/awt/Graphics;IIIIZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 1
invokevirtual java.awt.Graphics.getColor:()Ljava/awt/Color;
astore 7
start local 7 1: iconst_0
istore 10
start local 10 2: iload 4
iconst_2
invokestatic java.lang.Math.max:(II)I
istore 4
3: iload 4
iconst_2
idiv
iconst_1
isub
istore 8
start local 8 4: aload 1
iload 2
iload 3
invokevirtual java.awt.Graphics.translate:(II)V
5: iload 6
ifeq 7
6: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.darkShadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
goto 8
7: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
8: StackMap locals:
StackMap stack:
iload 5
tableswitch { // 1 - 7
1: 9
2: 64
3: 46
4: 64
5: 18
6: 64
7: 37
default: 64
}
9: StackMap locals:
StackMap stack:
iconst_0
istore 9
start local 9 10: goto 13
11: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 8
iload 9
isub
iload 9
iload 8
iload 9
iadd
iload 9
invokevirtual java.awt.Graphics.drawLine:(IIII)V
12: iinc 9 1
StackMap locals:
StackMap stack:
13: iload 9
iload 4
if_icmplt 11
14: iload 6
ifne 64
15: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
16: aload 1
iload 8
iload 9
isub
iconst_2
iadd
iload 9
iload 8
iload 9
iadd
iload 9
invokevirtual java.awt.Graphics.drawLine:(IIII)V
17: goto 64
end local 9 18: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
iload 6
ifne 29
19: aload 1
iconst_1
iconst_1
invokevirtual java.awt.Graphics.translate:(II)V
20: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
21: iload 4
iconst_1
isub
istore 9
start local 9 22: goto 26
23: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 8
iload 9
isub
iload 10
iload 8
iload 9
iadd
iload 10
invokevirtual java.awt.Graphics.drawLine:(IIII)V
24: iinc 10 1
25: iinc 9 -1
StackMap locals:
StackMap stack:
26: iload 9
ifge 23
27: aload 1
iconst_m1
iconst_m1
invokevirtual java.awt.Graphics.translate:(II)V
28: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
end local 9 29: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
iconst_0
istore 10
30: iload 4
iconst_1
isub
istore 9
start local 9 31: goto 35
32: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 8
iload 9
isub
iload 10
iload 8
iload 9
iadd
iload 10
invokevirtual java.awt.Graphics.drawLine:(IIII)V
33: iinc 10 1
34: iinc 9 -1
StackMap locals:
StackMap stack:
35: iload 9
ifge 32
36: goto 64
end local 9 37: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
iconst_0
istore 9
start local 9 38: goto 41
39: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 9
iload 8
iload 9
isub
iload 9
iload 8
iload 9
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
40: iinc 9 1
StackMap locals:
StackMap stack:
41: iload 9
iload 4
if_icmplt 39
42: iload 6
ifne 64
43: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
44: aload 1
iload 9
iload 8
iload 9
isub
iconst_2
iadd
iload 9
iload 8
iload 9
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
45: goto 64
end local 9 46: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
iload 6
ifne 57
47: aload 1
iconst_1
iconst_1
invokevirtual java.awt.Graphics.translate:(II)V
48: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.highlight:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
49: iload 4
iconst_1
isub
istore 9
start local 9 50: goto 54
51: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 10
iload 8
iload 9
isub
iload 10
iload 8
iload 9
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
52: iinc 10 1
53: iinc 9 -1
StackMap locals:
StackMap stack:
54: iload 9
ifge 51
55: aload 1
iconst_m1
iconst_m1
invokevirtual java.awt.Graphics.translate:(II)V
56: aload 1
aload 0
getfield javax.swing.plaf.basic.BasicArrowButton.shadow:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
end local 9 57: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
iconst_0
istore 10
58: iload 4
iconst_1
isub
istore 9
start local 9 59: goto 63
60: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int int int
StackMap stack:
aload 1
iload 10
iload 8
iload 9
isub
iload 10
iload 8
iload 9
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
61: iinc 10 1
62: iinc 9 -1
StackMap locals:
StackMap stack:
63: iload 9
ifge 60
end local 9 64: StackMap locals: javax.swing.plaf.basic.BasicArrowButton java.awt.Graphics int int int int int java.awt.Color int top int
StackMap stack:
aload 1
iload 2
ineg
iload 3
ineg
invokevirtual java.awt.Graphics.translate:(II)V
65: aload 1
aload 7
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
66: return
end local 10 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 67 0 this Ljavax/swing/plaf/basic/BasicArrowButton;
0 67 1 g Ljava/awt/Graphics;
0 67 2 x I
0 67 3 y I
0 67 4 size I
0 67 5 direction I
0 67 6 isEnabled Z
1 67 7 oldColor Ljava/awt/Color;
4 67 8 mid I
10 18 9 i I
22 29 9 i I
31 37 9 i I
38 46 9 i I
50 57 9 i I
59 64 9 i I
2 67 10 j I
MethodParameters:
Name Flags
g
x
y
size
direction
isEnabled
}
SourceFile: "BasicArrowButton.java"