class javax.swing.plaf.basic.BasicScrollPaneUI$Actions extends sun.swing.UIAction
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.basic.BasicScrollPaneUI$Actions
super_class: sun.swing.UIAction
{
private static final java.lang.String SCROLL_UP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollUp"
private static final java.lang.String SCROLL_DOWN;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollDown"
private static final java.lang.String SCROLL_HOME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollHome"
private static final java.lang.String SCROLL_END;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollEnd"
private static final java.lang.String UNIT_SCROLL_UP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "unitScrollUp"
private static final java.lang.String UNIT_SCROLL_DOWN;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "unitScrollDown"
private static final java.lang.String SCROLL_LEFT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollLeft"
private static final java.lang.String SCROLL_RIGHT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "scrollRight"
private static final java.lang.String UNIT_SCROLL_LEFT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "unitScrollLeft"
private static final java.lang.String UNIT_SCROLL_RIGHT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "unitScrollRight"
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.swing.UIAction.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/plaf/basic/BasicScrollPaneUI$Actions;
0 2 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.ActionEvent.getSource:()Ljava/lang/Object;
checkcast javax.swing.JScrollPane
astore 2
start local 2 1: aload 2
invokevirtual javax.swing.JScrollPane.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
istore 3
start local 3 2: aload 0
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.getName:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
ldc "scrollUp"
if_acmpne 6
4: aload 0
aload 2
iconst_1
iconst_m1
iconst_1
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
5: goto 44
6: StackMap locals: javax.swing.JScrollPane int java.lang.String
StackMap stack:
aload 4
ldc "scrollDown"
if_acmpne 9
7: aload 0
aload 2
iconst_1
iconst_1
iconst_1
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
8: goto 44
9: StackMap locals:
StackMap stack:
aload 4
ldc "scrollHome"
if_acmpne 12
10: aload 0
aload 2
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scrollHome:(Ljavax/swing/JScrollPane;)V
11: goto 44
12: StackMap locals:
StackMap stack:
aload 4
ldc "scrollEnd"
if_acmpne 15
13: aload 0
aload 2
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scrollEnd:(Ljavax/swing/JScrollPane;)V
14: goto 44
15: StackMap locals:
StackMap stack:
aload 4
ldc "unitScrollUp"
if_acmpne 18
16: aload 0
aload 2
iconst_1
iconst_m1
iconst_0
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
17: goto 44
18: StackMap locals:
StackMap stack:
aload 4
ldc "unitScrollDown"
if_acmpne 21
19: aload 0
aload 2
iconst_1
iconst_1
iconst_0
invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
20: goto 44
21: StackMap locals:
StackMap stack:
aload 4
ldc "scrollLeft"
if_acmpne 27
22: aload 0
aload 2
iconst_0
iload 3
ifeq 23
iconst_m1
goto 24
StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int
23: iconst_1
24: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int
iconst_1
25: invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
26: goto 44
27: StackMap locals:
StackMap stack:
aload 4
ldc "scrollRight"
if_acmpne 33
28: aload 0
aload 2
iconst_0
iload 3
ifeq 29
iconst_1
goto 30
StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int
29: iconst_m1
30: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int
iconst_1
31: invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
32: goto 44
33: StackMap locals:
StackMap stack:
aload 4
ldc "unitScrollLeft"
if_acmpne 39
34: aload 0
aload 2
iconst_0
iload 3
ifeq 35
iconst_m1
goto 36
StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int
35: iconst_1
36: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int
iconst_0
37: invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
38: goto 44
39: StackMap locals:
StackMap stack:
aload 4
ldc "unitScrollRight"
if_acmpne 44
40: aload 0
aload 2
iconst_0
iload 3
ifeq 41
iconst_1
goto 42
StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int
41: iconst_m1
42: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions java.awt.event.ActionEvent javax.swing.JScrollPane int java.lang.String
StackMap stack: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int
iconst_0
43: invokevirtual javax.swing.plaf.basic.BasicScrollPaneUI$Actions.scroll:(Ljavax/swing/JScrollPane;IIZ)V
44: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Ljavax/swing/plaf/basic/BasicScrollPaneUI$Actions;
0 45 1 e Ljava/awt/event/ActionEvent;
1 45 2 scrollPane Ljavax/swing/JScrollPane;
2 45 3 ltr Z
3 45 4 key Ljava/lang/String;
MethodParameters:
Name Flags
e
private void scrollEnd(javax.swing.JScrollPane);
descriptor: (Ljavax/swing/JScrollPane;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.JScrollPane.getViewport:()Ljavax/swing/JViewport;
astore 2
start local 2 1: aload 2
ifnull 13
aload 2
invokevirtual javax.swing.JViewport.getView:()Ljava/awt/Component;
dup
astore 3
start local 3 2: ifnull 13
3: aload 2
invokevirtual javax.swing.JViewport.getViewRect:()Ljava/awt/Rectangle;
astore 4
start local 4 4: aload 3
invokevirtual java.awt.Component.getBounds:()Ljava/awt/Rectangle;
astore 5
start local 5 5: aload 1
invokevirtual javax.swing.JScrollPane.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 10
6: aload 2
new java.awt.Point
dup
aload 5
getfield java.awt.Rectangle.width:I
aload 4
getfield java.awt.Rectangle.width:I
isub
7: aload 5
getfield java.awt.Rectangle.height:I
aload 4
getfield java.awt.Rectangle.height:I
isub
invokespecial java.awt.Point.<init>:(II)V
8: invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
9: goto 13
10: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane javax.swing.JViewport java.awt.Component java.awt.Rectangle java.awt.Rectangle
StackMap stack:
aload 2
new java.awt.Point
dup
iconst_0
11: aload 5
getfield java.awt.Rectangle.height:I
aload 4
getfield java.awt.Rectangle.height:I
isub
invokespecial java.awt.Point.<init>:(II)V
12: invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
end local 5 end local 4 end local 3 13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljavax/swing/plaf/basic/BasicScrollPaneUI$Actions;
0 14 1 scrollpane Ljavax/swing/JScrollPane;
1 14 2 vp Ljavax/swing/JViewport;
2 13 3 view Ljava/awt/Component;
4 13 4 visRect Ljava/awt/Rectangle;
5 13 5 bounds Ljava/awt/Rectangle;
MethodParameters:
Name Flags
scrollpane
private void scrollHome(javax.swing.JScrollPane);
descriptor: (Ljavax/swing/JScrollPane;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.JScrollPane.getViewport:()Ljavax/swing/JViewport;
astore 2
start local 2 1: aload 2
ifnull 9
aload 2
invokevirtual javax.swing.JViewport.getView:()Ljava/awt/Component;
dup
astore 3
start local 3 2: ifnull 9
3: aload 1
invokevirtual javax.swing.JScrollPane.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 6
4: aload 2
new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
5: goto 9
6: StackMap locals: javax.swing.JViewport java.awt.Component
StackMap stack:
aload 2
invokevirtual javax.swing.JViewport.getViewRect:()Ljava/awt/Rectangle;
astore 4
start local 4 7: aload 3
invokevirtual java.awt.Component.getBounds:()Ljava/awt/Rectangle;
astore 5
start local 5 8: aload 2
new java.awt.Point
dup
aload 5
getfield java.awt.Rectangle.width:I
aload 4
getfield java.awt.Rectangle.width:I
isub
iconst_0
invokespecial java.awt.Point.<init>:(II)V
invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
end local 5 end local 4 end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/plaf/basic/BasicScrollPaneUI$Actions;
0 10 1 scrollpane Ljavax/swing/JScrollPane;
1 10 2 vp Ljavax/swing/JViewport;
2 9 3 view Ljava/awt/Component;
7 9 4 visRect Ljava/awt/Rectangle;
8 9 5 bounds Ljava/awt/Rectangle;
MethodParameters:
Name Flags
scrollpane
private void scroll(javax.swing.JScrollPane, int, int, boolean);
descriptor: (Ljavax/swing/JScrollPane;IIZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual javax.swing.JScrollPane.getViewport:()Ljavax/swing/JViewport;
astore 5
start local 5 1: aload 5
ifnull 44
aload 5
invokevirtual javax.swing.JViewport.getView:()Ljava/awt/Component;
dup
astore 6
start local 6 2: ifnull 44
3: aload 5
invokevirtual javax.swing.JViewport.getViewRect:()Ljava/awt/Rectangle;
astore 7
start local 7 4: aload 6
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 8
start local 8 5: aload 6
instanceof javax.swing.Scrollable
ifeq 15
6: iload 4
ifeq 11
7: aload 6
checkcast javax.swing.Scrollable
8: aload 7
iload 2
iload 3
9: invokeinterface javax.swing.Scrollable.getScrollableBlockIncrement:(Ljava/awt/Rectangle;II)I
istore 9
start local 9 10: goto 22
end local 9 11: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int int javax.swing.JViewport java.awt.Component java.awt.Rectangle java.awt.Dimension
StackMap stack:
aload 6
checkcast javax.swing.Scrollable
12: aload 7
iload 2
iload 3
13: invokeinterface javax.swing.Scrollable.getScrollableUnitIncrement:(Ljava/awt/Rectangle;II)I
istore 9
start local 9 14: goto 22
end local 9 15: StackMap locals:
StackMap stack:
iload 4
ifeq 21
16: iload 2
iconst_1
if_icmpne 19
17: aload 7
getfield java.awt.Rectangle.height:I
istore 9
start local 9 18: goto 22
end local 9 19: StackMap locals:
StackMap stack:
aload 7
getfield java.awt.Rectangle.width:I
istore 9
start local 9 20: goto 22
end local 9 21: StackMap locals:
StackMap stack:
bipush 10
istore 9
start local 9 22: StackMap locals: int
StackMap stack:
iload 2
iconst_1
if_icmpne 30
23: aload 7
dup
getfield java.awt.Rectangle.y:I
iload 9
iload 3
imul
iadd
putfield java.awt.Rectangle.y:I
24: aload 7
getfield java.awt.Rectangle.y:I
aload 7
getfield java.awt.Rectangle.height:I
iadd
aload 8
getfield java.awt.Dimension.height:I
if_icmple 27
25: aload 7
iconst_0
aload 8
getfield java.awt.Dimension.height:I
aload 7
getfield java.awt.Rectangle.height:I
isub
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Rectangle.y:I
26: goto 43
27: StackMap locals:
StackMap stack:
aload 7
getfield java.awt.Rectangle.y:I
ifge 43
28: aload 7
iconst_0
putfield java.awt.Rectangle.y:I
29: goto 43
30: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.swing.JScrollPane.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 38
31: aload 7
dup
getfield java.awt.Rectangle.x:I
iload 9
iload 3
imul
iadd
putfield java.awt.Rectangle.x:I
32: aload 7
getfield java.awt.Rectangle.x:I
aload 7
getfield java.awt.Rectangle.width:I
iadd
aload 8
getfield java.awt.Dimension.width:I
if_icmple 35
33: aload 7
iconst_0
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Rectangle.width:I
isub
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Rectangle.x:I
34: goto 43
StackMap locals:
StackMap stack:
35: aload 7
getfield java.awt.Rectangle.x:I
ifge 43
36: aload 7
iconst_0
putfield java.awt.Rectangle.x:I
37: goto 43
38: StackMap locals:
StackMap stack:
aload 7
dup
getfield java.awt.Rectangle.x:I
iload 9
iload 3
imul
isub
putfield java.awt.Rectangle.x:I
39: aload 7
getfield java.awt.Rectangle.width:I
aload 8
getfield java.awt.Dimension.width:I
if_icmple 42
40: aload 7
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Rectangle.width:I
isub
putfield java.awt.Rectangle.x:I
41: goto 43
42: StackMap locals:
StackMap stack:
aload 7
iconst_0
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Rectangle.width:I
isub
aload 7
getfield java.awt.Rectangle.x:I
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Rectangle.x:I
43: StackMap locals:
StackMap stack:
aload 5
aload 7
invokevirtual java.awt.Rectangle.getLocation:()Ljava/awt/Point;
invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
end local 9 end local 8 end local 7 end local 6 44: StackMap locals: javax.swing.plaf.basic.BasicScrollPaneUI$Actions javax.swing.JScrollPane int int int javax.swing.JViewport
StackMap stack:
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 45 0 this Ljavax/swing/plaf/basic/BasicScrollPaneUI$Actions;
0 45 1 scrollpane Ljavax/swing/JScrollPane;
0 45 2 orientation I
0 45 3 direction I
0 45 4 block Z
1 45 5 vp Ljavax/swing/JViewport;
2 44 6 view Ljava/awt/Component;
4 44 7 visRect Ljava/awt/Rectangle;
5 44 8 vSize Ljava/awt/Dimension;
10 11 9 amount I
14 15 9 amount I
18 19 9 amount I
20 21 9 amount I
22 44 9 amount I
MethodParameters:
Name Flags
scrollpane
orientation
direction
block
}
SourceFile: "BasicScrollPaneUI.java"
NestHost: javax.swing.plaf.basic.BasicScrollPaneUI
InnerClasses:
private Actions = javax.swing.plaf.basic.BasicScrollPaneUI$Actions of javax.swing.plaf.basic.BasicScrollPaneUI