class javax.swing.text.DefaultEditorKit$VerticalPageAction extends javax.swing.text.TextAction
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.DefaultEditorKit$VerticalPageAction
super_class: javax.swing.text.TextAction
{
private boolean select;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int direction;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, int, boolean);
descriptor: (Ljava/lang/String;IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial javax.swing.text.TextAction.<init>:(Ljava/lang/String;)V
1: aload 0
iload 3
putfield javax.swing.text.DefaultEditorKit$VerticalPageAction.select:Z
2: aload 0
iload 2
putfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/DefaultEditorKit$VerticalPageAction;
0 4 1 nm Ljava/lang/String;
0 4 2 direction I
0 4 3 select Z
MethodParameters:
Name Flags
nm
direction
select
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=15, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.getTextComponent:(Ljava/awt/event/ActionEvent;)Ljavax/swing/text/JTextComponent;
astore 2
start local 2 1: aload 2
ifnull 64
2: aload 2
invokevirtual javax.swing.text.JTextComponent.getVisibleRect:()Ljava/awt/Rectangle;
astore 3
start local 3 3: new java.awt.Rectangle
dup
aload 3
invokespecial java.awt.Rectangle.<init>:(Ljava/awt/Rectangle;)V
astore 4
start local 4 4: aload 2
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
istore 5
start local 5 5: aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
6: aload 2
7: aload 3
iconst_1
aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
8: invokevirtual javax.swing.text.JTextComponent.getScrollableBlockIncrement:(Ljava/awt/Rectangle;II)I
9: imul
istore 6
start local 6 10: aload 3
getfield java.awt.Rectangle.y:I
istore 7
start local 7 11: aload 2
invokevirtual javax.swing.text.JTextComponent.getCaret:()Ljavax/swing/text/Caret;
astore 8
start local 8 12: aload 8
invokeinterface javax.swing.text.Caret.getMagicCaretPosition:()Ljava/awt/Point;
astore 9
start local 9 13: iload 5
iconst_m1
if_icmpeq 58
14: aload 2
15: iload 5
16: invokevirtual javax.swing.text.JTextComponent.modelToView:(I)Ljava/awt/Rectangle;
astore 10
start local 10 17: aload 9
ifnull 18
aload 9
getfield java.awt.Point.x:I
goto 19
18: StackMap locals: javax.swing.text.DefaultEditorKit$VerticalPageAction java.awt.event.ActionEvent javax.swing.text.JTextComponent java.awt.Rectangle java.awt.Rectangle int int int javax.swing.text.Caret java.awt.Point java.awt.Rectangle
StackMap stack:
aload 10
getfield java.awt.Rectangle.x:I
19: StackMap locals:
StackMap stack: int
istore 11
start local 11 20: aload 10
getfield java.awt.Rectangle.height:I
istore 12
start local 12 21: iload 12
ifle 23
22: iload 6
iload 12
idiv
iload 12
imul
istore 6
23: StackMap locals: int int
StackMap stack:
aload 4
aload 0
aload 2
24: iload 7
iload 6
iadd
aload 3
getfield java.awt.Rectangle.height:I
25: invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.constrainY:(Ljavax/swing/text/JTextComponent;II)I
putfield java.awt.Rectangle.y:I
26: aload 3
aload 10
getfield java.awt.Rectangle.x:I
aload 10
getfield java.awt.Rectangle.y:I
invokevirtual java.awt.Rectangle.contains:(II)Z
ifeq 33
27: aload 2
28: new java.awt.Point
dup
iload 11
aload 0
aload 2
29: aload 10
getfield java.awt.Rectangle.y:I
iload 6
iadd
iconst_0
30: invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.constrainY:(Ljavax/swing/text/JTextComponent;II)I
invokespecial java.awt.Point.<init>:(II)V
31: invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 13
start local 13 32: goto 41
end local 13 33: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
iconst_m1
if_icmpne 38
34: aload 2
new java.awt.Point
dup
35: iload 11
aload 4
getfield java.awt.Rectangle.y:I
invokespecial java.awt.Point.<init>:(II)V
36: invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 13
start local 13 37: goto 41
end local 13 38: StackMap locals:
StackMap stack:
aload 2
new java.awt.Point
dup
39: iload 11
aload 4
getfield java.awt.Rectangle.y:I
aload 3
getfield java.awt.Rectangle.height:I
iadd
invokespecial java.awt.Point.<init>:(II)V
40: invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 13
start local 13 41: StackMap locals: int
StackMap stack:
aload 0
aload 2
iload 13
invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.constrainOffset:(Ljavax/swing/text/JTextComponent;I)I
istore 13
42: iload 13
iload 5
if_icmpeq 52
43: aload 0
aload 2
aload 4
iload 13
invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.getAdjustedY:(Ljavax/swing/text/JTextComponent;Ljava/awt/Rectangle;I)I
istore 14
start local 14 44: aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
iconst_m1
if_icmpne 45
iload 14
iload 7
if_icmple 46
StackMap locals: int
StackMap stack:
45: aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
iconst_1
if_icmpne 61
iload 14
iload 7
if_icmplt 61
46: StackMap locals:
StackMap stack:
aload 4
iload 14
putfield java.awt.Rectangle.y:I
47: aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.select:Z
ifeq 50
48: aload 2
iload 13
invokevirtual javax.swing.text.JTextComponent.moveCaretPosition:(I)V
49: goto 61
50: StackMap locals:
StackMap stack:
aload 2
iload 13
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
end local 14 51: goto 61
52: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
iconst_m1
if_icmpne 53
aload 4
getfield java.awt.Rectangle.y:I
iload 7
if_icmple 54
53: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.DefaultEditorKit$VerticalPageAction.direction:I
iconst_1
if_icmpne 61
aload 4
getfield java.awt.Rectangle.y:I
iload 7
if_icmplt 61
54: StackMap locals:
StackMap stack:
aload 4
iload 7
putfield java.awt.Rectangle.y:I
end local 13 end local 12 end local 11 end local 10 55: goto 61
StackMap locals: javax.swing.text.DefaultEditorKit$VerticalPageAction java.awt.event.ActionEvent javax.swing.text.JTextComponent java.awt.Rectangle java.awt.Rectangle int int int javax.swing.text.Caret java.awt.Point
StackMap stack: javax.swing.text.BadLocationException
56: pop
57: goto 61
58: StackMap locals:
StackMap stack:
aload 4
aload 0
aload 2
59: iload 7
iload 6
iadd
aload 3
getfield java.awt.Rectangle.height:I
60: invokevirtual javax.swing.text.DefaultEditorKit$VerticalPageAction.constrainY:(Ljavax/swing/text/JTextComponent;II)I
putfield java.awt.Rectangle.y:I
61: StackMap locals:
StackMap stack:
aload 9
ifnull 63
62: aload 8
aload 9
invokeinterface javax.swing.text.Caret.setMagicCaretPosition:(Ljava/awt/Point;)V
63: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual javax.swing.text.JTextComponent.scrollRectToVisible:(Ljava/awt/Rectangle;)V
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 64: StackMap locals: javax.swing.text.DefaultEditorKit$VerticalPageAction java.awt.event.ActionEvent javax.swing.text.JTextComponent
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 65 0 this Ljavax/swing/text/DefaultEditorKit$VerticalPageAction;
0 65 1 e Ljava/awt/event/ActionEvent;
1 65 2 target Ljavax/swing/text/JTextComponent;
3 64 3 visible Ljava/awt/Rectangle;
4 64 4 newVis Ljava/awt/Rectangle;
5 64 5 selectedIndex I
10 64 6 scrollAmount I
11 64 7 initialY I
12 64 8 caret Ljavax/swing/text/Caret;
13 64 9 magicPosition Ljava/awt/Point;
17 55 10 dotBounds Ljava/awt/Rectangle;
20 55 11 x I
21 55 12 h I
32 33 13 newIndex I
37 38 13 newIndex I
41 55 13 newIndex I
44 51 14 newY I
Exception table:
from to target type
14 55 56 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
e
private int constrainY(javax.swing.text.JTextComponent, int, int);
descriptor: (Ljavax/swing/text/JTextComponent;II)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifge 3
1: iconst_0
istore 2
2: goto 5
3: StackMap locals:
StackMap stack:
iload 2
iload 3
iadd
aload 1
invokevirtual javax.swing.text.JTextComponent.getHeight:()I
if_icmple 5
4: iconst_0
aload 1
invokevirtual javax.swing.text.JTextComponent.getHeight:()I
iload 3
isub
invokestatic java.lang.Math.max:(II)I
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/DefaultEditorKit$VerticalPageAction;
0 6 1 target Ljavax/swing/text/JTextComponent;
0 6 2 y I
0 6 3 vis I
MethodParameters:
Name Flags
target
y
vis
private int constrainOffset(javax.swing.text.JTextComponent, int);
descriptor: (Ljavax/swing/text/JTextComponent;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 3
start local 3 1: iload 2
ifeq 3
iload 2
aload 3
invokeinterface javax.swing.text.Document.getLength:()I
if_icmple 3
2: aload 3
invokeinterface javax.swing.text.Document.getLength:()I
istore 2
3: StackMap locals: javax.swing.text.Document
StackMap stack:
iload 2
ifge 5
4: iconst_0
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/text/DefaultEditorKit$VerticalPageAction;
0 6 1 text Ljavax/swing/text/JTextComponent;
0 6 2 offset I
1 6 3 doc Ljavax/swing/text/Document;
MethodParameters:
Name Flags
text
offset
private int getAdjustedY(javax.swing.text.JTextComponent, java.awt.Rectangle, int);
descriptor: (Ljavax/swing/text/JTextComponent;Ljava/awt/Rectangle;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
getfield java.awt.Rectangle.y:I
istore 4
start local 4 1: aload 1
iload 3
invokevirtual javax.swing.text.JTextComponent.modelToView:(I)Ljava/awt/Rectangle;
astore 5
start local 5 2: aload 5
getfield java.awt.Rectangle.y:I
aload 2
getfield java.awt.Rectangle.y:I
if_icmpge 5
3: aload 5
getfield java.awt.Rectangle.y:I
istore 4
4: goto 10
5: StackMap locals: int java.awt.Rectangle
StackMap stack:
aload 5
getfield java.awt.Rectangle.y:I
aload 2
getfield java.awt.Rectangle.y:I
aload 2
getfield java.awt.Rectangle.height:I
iadd
if_icmpgt 7
6: aload 5
getfield java.awt.Rectangle.y:I
aload 5
getfield java.awt.Rectangle.height:I
iadd
aload 2
getfield java.awt.Rectangle.y:I
aload 2
getfield java.awt.Rectangle.height:I
iadd
if_icmple 10
7: StackMap locals:
StackMap stack:
aload 5
getfield java.awt.Rectangle.y:I
aload 5
getfield java.awt.Rectangle.height:I
iadd
aload 2
getfield java.awt.Rectangle.height:I
isub
istore 4
end local 5 8: goto 10
StackMap locals: javax.swing.text.DefaultEditorKit$VerticalPageAction javax.swing.text.JTextComponent java.awt.Rectangle int int
StackMap stack: javax.swing.text.BadLocationException
9: pop
10: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/text/DefaultEditorKit$VerticalPageAction;
0 11 1 text Ljavax/swing/text/JTextComponent;
0 11 2 visible Ljava/awt/Rectangle;
0 11 3 index I
1 11 4 result I
2 8 5 dotBounds Ljava/awt/Rectangle;
Exception table:
from to target type
1 8 9 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
text
visible
index
}
SourceFile: "DefaultEditorKit.java"
NestHost: javax.swing.text.DefaultEditorKit
InnerClasses:
VerticalPageAction = javax.swing.text.DefaultEditorKit$VerticalPageAction of javax.swing.text.DefaultEditorKit