class com.apple.laf.AquaSpinnerUI$SpinPainter extends javax.swing.JComponent
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.apple.laf.AquaSpinnerUI$SpinPainter
super_class: javax.swing.JComponent
{
final com.apple.laf.AquaPainter<apple.laf.JRSUIState> painter;
descriptor: Lcom/apple/laf/AquaPainter;
flags: (0x0010) ACC_FINAL
Signature: Lcom/apple/laf/AquaPainter<Lapple/laf/JRSUIState;>;
javax.swing.ButtonModel fTopModel;
descriptor: Ljavax/swing/ButtonModel;
flags: (0x0000)
javax.swing.ButtonModel fBottomModel;
descriptor: Ljavax/swing/ButtonModel;
flags: (0x0000)
boolean fPressed;
descriptor: Z
flags: (0x0000)
boolean fTopPressed;
descriptor: Z
flags: (0x0000)
java.awt.Dimension kPreferredSize;
descriptor: Ljava/awt/Dimension;
flags: (0x0000)
final com.apple.laf.AquaSpinnerUI this$0;
descriptor: Lcom/apple/laf/AquaSpinnerUI;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(com.apple.laf.AquaSpinnerUI, javax.swing.AbstractButton, javax.swing.AbstractButton);
descriptor: (Lcom/apple/laf/AquaSpinnerUI;Ljavax/swing/AbstractButton;Ljavax/swing/AbstractButton;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
start local 2 // javax.swing.AbstractButton top
start local 3 // javax.swing.AbstractButton bottom
0: .line 643
aload 0 /* this */
aload 1
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.this$0:Lcom/apple/laf/AquaSpinnerUI;
aload 0 /* this */
invokespecial javax.swing.JComponent.<init>:()V
1: .line 633
aload 0 /* this */
invokestatic apple.laf.JRSUIStateFactory.getSpinnerArrows:()Lapple/laf/JRSUIState;
invokestatic com.apple.laf.AquaPainter.create:(Lapple/laf/JRSUIState;)Lcom/apple/laf/AquaPainter;
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
2: .line 638
aload 0 /* this */
iconst_0
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.fPressed:Z
3: .line 639
aload 0 /* this */
iconst_0
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.fTopPressed:Z
4: .line 641
aload 0 /* this */
new java.awt.Dimension
dup
bipush 15
bipush 24
invokespecial java.awt.Dimension.<init>:(II)V
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.kPreferredSize:Ljava/awt/Dimension;
5: .line 644
aload 2 /* top */
ifnull 7
6: .line 645
aload 0 /* this */
aload 2 /* top */
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.fTopModel:Ljavax/swing/ButtonModel;
7: .line 648
StackMap locals: com.apple.laf.AquaSpinnerUI$SpinPainter com.apple.laf.AquaSpinnerUI javax.swing.AbstractButton javax.swing.AbstractButton
StackMap stack:
aload 3 /* bottom */
ifnull 9
8: .line 649
aload 0 /* this */
aload 3 /* bottom */
invokevirtual javax.swing.AbstractButton.getModel:()Ljavax/swing/ButtonModel;
putfield com.apple.laf.AquaSpinnerUI$SpinPainter.fBottomModel:Ljavax/swing/ButtonModel;
9: .line 651
StackMap locals:
StackMap stack:
aload 0 /* this */
iconst_0
invokevirtual com.apple.laf.AquaSpinnerUI$SpinPainter.setFocusable:(Z)V
10: .line 652
return
end local 3 // javax.swing.AbstractButton bottom
end local 2 // javax.swing.AbstractButton top
end local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/apple/laf/AquaSpinnerUI$SpinPainter;
0 11 2 top Ljavax/swing/AbstractButton;
0 11 3 bottom Ljavax/swing/AbstractButton;
MethodParameters:
Name Flags
this$0 final
top final
bottom final
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
start local 1 // java.awt.Graphics g
0: .line 656
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.this$0:Lcom/apple/laf/AquaSpinnerUI;
getfield com.apple.laf.AquaSpinnerUI.spinner:Ljavax/swing/JSpinner;
invokevirtual javax.swing.JSpinner.isOpaque:()Z
ifeq 3
1: .line 657
aload 1 /* g */
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.this$0:Lcom/apple/laf/AquaSpinnerUI;
getfield com.apple.laf.AquaSpinnerUI.spinner:Ljavax/swing/JSpinner;
invokevirtual javax.swing.JSpinner.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
2: .line 658
aload 1 /* g */
iconst_0
iconst_0
aload 0 /* this */
invokevirtual com.apple.laf.AquaSpinnerUI$SpinPainter.getWidth:()I
aload 0 /* this */
invokevirtual com.apple.laf.AquaSpinnerUI$SpinPainter.getHeight:()I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
3: .line 661
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.this$0:Lcom/apple/laf/AquaSpinnerUI;
getfield com.apple.laf.AquaSpinnerUI.spinner:Ljavax/swing/JSpinner;
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
invokestatic com.apple.laf.AquaUtilControlSize.applySizeForControl:(Ljavax/swing/JComponent;Lcom/apple/laf/AquaPainter;)Lapple/laf/JRSUIConstants$Size;
pop
4: .line 663
aload 0 /* this */
invokevirtual com.apple.laf.AquaSpinnerUI$SpinPainter.isEnabled:()Z
ifeq 15
5: .line 664
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.fTopModel:Ljavax/swing/ButtonModel;
ifnull 9
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.fTopModel:Ljavax/swing/ButtonModel;
invokeinterface javax.swing.ButtonModel.isPressed:()Z
ifeq 9
6: .line 665
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$State.PRESSED:Lapple/laf/JRSUIConstants$State;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
7: .line 666
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$BooleanValue.NO:Lapple/laf/JRSUIConstants$BooleanValue;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
8: .line 667
goto 16
StackMap locals:
StackMap stack:
9: aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.fBottomModel:Ljavax/swing/ButtonModel;
ifnull 13
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.fBottomModel:Ljavax/swing/ButtonModel;
invokeinterface javax.swing.ButtonModel.isPressed:()Z
ifeq 13
10: .line 668
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$State.PRESSED:Lapple/laf/JRSUIConstants$State;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
11: .line 669
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$BooleanValue.YES:Lapple/laf/JRSUIConstants$BooleanValue;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
12: .line 670
goto 16
13: .line 671
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$State.ACTIVE:Lapple/laf/JRSUIConstants$State;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
14: .line 673
goto 16
15: .line 674
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
getfield com.apple.laf.AquaPainter.state:Lapple/laf/JRSUIState;
getstatic apple.laf.JRSUIConstants$State.DISABLED:Lapple/laf/JRSUIConstants$State;
invokevirtual apple.laf.JRSUIState.set:(Lapple/laf/JRSUIConstants$Property;)V
16: .line 677
StackMap locals:
StackMap stack:
aload 0 /* this */
invokevirtual com.apple.laf.AquaSpinnerUI$SpinPainter.getBounds:()Ljava/awt/Rectangle;
astore 2 /* bounds */
start local 2 // java.awt.Rectangle bounds
17: .line 678
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.painter:Lcom/apple/laf/AquaPainter;
aload 1 /* g */
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.this$0:Lcom/apple/laf/AquaSpinnerUI;
getfield com.apple.laf.AquaSpinnerUI.spinner:Ljavax/swing/JSpinner;
iconst_0
iconst_0
aload 2 /* bounds */
getfield java.awt.Rectangle.width:I
aload 2 /* bounds */
getfield java.awt.Rectangle.height:I
invokevirtual com.apple.laf.AquaPainter.paint:(Ljava/awt/Graphics;Ljava/awt/Component;IIII)V
18: .line 679
return
end local 2 // java.awt.Rectangle bounds
end local 1 // java.awt.Graphics g
end local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/apple/laf/AquaSpinnerUI$SpinPainter;
0 19 1 g Ljava/awt/Graphics;
17 19 2 bounds Ljava/awt/Rectangle;
MethodParameters:
Name Flags
g final
public java.awt.Dimension getPreferredSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
0: .line 683
aload 0 /* this */
invokestatic com.apple.laf.AquaUtilControlSize.getUserSizeFrom:(Ljavax/swing/JComponent;)Lapple/laf/JRSUIConstants$Size;
astore 1 /* size */
start local 1 // apple.laf.JRSUIConstants$Size size
1: .line 685
aload 1 /* size */
getstatic apple.laf.JRSUIConstants$Size.MINI:Lapple/laf/JRSUIConstants$Size;
if_acmpne 3
2: .line 686
new java.awt.Dimension
dup
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.kPreferredSize:Ljava/awt/Dimension;
getfield java.awt.Dimension.width:I
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.kPreferredSize:Ljava/awt/Dimension;
getfield java.awt.Dimension.height:I
bipush 8
isub
invokespecial java.awt.Dimension.<init>:(II)V
areturn
3: .line 689
StackMap locals: apple.laf.JRSUIConstants$Size
StackMap stack:
aload 0 /* this */
getfield com.apple.laf.AquaSpinnerUI$SpinPainter.kPreferredSize:Ljava/awt/Dimension;
areturn
end local 1 // apple.laf.JRSUIConstants$Size size
end local 0 // com.apple.laf.AquaSpinnerUI$SpinPainter this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/apple/laf/AquaSpinnerUI$SpinPainter;
1 4 1 size Lapple/laf/JRSUIConstants$Size;
}
SourceFile: "AquaSpinnerUI.java"
NestHost: com.apple.laf.AquaSpinnerUI
InnerClasses:
public BooleanValue = apple.laf.JRSUIConstants$BooleanValue of apple.laf.JRSUIConstants
public Size = apple.laf.JRSUIConstants$Size of apple.laf.JRSUIConstants
public State = apple.laf.JRSUIConstants$State of apple.laf.JRSUIConstants
SpinPainter = com.apple.laf.AquaSpinnerUI$SpinPainter of com.apple.laf.AquaSpinnerUI
Property = apple.laf.JRSUIConstants$Property of apple.laf.JRSUIConstants