public class sun.swing.DefaultLayoutStyle extends javax.swing.LayoutStyle
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.swing.DefaultLayoutStyle
super_class: javax.swing.LayoutStyle
{
private static final sun.swing.DefaultLayoutStyle INSTANCE;
descriptor: Lsun/swing/DefaultLayoutStyle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/swing/DefaultLayoutStyle;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.swing.DefaultLayoutStyle.$assertionsDisabled:Z
3: new sun.swing.DefaultLayoutStyle
dup
invokespecial sun.swing.DefaultLayoutStyle.<init>:()V
4: putstatic sun.swing.DefaultLayoutStyle.INSTANCE:Lsun/swing/DefaultLayoutStyle;
5: 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 javax.swing.LayoutStyle.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/swing/DefaultLayoutStyle;
public static javax.swing.LayoutStyle getInstance();
descriptor: ()Ljavax/swing/LayoutStyle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.swing.DefaultLayoutStyle.INSTANCE:Lsun/swing/DefaultLayoutStyle;
areturn
LocalVariableTable:
Start End Slot Name Signature
public int getPreferredGap(javax.swing.JComponent, javax.swing.JComponent, javax.swing.LayoutStyle$ComponentPlacement, int, java.awt.Container);
descriptor: (Ljavax/swing/JComponent;Ljavax/swing/JComponent;Ljavax/swing/LayoutStyle$ComponentPlacement;ILjava/awt/Container;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
ifnull 1
aload 2
ifnull 1
aload 3
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 4
invokevirtual sun.swing.DefaultLayoutStyle.checkPosition:(I)V
3: aload 3
getstatic javax.swing.LayoutStyle$ComponentPlacement.INDENT:Ljavax/swing/LayoutStyle$ComponentPlacement;
if_acmpne 9
4: iload 4
iconst_3
if_icmpeq 6
5: iload 4
bipush 7
if_icmpne 9
6: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokevirtual sun.swing.DefaultLayoutStyle.getIndent:(Ljavax/swing/JComponent;I)I
istore 6
start local 6 7: iload 6
ifle 9
8: iload 6
ireturn
end local 6 9: StackMap locals:
StackMap stack:
aload 3
getstatic javax.swing.LayoutStyle$ComponentPlacement.UNRELATED:Ljavax/swing/LayoutStyle$ComponentPlacement;
if_acmpne 10
bipush 12
goto 11
StackMap locals:
StackMap stack:
10: bipush 6
StackMap locals:
StackMap stack: int
11: ireturn
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 12 0 this Lsun/swing/DefaultLayoutStyle;
0 12 1 component1 Ljavax/swing/JComponent;
0 12 2 component2 Ljavax/swing/JComponent;
0 12 3 type Ljavax/swing/LayoutStyle$ComponentPlacement;
0 12 4 position I
0 12 5 parent Ljava/awt/Container;
7 9 6 indent I
MethodParameters:
Name Flags
component1
component2
type
position
parent
public int getContainerGap(javax.swing.JComponent, int, java.awt.Container);
descriptor: (Ljavax/swing/JComponent;ILjava/awt/Container;)I
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 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.checkPosition:(I)V
3: bipush 6
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/swing/DefaultLayoutStyle;
0 4 1 component Ljavax/swing/JComponent;
0 4 2 position I
0 4 3 parent Ljava/awt/Container;
MethodParameters:
Name Flags
component
position
parent
protected boolean isLabelAndNonlabel(javax.swing.JComponent, javax.swing.JComponent, int);
descriptor: (Ljavax/swing/JComponent;Ljavax/swing/JComponent;I)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iconst_3
if_icmpeq 2
1: iload 3
bipush 7
if_icmpne 7
2: StackMap locals:
StackMap stack:
aload 1
instanceof javax.swing.JLabel
istore 4
start local 4 3: aload 2
instanceof javax.swing.JLabel
istore 5
start local 5 4: iload 4
ifne 5
iload 5
ifeq 6
StackMap locals: int int
StackMap stack:
5: iload 4
iload 5
if_icmpeq 6
iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
end local 5 end local 4 7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/swing/DefaultLayoutStyle;
0 8 1 c1 Ljavax/swing/JComponent;
0 8 2 c2 Ljavax/swing/JComponent;
0 8 3 position I
3 7 4 c1Label Z
4 7 5 c2Label Z
MethodParameters:
Name Flags
c1
c2
position
protected int getButtonGap(javax.swing.JComponent, javax.swing.JComponent, int, int);
descriptor: (Ljavax/swing/JComponent;Ljavax/swing/JComponent;II)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 4
aload 0
aload 1
iload 3
invokevirtual sun.swing.DefaultLayoutStyle.getButtonGap:(Ljavax/swing/JComponent;I)I
isub
istore 4
1: iload 4
ifle 3
2: iload 4
aload 0
aload 2
aload 0
iload 3
invokevirtual sun.swing.DefaultLayoutStyle.flipDirection:(I)I
invokevirtual sun.swing.DefaultLayoutStyle.getButtonGap:(Ljavax/swing/JComponent;I)I
isub
istore 4
3: StackMap locals:
StackMap stack:
iload 4
ifge 5
4: iconst_0
ireturn
5: 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 6 0 this Lsun/swing/DefaultLayoutStyle;
0 6 1 source Ljavax/swing/JComponent;
0 6 2 target Ljavax/swing/JComponent;
0 6 3 position I
0 6 4 offset I
MethodParameters:
Name Flags
source
target
position
offset
protected int getButtonGap(javax.swing.JComponent, int, int);
descriptor: (Ljavax/swing/JComponent;II)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
aload 1
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.getButtonGap:(Ljavax/swing/JComponent;I)I
isub
istore 3
1: iload 3
iconst_0
invokestatic java.lang.Math.max:(II)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/swing/DefaultLayoutStyle;
0 2 1 source Ljavax/swing/JComponent;
0 2 2 position I
0 2 3 offset I
MethodParameters:
Name Flags
source
position
offset
public int getButtonGap(javax.swing.JComponent, int);
descriptor: (Ljavax/swing/JComponent;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual javax.swing.JComponent.getUIClassID:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc "CheckBoxUI"
if_acmpeq 2
aload 3
ldc "RadioButtonUI"
if_acmpne 6
2: StackMap locals: java.lang.String
StackMap stack:
aload 1
checkcast javax.swing.AbstractButton
invokevirtual javax.swing.AbstractButton.isBorderPainted:()Z
ifne 6
3: aload 1
invokevirtual javax.swing.JComponent.getBorder:()Ljavax/swing/border/Border;
astore 4
start local 4 4: aload 4
instanceof javax.swing.plaf.UIResource
ifeq 6
5: aload 0
aload 1
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.getInset:(Ljavax/swing/JComponent;I)I
ireturn
end local 4 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/swing/DefaultLayoutStyle;
0 7 1 c Ljavax/swing/JComponent;
0 7 2 position I
1 7 3 classID Ljava/lang/String;
4 6 4 border Ljavax/swing/border/Border;
MethodParameters:
Name Flags
c
position
private void checkPosition(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
if_icmpeq 5
1: iload 1
iconst_5
if_icmpeq 5
2: iload 1
bipush 7
if_icmpeq 5
3: iload 1
iconst_3
if_icmpeq 5
4: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/swing/DefaultLayoutStyle;
0 6 1 position I
MethodParameters:
Name Flags
position
protected int flipDirection(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
tableswitch { // 1 - 7
1: 1
2: 5
3: 3
4: 5
5: 2
6: 5
7: 4
default: 5
}
1: StackMap locals:
StackMap stack:
iconst_5
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
bipush 7
ireturn
4: StackMap locals:
StackMap stack:
iconst_3
ireturn
5: StackMap locals:
StackMap stack:
getstatic sun.swing.DefaultLayoutStyle.$assertionsDisabled:Z
ifne 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/swing/DefaultLayoutStyle;
0 7 1 position I
MethodParameters:
Name Flags
position
protected int getIndent(javax.swing.JComponent, int);
descriptor: (Ljavax/swing/JComponent;I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual javax.swing.JComponent.getUIClassID:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc "CheckBoxUI"
if_acmpeq 2
aload 3
ldc "RadioButtonUI"
if_acmpne 10
2: StackMap locals: java.lang.String
StackMap stack:
aload 1
checkcast javax.swing.AbstractButton
astore 4
start local 4 3: aload 1
invokevirtual javax.swing.JComponent.getInsets:()Ljava/awt/Insets;
astore 5
start local 5 4: aload 0
aload 4
invokevirtual sun.swing.DefaultLayoutStyle.getIcon:(Ljavax/swing/AbstractButton;)Ljavax/swing/Icon;
astore 6
start local 6 5: aload 4
invokevirtual javax.swing.AbstractButton.getIconTextGap:()I
istore 7
start local 7 6: aload 0
aload 4
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.isLeftAligned:(Ljavax/swing/AbstractButton;I)Z
ifeq 8
7: aload 5
getfield java.awt.Insets.left:I
aload 6
invokeinterface javax.swing.Icon.getIconWidth:()I
iadd
iload 7
iadd
ireturn
8: StackMap locals: sun.swing.DefaultLayoutStyle javax.swing.JComponent int java.lang.String javax.swing.AbstractButton java.awt.Insets javax.swing.Icon int
StackMap stack:
aload 0
aload 4
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.isRightAligned:(Ljavax/swing/AbstractButton;I)Z
ifeq 10
9: aload 5
getfield java.awt.Insets.right:I
aload 6
invokeinterface javax.swing.Icon.getIconWidth:()I
iadd
iload 7
iadd
ireturn
end local 7 end local 6 end local 5 end local 4 10: StackMap locals: sun.swing.DefaultLayoutStyle javax.swing.JComponent int java.lang.String
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/swing/DefaultLayoutStyle;
0 11 1 c Ljavax/swing/JComponent;
0 11 2 position I
1 11 3 classID Ljava/lang/String;
3 10 4 button Ljavax/swing/AbstractButton;
4 10 5 insets Ljava/awt/Insets;
5 10 6 icon Ljavax/swing/Icon;
6 10 7 gap I
MethodParameters:
Name Flags
c
position
private javax.swing.Icon getIcon(javax.swing.AbstractButton);
descriptor: (Ljavax/swing/AbstractButton;)Ljavax/swing/Icon;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.AbstractButton.getIcon:()Ljavax/swing/Icon;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
areturn
3: StackMap locals: javax.swing.Icon
StackMap stack:
aconst_null
astore 3
start local 3 4: aload 1
instanceof javax.swing.JCheckBox
ifeq 7
5: ldc "CheckBox.icon"
astore 3
6: goto 9
StackMap locals: java.lang.String
StackMap stack:
7: aload 1
instanceof javax.swing.JRadioButton
ifeq 9
8: ldc "RadioButton.icon"
astore 3
9: StackMap locals:
StackMap stack:
aload 3
ifnull 13
10: aload 3
invokestatic javax.swing.UIManager.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 11: aload 4
instanceof javax.swing.Icon
ifeq 13
12: aload 4
checkcast javax.swing.Icon
areturn
end local 4 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/swing/DefaultLayoutStyle;
0 14 1 button Ljavax/swing/AbstractButton;
1 14 2 icon Ljavax/swing/Icon;
4 14 3 key Ljava/lang/String;
11 13 4 oIcon Ljava/lang/Object;
MethodParameters:
Name Flags
button
private boolean isLeftAligned(javax.swing.AbstractButton, int);
descriptor: (Ljavax/swing/AbstractButton;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
bipush 7
if_icmpne 8
1: aload 1
invokevirtual javax.swing.AbstractButton.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
istore 3
start local 3 2: aload 1
invokevirtual javax.swing.AbstractButton.getHorizontalAlignment:()I
istore 4
start local 4 3: iload 3
ifeq 5
iload 4
iconst_2
if_icmpeq 7
4: iload 4
bipush 10
if_icmpeq 7
5: StackMap locals: int int
StackMap stack:
iload 3
ifne 6
iload 4
bipush 11
if_icmpeq 7
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
7: iconst_1
ireturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/swing/DefaultLayoutStyle;
0 9 1 button Ljavax/swing/AbstractButton;
0 9 2 position I
2 8 3 ltr Z
3 8 4 hAlign I
MethodParameters:
Name Flags
button
position
private boolean isRightAligned(javax.swing.AbstractButton, int);
descriptor: (Ljavax/swing/AbstractButton;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iconst_3
if_icmpne 8
1: aload 1
invokevirtual javax.swing.AbstractButton.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
istore 3
start local 3 2: aload 1
invokevirtual javax.swing.AbstractButton.getHorizontalAlignment:()I
istore 4
start local 4 3: iload 3
ifeq 5
iload 4
iconst_4
if_icmpeq 7
4: iload 4
bipush 11
if_icmpeq 7
5: StackMap locals: int int
StackMap stack:
iload 3
ifne 6
iload 4
bipush 10
if_icmpeq 7
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
7: iconst_1
ireturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/swing/DefaultLayoutStyle;
0 9 1 button Ljavax/swing/AbstractButton;
0 9 2 position I
2 8 3 ltr Z
3 8 4 hAlign I
MethodParameters:
Name Flags
button
position
private int getInset(javax.swing.JComponent, int);
descriptor: (Ljavax/swing/JComponent;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual javax.swing.JComponent.getInsets:()Ljava/awt/Insets;
iload 2
invokevirtual sun.swing.DefaultLayoutStyle.getInset:(Ljava/awt/Insets;I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/swing/DefaultLayoutStyle;
0 1 1 c Ljavax/swing/JComponent;
0 1 2 position I
MethodParameters:
Name Flags
c
position
private int getInset(java.awt.Insets, int);
descriptor: (Ljava/awt/Insets;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 2
tableswitch { // 1 - 7
1: 3
2: 7
3: 5
4: 7
5: 4
6: 7
7: 6
default: 7
}
3: StackMap locals:
StackMap stack:
aload 1
getfield java.awt.Insets.top:I
ireturn
4: StackMap locals:
StackMap stack:
aload 1
getfield java.awt.Insets.bottom:I
ireturn
5: StackMap locals:
StackMap stack:
aload 1
getfield java.awt.Insets.right:I
ireturn
6: StackMap locals:
StackMap stack:
aload 1
getfield java.awt.Insets.left:I
ireturn
7: StackMap locals:
StackMap stack:
getstatic sun.swing.DefaultLayoutStyle.$assertionsDisabled:Z
ifne 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/swing/DefaultLayoutStyle;
0 9 1 insets Ljava/awt/Insets;
0 9 2 position I
MethodParameters:
Name Flags
insets
position
}
SourceFile: "DefaultLayoutStyle.java"
InnerClasses:
public final ComponentPlacement = javax.swing.LayoutStyle$ComponentPlacement of javax.swing.LayoutStyle