public class jflex.gui.GridPanel extends java.awt.Panel implements jflex.gui.Handles
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jflex.gui.GridPanel
super_class: java.awt.Panel
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2846472856883709721
private final int cols;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int rows;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int hgap;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int vgap;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<jflex.gui.GridPanelConstraint> constraints;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljflex/gui/GridPanelConstraint;>;
private java.awt.Insets insets;
descriptor: Ljava/awt/Insets;
flags: (0x0002) ACC_PRIVATE
public void <init>(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 // jflex.gui.GridPanel this
start local 1 // int cols
start local 2 // int rows
0: .line 41
aload 0 /* this */
iload 1 /* cols */
iload 2 /* rows */
iconst_0
iconst_0
invokespecial jflex.gui.GridPanel.<init>:(IIII)V
1: .line 42
return
end local 2 // int rows
end local 1 // int cols
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljflex/gui/GridPanel;
0 2 1 cols I
0 2 2 rows I
MethodParameters:
Name Flags
cols
rows
public void <init>(int, int, int, int);
descriptor: (IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 // jflex.gui.GridPanel this
start local 1 // int cols
start local 2 // int rows
start local 3 // int hgap
start local 4 // int vgap
0: .line 52
aload 0 /* this */
invokespecial java.awt.Panel.<init>:()V
1: .line 36
aload 0 /* this */
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jflex.gui.GridPanel.constraints:Ljava/util/List;
2: .line 37
aload 0 /* this */
new java.awt.Insets
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Insets.<init>:(IIII)V
putfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
3: .line 53
aload 0 /* this */
iload 1 /* cols */
putfield jflex.gui.GridPanel.cols:I
4: .line 54
aload 0 /* this */
iload 2 /* rows */
putfield jflex.gui.GridPanel.rows:I
5: .line 55
aload 0 /* this */
iload 3 /* hgap */
putfield jflex.gui.GridPanel.hgap:I
6: .line 56
aload 0 /* this */
iload 4 /* vgap */
putfield jflex.gui.GridPanel.vgap:I
7: .line 57
return
end local 4 // int vgap
end local 3 // int hgap
end local 2 // int rows
end local 1 // int cols
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljflex/gui/GridPanel;
0 8 1 cols I
0 8 2 rows I
0 8 3 hgap I
0 8 4 vgap I
MethodParameters:
Name Flags
cols
rows
hgap
vgap
public void doLayout();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=1
start local 0 // jflex.gui.GridPanel this
0: .line 62
aload 0 /* this */
invokevirtual jflex.gui.GridPanel.getSize:()Ljava/awt/Dimension;
astore 1 /* size */
start local 1 // java.awt.Dimension size
1: .line 63
aload 1 /* size */
dup
getfield java.awt.Dimension.height:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
isub
putfield java.awt.Dimension.height:I
2: .line 64
aload 1 /* size */
dup
getfield java.awt.Dimension.width:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
isub
putfield java.awt.Dimension.width:I
3: .line 66
aload 1 /* size */
getfield java.awt.Dimension.width:I
aload 0 /* this */
getfield jflex.gui.GridPanel.cols:I
idiv
i2f
fstore 2 /* cellWidth */
start local 2 // float cellWidth
4: .line 67
aload 1 /* size */
getfield java.awt.Dimension.height:I
aload 0 /* this */
getfield jflex.gui.GridPanel.rows:I
idiv
i2f
fstore 3 /* cellHeight */
start local 3 // float cellHeight
5: .line 69
iconst_0
istore 4 /* i */
start local 4 // int i
6: goto 40
7: .line 70
StackMap locals: jflex.gui.GridPanel java.awt.Dimension float float int
StackMap stack:
aload 0 /* this */
getfield jflex.gui.GridPanel.constraints:Ljava/util/List;
iload 4 /* i */
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jflex.gui.GridPanelConstraint
astore 5 /* c */
start local 5 // jflex.gui.GridPanelConstraint c
8: .line 72
fload 2 /* cellWidth */
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.x:I
i2f
fmul
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
i2f
fadd
aload 0 /* this */
getfield jflex.gui.GridPanel.hgap:I
iconst_2
idiv
i2f
fadd
fstore 6 /* x */
start local 6 // float x
9: .line 73
fload 3 /* cellHeight */
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.y:I
i2f
fmul
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
i2f
fadd
aload 0 /* this */
getfield jflex.gui.GridPanel.vgap:I
iconst_2
idiv
i2f
fadd
fstore 7 /* y */
start local 7 // float y
10: .line 77
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.handle:I
ifne 14
11: .line 78
fload 2 /* cellWidth */
aload 0 /* this */
getfield jflex.gui.GridPanel.hgap:I
i2f
fsub
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.width:I
i2f
fmul
fstore 8 /* width */
start local 8 // float width
12: .line 79
fload 3 /* cellHeight */
aload 0 /* this */
getfield jflex.gui.GridPanel.vgap:I
i2f
fsub
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.height:I
i2f
fmul
fstore 9 /* height */
start local 9 // float height
13: .line 80
goto 17
end local 9 // float height
end local 8 // float width
14: .line 81
StackMap locals: jflex.gui.GridPanelConstraint float float
StackMap stack:
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.component:Ljava/awt/Component;
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
astore 10 /* d */
start local 10 // java.awt.Dimension d
15: .line 82
aload 10 /* d */
getfield java.awt.Dimension.width:I
i2f
fstore 8 /* width */
start local 8 // float width
16: .line 83
aload 10 /* d */
getfield java.awt.Dimension.height:I
i2f
fstore 9 /* height */
end local 10 // java.awt.Dimension d
start local 9 // float height
17: .line 86
StackMap locals: float float
StackMap stack:
aload 5 /* c */
getfield jflex.gui.GridPanelConstraint.handle:I
tableswitch { // 2 - 9
2: 18
3: 20
4: 22
5: 24
6: 27
7: 30
8: 32
9: 35
default: 37
}
18: .line 88
StackMap locals:
StackMap stack:
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fadd
fconst_2
fdiv
fadd
fstore 6 /* x */
19: .line 89
goto 37
20: .line 91
StackMap locals:
StackMap stack:
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fsub
fadd
fstore 6 /* x */
21: .line 92
goto 37
22: .line 94
StackMap locals:
StackMap stack:
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fadd
fconst_2
fdiv
fadd
fstore 7 /* y */
23: .line 95
goto 37
24: .line 97
StackMap locals:
StackMap stack:
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fadd
fconst_2
fdiv
fadd
fstore 6 /* x */
25: .line 98
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fadd
fconst_2
fdiv
fadd
fstore 7 /* y */
26: .line 99
goto 37
27: .line 101
StackMap locals:
StackMap stack:
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fadd
fconst_2
fdiv
fadd
fstore 7 /* y */
28: .line 102
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fsub
fadd
fstore 6 /* x */
29: .line 103
goto 37
30: .line 105
StackMap locals:
StackMap stack:
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fsub
fadd
fstore 7 /* y */
31: .line 106
goto 37
32: .line 108
StackMap locals:
StackMap stack:
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fadd
fconst_2
fdiv
fadd
fstore 6 /* x */
33: .line 109
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fsub
fadd
fstore 7 /* y */
34: .line 110
goto 37
35: .line 112
StackMap locals:
StackMap stack:
fload 7 /* y */
fload 3 /* cellHeight */
fload 9 /* height */
fsub
fadd
fstore 7 /* y */
36: .line 113
fload 6 /* x */
fload 2 /* cellWidth */
fload 8 /* width */
fsub
fadd
fstore 6 /* x */
37: .line 114
StackMap locals:
StackMap stack:
aload 5 /* c */
38: .line 119
getfield jflex.gui.GridPanelConstraint.component:Ljava/awt/Component;
new java.awt.Rectangle
dup
fload 6 /* x */
f2i
fload 7 /* y */
f2i
fload 8 /* width */
f2i
fload 9 /* height */
f2i
invokespecial java.awt.Rectangle.<init>:(IIII)V
invokevirtual java.awt.Component.setBounds:(Ljava/awt/Rectangle;)V
end local 9 // float height
end local 8 // float width
end local 7 // float y
end local 6 // float x
end local 5 // jflex.gui.GridPanelConstraint c
39: .line 69
iinc 4 /* i */ 1
StackMap locals: jflex.gui.GridPanel java.awt.Dimension float float int
StackMap stack:
40: iload 4 /* i */
aload 0 /* this */
getfield jflex.gui.GridPanel.constraints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 7
end local 4 // int i
41: .line 121
return
end local 3 // float cellHeight
end local 2 // float cellWidth
end local 1 // java.awt.Dimension size
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljflex/gui/GridPanel;
1 42 1 size Ljava/awt/Dimension;
4 42 2 cellWidth F
5 42 3 cellHeight F
6 41 4 i I
8 39 5 c Ljflex/gui/GridPanelConstraint;
9 39 6 x F
10 39 7 y F
12 14 8 width F
16 39 8 width F
13 14 9 height F
17 39 9 height F
15 17 10 d Ljava/awt/Dimension;
public java.awt.Dimension getPreferredSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 // jflex.gui.GridPanel this
0: .line 130
fconst_0
fstore 1 /* dy */
start local 1 // float dy
1: .line 131
fconst_0
fstore 2 /* dx */
start local 2 // float dx
2: .line 133
iconst_0
istore 3 /* i */
start local 3 // int i
3: goto 9
4: .line 134
StackMap locals: float float int
StackMap stack:
aload 0 /* this */
getfield jflex.gui.GridPanel.constraints:Ljava/util/List;
iload 3 /* i */
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jflex.gui.GridPanelConstraint
astore 4 /* c */
start local 4 // jflex.gui.GridPanelConstraint c
5: .line 136
aload 4 /* c */
getfield jflex.gui.GridPanelConstraint.component:Ljava/awt/Component;
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
astore 5 /* d */
start local 5 // java.awt.Dimension d
6: .line 138
fload 2 /* dx */
aload 5 /* d */
getfield java.awt.Dimension.width:I
aload 4 /* c */
getfield jflex.gui.GridPanelConstraint.width:I
idiv
i2f
invokestatic java.lang.Math.max:(FF)F
fstore 2 /* dx */
7: .line 139
fload 1 /* dy */
aload 5 /* d */
getfield java.awt.Dimension.height:I
aload 4 /* c */
getfield jflex.gui.GridPanelConstraint.height:I
idiv
i2f
invokestatic java.lang.Math.max:(FF)F
fstore 1 /* dy */
end local 5 // java.awt.Dimension d
end local 4 // jflex.gui.GridPanelConstraint c
8: .line 133
iinc 3 /* i */ 1
StackMap locals:
StackMap stack:
9: iload 3 /* i */
aload 0 /* this */
getfield jflex.gui.GridPanel.constraints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 4
end local 3 // int i
10: .line 142
fload 2 /* dx */
aload 0 /* this */
getfield jflex.gui.GridPanel.hgap:I
i2f
fadd
fstore 2 /* dx */
11: .line 143
fload 1 /* dy */
aload 0 /* this */
getfield jflex.gui.GridPanel.vgap:I
i2f
fadd
fstore 1 /* dy */
12: .line 145
fload 2 /* dx */
aload 0 /* this */
getfield jflex.gui.GridPanel.cols:I
i2f
fmul
fstore 2 /* dx */
13: .line 146
fload 1 /* dy */
aload 0 /* this */
getfield jflex.gui.GridPanel.rows:I
i2f
fmul
fstore 1 /* dy */
14: .line 148
fload 2 /* dx */
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
i2f
fadd
fstore 2 /* dx */
15: .line 149
fload 1 /* dy */
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0 /* this */
getfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
i2f
fadd
fstore 1 /* dy */
16: .line 151
new java.awt.Dimension
dup
fload 2 /* dx */
f2i
fload 1 /* dy */
f2i
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 2 // float dx
end local 1 // float dy
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljflex/gui/GridPanel;
1 17 1 dy F
2 17 2 dx F
3 10 3 i I
5 8 4 c Ljflex/gui/GridPanelConstraint;
6 8 5 d Ljava/awt/Dimension;
public void setInsets(java.awt.Insets);
descriptor: (Ljava/awt/Insets;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // jflex.gui.GridPanel this
start local 1 // java.awt.Insets insets
0: .line 160
aload 0 /* this */
aload 1 /* insets */
putfield jflex.gui.GridPanel.insets:Ljava/awt/Insets;
1: .line 161
return
end local 1 // java.awt.Insets insets
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljflex/gui/GridPanel;
0 2 1 insets Ljava/awt/Insets;
MethodParameters:
Name Flags
insets
public void add(int, int, java.awt.Component);
descriptor: (IILjava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 // jflex.gui.GridPanel this
start local 1 // int x
start local 2 // int y
start local 3 // java.awt.Component c
0: .line 165
aload 0 /* this */
iload 1 /* x */
iload 2 /* y */
iconst_1
iconst_1
iconst_0
aload 3 /* c */
invokevirtual jflex.gui.GridPanel.add:(IIIIILjava/awt/Component;)V
1: .line 166
return
end local 3 // java.awt.Component c
end local 2 // int y
end local 1 // int x
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljflex/gui/GridPanel;
0 2 1 x I
0 2 2 y I
0 2 3 c Ljava/awt/Component;
MethodParameters:
Name Flags
x
y
c
public void add(int, int, int, java.awt.Component);
descriptor: (IIILjava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 // jflex.gui.GridPanel this
start local 1 // int x
start local 2 // int y
start local 3 // int handle
start local 4 // java.awt.Component c
0: .line 170
aload 0 /* this */
iload 1 /* x */
iload 2 /* y */
iconst_1
iconst_1
iload 3 /* handle */
aload 4 /* c */
invokevirtual jflex.gui.GridPanel.add:(IIIIILjava/awt/Component;)V
1: .line 171
return
end local 4 // java.awt.Component c
end local 3 // int handle
end local 2 // int y
end local 1 // int x
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljflex/gui/GridPanel;
0 2 1 x I
0 2 2 y I
0 2 3 handle I
0 2 4 c Ljava/awt/Component;
MethodParameters:
Name Flags
x
y
handle
c
public void add(int, int, int, int, java.awt.Component);
descriptor: (IIIILjava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 // jflex.gui.GridPanel this
start local 1 // int x
start local 2 // int y
start local 3 // int dx
start local 4 // int dy
start local 5 // java.awt.Component c
0: .line 175
aload 0 /* this */
iload 1 /* x */
iload 2 /* y */
iload 3 /* dx */
iload 4 /* dy */
iconst_0
aload 5 /* c */
invokevirtual jflex.gui.GridPanel.add:(IIIIILjava/awt/Component;)V
1: .line 176
return
end local 5 // java.awt.Component c
end local 4 // int dy
end local 3 // int dx
end local 2 // int y
end local 1 // int x
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljflex/gui/GridPanel;
0 2 1 x I
0 2 2 y I
0 2 3 dx I
0 2 4 dy I
0 2 5 c Ljava/awt/Component;
MethodParameters:
Name Flags
x
y
dx
dy
c
public void add(int, int, int, int, int, java.awt.Component);
descriptor: (IIIIILjava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=7, args_size=7
start local 0 // jflex.gui.GridPanel this
start local 1 // int x
start local 2 // int y
start local 3 // int dx
start local 4 // int dy
start local 5 // int handle
start local 6 // java.awt.Component c
0: .line 180
aload 0 /* this */
aload 6 /* c */
invokespecial java.awt.Panel.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
1: .line 181
aload 0 /* this */
getfield jflex.gui.GridPanel.constraints:Ljava/util/List;
new jflex.gui.GridPanelConstraint
dup
iload 1 /* x */
iload 2 /* y */
iload 3 /* dx */
iload 4 /* dy */
iload 5 /* handle */
aload 6 /* c */
invokespecial jflex.gui.GridPanelConstraint.<init>:(IIIIILjava/awt/Component;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: .line 182
return
end local 6 // java.awt.Component c
end local 5 // int handle
end local 4 // int dy
end local 3 // int dx
end local 2 // int y
end local 1 // int x
end local 0 // jflex.gui.GridPanel this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljflex/gui/GridPanel;
0 3 1 x I
0 3 2 y I
0 3 3 dx I
0 3 4 dy I
0 3 5 handle I
0 3 6 c Ljava/awt/Component;
MethodParameters:
Name Flags
x
y
dx
dy
handle
c
}
SourceFile: "GridPanel.java"