public class javax.swing.ViewportLayout implements java.awt.LayoutManager, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.ViewportLayout
super_class: java.lang.Object
{
static javax.swing.ViewportLayout SHARED_INSTANCE;
descriptor: Ljavax/swing/ViewportLayout;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new javax.swing.ViewportLayout
dup
invokespecial javax.swing.ViewportLayout.<init>:()V
putstatic javax.swing.ViewportLayout.SHARED_INSTANCE:Ljavax/swing/ViewportLayout;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/ViewportLayout;
public void addLayoutComponent(java.lang.String, java.awt.Component);
descriptor: (Ljava/lang/String;Ljava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/ViewportLayout;
0 1 1 name Ljava/lang/String;
0 1 2 c Ljava/awt/Component;
MethodParameters:
Name Flags
name
c
public void removeLayoutComponent(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/ViewportLayout;
0 1 1 c Ljava/awt/Component;
MethodParameters:
Name Flags
c
public java.awt.Dimension preferredLayoutSize(java.awt.Container);
descriptor: (Ljava/awt/Container;)Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast javax.swing.JViewport
invokevirtual javax.swing.JViewport.getView:()Ljava/awt/Component;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.awt.Dimension
dup
iconst_0
iconst_0
invokespecial java.awt.Dimension.<init>:(II)V
areturn
3: StackMap locals: java.awt.Component
StackMap stack:
aload 2
instanceof javax.swing.Scrollable
ifeq 5
4: aload 2
checkcast javax.swing.Scrollable
invokeinterface javax.swing.Scrollable.getPreferredScrollableViewportSize:()Ljava/awt/Dimension;
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/ViewportLayout;
0 6 1 parent Ljava/awt/Container;
1 6 2 view Ljava/awt/Component;
MethodParameters:
Name Flags
parent
public java.awt.Dimension minimumLayoutSize(java.awt.Container);
descriptor: (Ljava/awt/Container;)Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new java.awt.Dimension
dup
iconst_4
iconst_4
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/ViewportLayout;
0 1 1 parent Ljava/awt/Container;
MethodParameters:
Name Flags
parent
public void layoutContainer(java.awt.Container);
descriptor: (Ljava/awt/Container;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 1
checkcast javax.swing.JViewport
astore 2
start local 2 1: aload 2
invokevirtual javax.swing.JViewport.getView:()Ljava/awt/Component;
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 3
ifnonnull 5
4: return
5: StackMap locals: javax.swing.JViewport java.awt.Component javax.swing.Scrollable
StackMap stack:
aload 3
instanceof javax.swing.Scrollable
ifeq 7
6: aload 3
checkcast javax.swing.Scrollable
astore 4
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.JViewport.getInsets:()Ljava/awt/Insets;
pop
8: aload 3
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
astore 5
start local 5 9: aload 2
invokevirtual javax.swing.JViewport.getSize:()Ljava/awt/Dimension;
astore 6
start local 6 10: aload 2
aload 6
invokevirtual javax.swing.JViewport.toViewCoordinates:(Ljava/awt/Dimension;)Ljava/awt/Dimension;
astore 7
start local 7 11: new java.awt.Dimension
dup
aload 5
invokespecial java.awt.Dimension.<init>:(Ljava/awt/Dimension;)V
astore 8
start local 8 12: aload 4
ifnull 17
13: aload 4
invokeinterface javax.swing.Scrollable.getScrollableTracksViewportWidth:()Z
ifeq 15
14: aload 8
aload 6
getfield java.awt.Dimension.width:I
putfield java.awt.Dimension.width:I
15: StackMap locals: javax.swing.ViewportLayout java.awt.Container javax.swing.JViewport java.awt.Component javax.swing.Scrollable java.awt.Dimension java.awt.Dimension java.awt.Dimension java.awt.Dimension
StackMap stack:
aload 4
invokeinterface javax.swing.Scrollable.getScrollableTracksViewportHeight:()Z
ifeq 17
16: aload 8
aload 6
getfield java.awt.Dimension.height:I
putfield java.awt.Dimension.height:I
17: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.JViewport.getViewPosition:()Ljava/awt/Point;
astore 9
start local 9 18: aload 4
ifnull 21
19: aload 2
invokevirtual javax.swing.JViewport.getParent:()Ljava/awt/Container;
ifnull 21
20: aload 2
invokevirtual javax.swing.JViewport.getParent:()Ljava/awt/Container;
invokevirtual java.awt.Container.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 24
21: StackMap locals: java.awt.Point
StackMap stack:
aload 9
getfield java.awt.Point.x:I
aload 7
getfield java.awt.Dimension.width:I
iadd
aload 8
getfield java.awt.Dimension.width:I
if_icmple 28
22: aload 9
iconst_0
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Dimension.width:I
isub
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Point.x:I
23: goto 28
24: StackMap locals:
StackMap stack:
aload 7
getfield java.awt.Dimension.width:I
aload 8
getfield java.awt.Dimension.width:I
if_icmple 27
25: aload 9
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Dimension.width:I
isub
putfield java.awt.Point.x:I
26: goto 28
27: StackMap locals:
StackMap stack:
aload 9
iconst_0
aload 8
getfield java.awt.Dimension.width:I
aload 7
getfield java.awt.Dimension.width:I
isub
aload 9
getfield java.awt.Point.x:I
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Point.x:I
28: StackMap locals:
StackMap stack:
aload 9
getfield java.awt.Point.y:I
aload 7
getfield java.awt.Dimension.height:I
iadd
aload 8
getfield java.awt.Dimension.height:I
if_icmple 30
29: aload 9
iconst_0
aload 8
getfield java.awt.Dimension.height:I
aload 7
getfield java.awt.Dimension.height:I
isub
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Point.y:I
30: StackMap locals:
StackMap stack:
aload 4
ifnonnull 35
31: aload 9
getfield java.awt.Point.x:I
ifne 33
aload 6
getfield java.awt.Dimension.width:I
aload 5
getfield java.awt.Dimension.width:I
if_icmple 33
32: aload 8
aload 6
getfield java.awt.Dimension.width:I
putfield java.awt.Dimension.width:I
33: StackMap locals:
StackMap stack:
aload 9
getfield java.awt.Point.y:I
ifne 35
aload 6
getfield java.awt.Dimension.height:I
aload 5
getfield java.awt.Dimension.height:I
if_icmple 35
34: aload 8
aload 6
getfield java.awt.Dimension.height:I
putfield java.awt.Dimension.height:I
35: StackMap locals:
StackMap stack:
aload 2
aload 9
invokevirtual javax.swing.JViewport.setViewPosition:(Ljava/awt/Point;)V
36: aload 2
aload 8
invokevirtual javax.swing.JViewport.setViewSize:(Ljava/awt/Dimension;)V
37: return
end local 9 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 38 0 this Ljavax/swing/ViewportLayout;
0 38 1 parent Ljava/awt/Container;
1 38 2 vp Ljavax/swing/JViewport;
2 38 3 view Ljava/awt/Component;
3 38 4 scrollableView Ljavax/swing/Scrollable;
9 38 5 viewPrefSize Ljava/awt/Dimension;
10 38 6 vpSize Ljava/awt/Dimension;
11 38 7 extentSize Ljava/awt/Dimension;
12 38 8 viewSize Ljava/awt/Dimension;
18 38 9 viewPosition Ljava/awt/Point;
MethodParameters:
Name Flags
parent
}
SourceFile: "ViewportLayout.java"