class javax.swing.plaf.basic.CenterLayout implements java.awt.LayoutManager, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.basic.CenterLayout
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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/plaf/basic/CenterLayout;
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/plaf/basic/CenterLayout;
0 1 1 name Ljava/lang/String;
0 1 2 comp Ljava/awt/Component;
MethodParameters:
Name Flags
name
comp
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/plaf/basic/CenterLayout;
0 1 1 comp Ljava/awt/Component;
MethodParameters:
Name Flags
comp
public java.awt.Dimension preferredLayoutSize(java.awt.Container);
descriptor: (Ljava/awt/Container;)Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
invokevirtual java.awt.Container.getComponent:(I)Ljava/awt/Component;
astore 2
start local 2 1: aload 2
ifnull 7
2: aload 2
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
astore 3
start local 3 3: aload 1
invokevirtual java.awt.Container.getInsets:()Ljava/awt/Insets;
astore 4
start local 4 4: new java.awt.Dimension
dup
aload 3
getfield java.awt.Dimension.width:I
aload 4
getfield java.awt.Insets.left:I
iadd
aload 4
getfield java.awt.Insets.right:I
iadd
5: aload 3
getfield java.awt.Dimension.height:I
aload 4
getfield java.awt.Insets.top:I
iadd
aload 4
getfield java.awt.Insets.bottom:I
iadd
6: invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 4 end local 3 7: StackMap locals: java.awt.Component
StackMap stack:
new java.awt.Dimension
dup
iconst_0
iconst_0
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/plaf/basic/CenterLayout;
0 8 1 container Ljava/awt/Container;
1 8 2 c Ljava/awt/Component;
3 7 3 size Ljava/awt/Dimension;
4 7 4 insets Ljava/awt/Insets;
MethodParameters:
Name Flags
container
public java.awt.Dimension minimumLayoutSize(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 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.plaf.basic.CenterLayout.preferredLayoutSize:(Ljava/awt/Container;)Ljava/awt/Dimension;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/basic/CenterLayout;
0 1 1 cont Ljava/awt/Container;
MethodParameters:
Name Flags
cont
public void layoutContainer(java.awt.Container);
descriptor: (Ljava/awt/Container;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.Container.getComponentCount:()I
ifle 19
1: aload 1
iconst_0
invokevirtual java.awt.Container.getComponent:(I)Ljava/awt/Component;
astore 2
start local 2 2: aload 2
invokevirtual java.awt.Component.getPreferredSize:()Ljava/awt/Dimension;
astore 3
start local 3 3: aload 1
invokevirtual java.awt.Container.getWidth:()I
istore 4
start local 4 4: aload 1
invokevirtual java.awt.Container.getHeight:()I
istore 5
start local 5 5: aload 1
invokevirtual java.awt.Container.getInsets:()Ljava/awt/Insets;
astore 6
start local 6 6: iload 4
aload 6
getfield java.awt.Insets.left:I
7: aload 6
getfield java.awt.Insets.right:I
8: iadd
isub
istore 4
9: iload 5
aload 6
getfield java.awt.Insets.top:I
10: aload 6
getfield java.awt.Insets.bottom:I
11: iadd
isub
istore 5
12: iload 4
aload 3
getfield java.awt.Dimension.width:I
isub
iconst_2
idiv
13: aload 6
getfield java.awt.Insets.left:I
14: iadd
istore 7
start local 7 15: iload 5
aload 3
getfield java.awt.Dimension.height:I
isub
iconst_2
idiv
16: aload 6
getfield java.awt.Insets.top:I
17: iadd
istore 8
start local 8 18: aload 2
iload 7
iload 8
aload 3
getfield java.awt.Dimension.width:I
aload 3
getfield java.awt.Dimension.height:I
invokevirtual java.awt.Component.setBounds:(IIII)V
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/swing/plaf/basic/CenterLayout;
0 20 1 container Ljava/awt/Container;
2 19 2 c Ljava/awt/Component;
3 19 3 pref Ljava/awt/Dimension;
4 19 4 containerWidth I
5 19 5 containerHeight I
6 19 6 containerInsets Ljava/awt/Insets;
15 19 7 left I
18 19 8 right I
MethodParameters:
Name Flags
container
}
SourceFile: "CenterLayout.java"