class javax.swing.colorchooser.SmartGridLayout implements java.awt.LayoutManager, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.colorchooser.SmartGridLayout
super_class: java.lang.Object
{
int rows;
descriptor: I
flags: (0x0000)
int columns;
descriptor: I
flags: (0x0000)
int xGap;
descriptor: I
flags: (0x0000)
int yGap;
descriptor: I
flags: (0x0000)
int componentCount;
descriptor: I
flags: (0x0000)
java.awt.Component[][] layoutGrid;
descriptor: [[Ljava/awt/Component;
flags: (0x0000)
public void <init>(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // int numColumns
start local 2 // int numRows
0: .line 51
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 43
aload 0 /* this */
iconst_2
putfield javax.swing.colorchooser.SmartGridLayout.rows:I
2: .line 44
aload 0 /* this */
iconst_2
putfield javax.swing.colorchooser.SmartGridLayout.columns:I
3: .line 45
aload 0 /* this */
iconst_2
putfield javax.swing.colorchooser.SmartGridLayout.xGap:I
4: .line 46
aload 0 /* this */
iconst_2
putfield javax.swing.colorchooser.SmartGridLayout.yGap:I
5: .line 47
aload 0 /* this */
iconst_0
putfield javax.swing.colorchooser.SmartGridLayout.componentCount:I
6: .line 52
aload 0 /* this */
iload 2 /* numRows */
putfield javax.swing.colorchooser.SmartGridLayout.rows:I
7: .line 53
aload 0 /* this */
iload 1 /* numColumns */
putfield javax.swing.colorchooser.SmartGridLayout.columns:I
8: .line 54
aload 0 /* this */
iload 1 /* numColumns */
iload 2 /* numRows */
multianewarray [[Ljava/awt/Component; 2
putfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
9: .line 56
return
end local 2 // int numRows
end local 1 // int numColumns
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 10 1 numColumns I
0 10 2 numRows I
MethodParameters:
Name Flags
numColumns
numRows
public void layoutContainer(java.awt.Container);
descriptor: (Ljava/awt/Container;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.awt.Container c
0: .line 61
aload 0 /* this */
aload 1 /* c */
invokevirtual javax.swing.colorchooser.SmartGridLayout.buildLayoutGrid:(Ljava/awt/Container;)V
1: .line 63
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
newarray 10
astore 2 /* rowHeights */
start local 2 // int[] rowHeights
2: .line 64
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
newarray 10
astore 3 /* columnWidths */
start local 3 // int[] columnWidths
3: .line 66
iconst_0
istore 4 /* row */
start local 4 // int row
4: goto 7
5: .line 67
StackMap locals: int[] int[] int
StackMap stack:
aload 2 /* rowHeights */
iload 4 /* row */
aload 0 /* this */
iload 4 /* row */
invokevirtual javax.swing.colorchooser.SmartGridLayout.computeRowHeight:(I)I
iastore
6: .line 66
iinc 4 /* row */ 1
StackMap locals:
StackMap stack:
7: iload 4 /* row */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
if_icmplt 5
end local 4 // int row
8: .line 70
iconst_0
istore 4 /* column */
start local 4 // int column
9: goto 12
10: .line 71
StackMap locals:
StackMap stack:
aload 3 /* columnWidths */
iload 4 /* column */
aload 0 /* this */
iload 4 /* column */
invokevirtual javax.swing.colorchooser.SmartGridLayout.computeColumnWidth:(I)I
iastore
11: .line 70
iinc 4 /* column */ 1
StackMap locals:
StackMap stack:
12: iload 4 /* column */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
if_icmplt 10
end local 4 // int column
13: .line 75
aload 1 /* c */
invokevirtual java.awt.Container.getInsets:()Ljava/awt/Insets;
astore 4 /* insets */
start local 4 // java.awt.Insets insets
14: .line 77
aload 1 /* c */
invokevirtual java.awt.Container.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 30
15: .line 78
aload 4 /* insets */
getfield java.awt.Insets.left:I
istore 5 /* horizLoc */
start local 5 // int horizLoc
16: .line 79
iconst_0
istore 6 /* column */
start local 6 // int column
17: goto 28
18: .line 80
StackMap locals: javax.swing.colorchooser.SmartGridLayout java.awt.Container int[] int[] java.awt.Insets int int
StackMap stack:
aload 4 /* insets */
getfield java.awt.Insets.top:I
istore 7 /* vertLoc */
start local 7 // int vertLoc
19: .line 82
iconst_0
istore 8 /* row */
start local 8 // int row
20: goto 25
21: .line 83
StackMap locals: int int
StackMap stack:
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
iload 6 /* column */
aaload
iload 8 /* row */
aaload
astore 9 /* current */
start local 9 // java.awt.Component current
22: .line 85
aload 9 /* current */
iload 5 /* horizLoc */
iload 7 /* vertLoc */
aload 3 /* columnWidths */
iload 6 /* column */
iaload
aload 2 /* rowHeights */
iload 8 /* row */
iaload
invokevirtual java.awt.Component.setBounds:(IIII)V
23: .line 87
iload 7 /* vertLoc */
aload 2 /* rowHeights */
iload 8 /* row */
iaload
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.yGap:I
iadd
iadd
istore 7 /* vertLoc */
end local 9 // java.awt.Component current
24: .line 82
iinc 8 /* row */ 1
StackMap locals:
StackMap stack:
25: iload 8 /* row */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
if_icmplt 21
end local 8 // int row
26: .line 89
iload 5 /* horizLoc */
aload 3 /* columnWidths */
iload 6 /* column */
iaload
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.xGap:I
iadd
iadd
istore 5 /* horizLoc */
end local 7 // int vertLoc
27: .line 79
iinc 6 /* column */ 1
StackMap locals:
StackMap stack:
28: iload 6 /* column */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
if_icmplt 18
end local 6 // int column
end local 5 // int horizLoc
29: .line 91
goto 45
30: .line 92
StackMap locals:
StackMap stack:
aload 1 /* c */
invokevirtual java.awt.Container.getWidth:()I
aload 4 /* insets */
getfield java.awt.Insets.right:I
isub
istore 5 /* horizLoc */
start local 5 // int horizLoc
31: .line 93
iconst_0
istore 6 /* column */
start local 6 // int column
32: goto 44
33: .line 94
StackMap locals: int int
StackMap stack:
aload 4 /* insets */
getfield java.awt.Insets.top:I
istore 7 /* vertLoc */
start local 7 // int vertLoc
34: .line 95
iload 5 /* horizLoc */
aload 3 /* columnWidths */
iload 6 /* column */
iaload
isub
istore 5 /* horizLoc */
35: .line 97
iconst_0
istore 8 /* row */
start local 8 // int row
36: goto 41
37: .line 98
StackMap locals: int int
StackMap stack:
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
iload 6 /* column */
aaload
iload 8 /* row */
aaload
astore 9 /* current */
start local 9 // java.awt.Component current
38: .line 100
aload 9 /* current */
iload 5 /* horizLoc */
iload 7 /* vertLoc */
aload 3 /* columnWidths */
iload 6 /* column */
iaload
aload 2 /* rowHeights */
iload 8 /* row */
iaload
invokevirtual java.awt.Component.setBounds:(IIII)V
39: .line 102
iload 7 /* vertLoc */
aload 2 /* rowHeights */
iload 8 /* row */
iaload
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.yGap:I
iadd
iadd
istore 7 /* vertLoc */
end local 9 // java.awt.Component current
40: .line 97
iinc 8 /* row */ 1
StackMap locals:
StackMap stack:
41: iload 8 /* row */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
if_icmplt 37
end local 8 // int row
42: .line 104
iload 5 /* horizLoc */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.xGap:I
isub
istore 5 /* horizLoc */
end local 7 // int vertLoc
43: .line 93
iinc 6 /* column */ 1
StackMap locals:
StackMap stack:
44: iload 6 /* column */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
if_icmplt 33
end local 6 // int column
end local 5 // int horizLoc
45: .line 110
StackMap locals:
StackMap stack:
return
end local 4 // java.awt.Insets insets
end local 3 // int[] columnWidths
end local 2 // int[] rowHeights
end local 1 // java.awt.Container c
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 46 1 c Ljava/awt/Container;
2 46 2 rowHeights [I
3 46 3 columnWidths [I
4 8 4 row I
9 13 4 column I
14 46 4 insets Ljava/awt/Insets;
16 29 5 horizLoc I
17 29 6 column I
19 27 7 vertLoc I
20 26 8 row I
22 24 9 current Ljava/awt/Component;
31 45 5 horizLoc I
32 45 6 column I
34 43 7 vertLoc I
36 42 8 row I
38 40 9 current Ljava/awt/Component;
MethodParameters:
Name Flags
c
public java.awt.Dimension minimumLayoutSize(java.awt.Container);
descriptor: (Ljava/awt/Container;)Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.awt.Container c
0: .line 114
aload 0 /* this */
aload 1 /* c */
invokevirtual javax.swing.colorchooser.SmartGridLayout.buildLayoutGrid:(Ljava/awt/Container;)V
1: .line 115
aload 1 /* c */
invokevirtual java.awt.Container.getInsets:()Ljava/awt/Insets;
astore 2 /* insets */
start local 2 // java.awt.Insets insets
2: .line 119
iconst_0
istore 3 /* height */
start local 3 // int height
3: .line 120
iconst_0
istore 4 /* width */
start local 4 // int width
4: .line 122
iconst_0
istore 5 /* row */
start local 5 // int row
5: goto 8
6: .line 123
StackMap locals: javax.swing.colorchooser.SmartGridLayout java.awt.Container java.awt.Insets int int int
StackMap stack:
iload 3 /* height */
aload 0 /* this */
iload 5 /* row */
invokevirtual javax.swing.colorchooser.SmartGridLayout.computeRowHeight:(I)I
iadd
istore 3 /* height */
7: .line 122
iinc 5 /* row */ 1
StackMap locals:
StackMap stack:
8: iload 5 /* row */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
if_icmplt 6
end local 5 // int row
9: .line 126
iconst_0
istore 5 /* column */
start local 5 // int column
10: goto 13
11: .line 127
StackMap locals:
StackMap stack:
iload 4 /* width */
aload 0 /* this */
iload 5 /* column */
invokevirtual javax.swing.colorchooser.SmartGridLayout.computeColumnWidth:(I)I
iadd
istore 4 /* width */
12: .line 126
iinc 5 /* column */ 1
StackMap locals:
StackMap stack:
13: iload 5 /* column */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
if_icmplt 11
end local 5 // int column
14: .line 130
iload 3 /* height */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.yGap:I
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
iconst_1
isub
imul
aload 2 /* insets */
getfield java.awt.Insets.top:I
iadd
aload 2 /* insets */
getfield java.awt.Insets.bottom:I
iadd
iadd
istore 3 /* height */
15: .line 131
iload 4 /* width */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.xGap:I
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
iconst_1
isub
imul
aload 2 /* insets */
getfield java.awt.Insets.right:I
iadd
aload 2 /* insets */
getfield java.awt.Insets.left:I
iadd
iadd
istore 4 /* width */
16: .line 133
new java.awt.Dimension
dup
iload 4 /* width */
iload 3 /* height */
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 4 // int width
end local 3 // int height
end local 2 // java.awt.Insets insets
end local 1 // java.awt.Container c
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 17 1 c Ljava/awt/Container;
2 17 2 insets Ljava/awt/Insets;
3 17 3 height I
4 17 4 width I
5 9 5 row I
10 14 5 column I
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=2, locals=2, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.awt.Container c
0: .line 139
aload 0 /* this */
aload 1 /* c */
invokevirtual javax.swing.colorchooser.SmartGridLayout.minimumLayoutSize:(Ljava/awt/Container;)Ljava/awt/Dimension;
areturn
end local 1 // java.awt.Container c
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 1 1 c Ljava/awt/Container;
MethodParameters:
Name Flags
c
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 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.lang.String s
start local 2 // java.awt.Component c
0: .line 143
return
end local 2 // java.awt.Component c
end local 1 // java.lang.String s
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 1 1 s Ljava/lang/String;
0 1 2 c Ljava/awt/Component;
MethodParameters:
Name Flags
s
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 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.awt.Component c
0: .line 145
return
end local 1 // java.awt.Component c
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 1 1 c Ljava/awt/Component;
MethodParameters:
Name Flags
c
private void buildLayoutGrid(java.awt.Container);
descriptor: (Ljava/awt/Container;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // java.awt.Container c
0: .line 150
aload 1 /* c */
invokevirtual java.awt.Container.getComponents:()[Ljava/awt/Component;
astore 2 /* children */
start local 2 // java.awt.Component[] children
1: .line 152
iconst_0
istore 3 /* componentCount */
start local 3 // int componentCount
2: goto 10
3: .line 154
StackMap locals: java.awt.Component[] int
StackMap stack:
iconst_0
istore 4 /* row */
start local 4 // int row
4: .line 155
iconst_0
istore 5 /* column */
start local 5 // int column
5: .line 157
iload 3 /* componentCount */
ifeq 8
6: .line 158
iload 3 /* componentCount */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
irem
istore 5 /* column */
7: .line 159
iload 3 /* componentCount */
iload 5 /* column */
isub
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
idiv
istore 4 /* row */
8: .line 164
StackMap locals: int int
StackMap stack:
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
iload 5 /* column */
aaload
iload 4 /* row */
aload 2 /* children */
iload 3 /* componentCount */
aaload
aastore
end local 5 // int column
end local 4 // int row
9: .line 152
iinc 3 /* componentCount */ 1
StackMap locals:
StackMap stack:
10: iload 3 /* componentCount */
aload 2 /* children */
arraylength
if_icmplt 3
end local 3 // int componentCount
11: .line 166
return
end local 2 // java.awt.Component[] children
end local 1 // java.awt.Container c
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 12 1 c Ljava/awt/Container;
1 12 2 children [Ljava/awt/Component;
2 11 3 componentCount I
4 9 4 row I
5 9 5 column I
MethodParameters:
Name Flags
c
private int computeColumnWidth(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // int columnNum
0: .line 169
iconst_1
istore 2 /* maxWidth */
start local 2 // int maxWidth
1: .line 170
iconst_0
istore 3 /* row */
start local 3 // int row
2: goto 7
3: .line 171
StackMap locals: int int
StackMap stack:
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
iload 1 /* columnNum */
aaload
iload 3 /* row */
aaload
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
getfield java.awt.Dimension.width:I
istore 4 /* width */
start local 4 // int width
4: .line 172
iload 4 /* width */
iload 2 /* maxWidth */
if_icmple 6
5: .line 173
iload 4 /* width */
istore 2 /* maxWidth */
end local 4 // int width
6: .line 170
StackMap locals:
StackMap stack:
iinc 3 /* row */ 1
StackMap locals:
StackMap stack:
7: iload 3 /* row */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.rows:I
if_icmplt 3
end local 3 // int row
8: .line 176
iload 2 /* maxWidth */
ireturn
end local 2 // int maxWidth
end local 1 // int columnNum
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 9 1 columnNum I
1 9 2 maxWidth I
2 8 3 row I
4 6 4 width I
MethodParameters:
Name Flags
columnNum
private int computeRowHeight(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 // javax.swing.colorchooser.SmartGridLayout this
start local 1 // int rowNum
0: .line 180
iconst_1
istore 2 /* maxHeight */
start local 2 // int maxHeight
1: .line 181
iconst_0
istore 3 /* column */
start local 3 // int column
2: goto 7
3: .line 182
StackMap locals: int int
StackMap stack:
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.layoutGrid:[[Ljava/awt/Component;
iload 3 /* column */
aaload
iload 1 /* rowNum */
aaload
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
getfield java.awt.Dimension.height:I
istore 4 /* height */
start local 4 // int height
4: .line 183
iload 4 /* height */
iload 2 /* maxHeight */
if_icmple 6
5: .line 184
iload 4 /* height */
istore 2 /* maxHeight */
end local 4 // int height
6: .line 181
StackMap locals:
StackMap stack:
iinc 3 /* column */ 1
StackMap locals:
StackMap stack:
7: iload 3 /* column */
aload 0 /* this */
getfield javax.swing.colorchooser.SmartGridLayout.columns:I
if_icmplt 3
end local 3 // int column
8: .line 187
iload 2 /* maxHeight */
ireturn
end local 2 // int maxHeight
end local 1 // int rowNum
end local 0 // javax.swing.colorchooser.SmartGridLayout this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/colorchooser/SmartGridLayout;
0 9 1 rowNum I
1 9 2 maxHeight I
2 8 3 column I
4 6 4 height I
MethodParameters:
Name Flags
rowNum
}
SourceFile: "SmartGridLayout.java"