public class javax.swing.plaf.metal.MetalTreeUI extends javax.swing.plaf.basic.BasicTreeUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.metal.MetalTreeUI
super_class: javax.swing.plaf.basic.BasicTreeUI
{
private static java.awt.Color lineColor;
descriptor: Ljava/awt/Color;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String LINE_STYLE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "JTree.lineStyle"
private static final java.lang.String LEG_LINE_STYLE_STRING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Angled"
private static final java.lang.String HORIZ_STYLE_STRING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Horizontal"
private static final java.lang.String NO_STYLE_STRING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "None"
private static final int LEG_LINE_STYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int HORIZ_LINE_STYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int NO_LINE_STYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private int lineStyle;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.beans.PropertyChangeListener lineStyleListener;
descriptor: Ljava/beans/PropertyChangeListener;
flags: (0x0002) ACC_PRIVATE
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljavax/swing/plaf/ComponentUI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new javax.swing.plaf.metal.MetalTreeUI
dup
invokespecial javax.swing.plaf.metal.MetalTreeUI.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x Ljavax/swing/JComponent;
MethodParameters:
Name Flags
x
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicTreeUI.<init>:()V
1: aload 0
iconst_2
putfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
2: aload 0
new javax.swing.plaf.metal.MetalTreeUI$LineListener
dup
aload 0
invokespecial javax.swing.plaf.metal.MetalTreeUI$LineListener.<init>:(Ljavax/swing/plaf/metal/MetalTreeUI;)V
putfield javax.swing.plaf.metal.MetalTreeUI.lineStyleListener:Ljava/beans/PropertyChangeListener;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
protected int getHorizontalLegBuffer();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_3
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
public void installUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicTreeUI.installUI:(Ljavax/swing/JComponent;)V
1: ldc "Tree.line"
invokestatic javax.swing.UIManager.getColor:(Ljava/lang/Object;)Ljava/awt/Color;
putstatic javax.swing.plaf.metal.MetalTreeUI.lineColor:Ljava/awt/Color;
2: aload 1
ldc "JTree.lineStyle"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual javax.swing.plaf.metal.MetalTreeUI.decodeLineStyle:(Ljava/lang/Object;)V
4: aload 1
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.lineStyleListener:Ljava/beans/PropertyChangeListener;
invokevirtual javax.swing.JComponent.addPropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 6 1 c Ljavax/swing/JComponent;
3 6 2 lineStyleFlag Ljava/lang/Object;
MethodParameters:
Name Flags
c
public void uninstallUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.lineStyleListener:Ljava/beans/PropertyChangeListener;
invokevirtual javax.swing.JComponent.removePropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
1: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicTreeUI.uninstallUI:(Ljavax/swing/JComponent;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 3 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
protected void decodeLineStyle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
ldc "Angled"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals:
StackMap stack:
aload 0
iconst_2
putfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
3: goto 9
4: StackMap locals:
StackMap stack:
aload 1
ldc "None"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
iconst_0
putfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
6: goto 9
StackMap locals:
StackMap stack:
7: aload 1
ldc "Horizontal"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 9
8: aload 0
iconst_1
putfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 10 1 lineStyleFlag Ljava/lang/Object;
MethodParameters:
Name Flags
lineStyleFlag
protected boolean isLocationInExpandControl(int, int, int, int);
descriptor: (IIII)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
ifnull 17
aload 0
iload 1
invokevirtual javax.swing.plaf.metal.MetalTreeUI.isLeaf:(I)Z
ifne 17
1: aload 0
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getExpandedIcon:()Ljavax/swing/Icon;
ifnull 4
2: aload 0
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getExpandedIcon:()Ljavax/swing/Icon;
invokeinterface javax.swing.Icon.getIconWidth:()I
bipush 6
iadd
istore 5
start local 5 3: goto 5
end local 5 4: StackMap locals:
StackMap stack:
bipush 8
istore 5
start local 5 5: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
invokevirtual javax.swing.JTree.getInsets:()Ljava/awt/Insets;
astore 6
start local 6 6: aload 6
ifnull 7
aload 6
getfield java.awt.Insets.left:I
goto 8
StackMap locals: java.awt.Insets
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 7
start local 7 9: iload 7
iload 2
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.depthOffset:I
iadd
iconst_1
isub
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.totalChildIndent:I
imul
10: aload 0
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getLeftChildIndent:()I
11: iadd
12: iload 5
iconst_2
idiv
13: isub
iadd
istore 7
14: iload 7
iload 5
iadd
istore 8
start local 8 15: iload 3
iload 7
if_icmplt 16
iload 3
iload 8
if_icmpgt 16
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
16: iconst_0
ireturn
end local 8 end local 7 end local 6 end local 5 17: StackMap locals: javax.swing.plaf.metal.MetalTreeUI int int int int
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 18 1 row I
0 18 2 rowLevel I
0 18 3 mouseX I
0 18 4 mouseY I
3 4 5 boxWidth I
5 17 5 boxWidth I
6 17 6 i Ljava/awt/Insets;
9 17 7 boxLeftX I
15 17 8 boxRightX I
MethodParameters:
Name Flags
row
rowLevel
mouseX
mouseY
public void paint(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial javax.swing.plaf.basic.BasicTreeUI.paint:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
1: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
iconst_1
if_icmpne 3
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.largeModel:Z
ifne 3
2: aload 0
aload 1
aload 2
invokevirtual javax.swing.plaf.metal.MetalTreeUI.paintHorizontalSeparators:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 4 1 g Ljava/awt/Graphics;
0 4 2 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
g
c
protected void paintHorizontalSeparators(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic javax.swing.plaf.metal.MetalTreeUI.lineColor:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
1: aload 1
invokevirtual java.awt.Graphics.getClipBounds:()Ljava/awt/Rectangle;
astore 3
start local 3 2: aload 0
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
aload 0
3: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
iconst_0
aload 3
getfield java.awt.Rectangle.y:I
4: invokevirtual javax.swing.plaf.metal.MetalTreeUI.getClosestPathForLocation:(Ljavax/swing/JTree;II)Ljavax/swing/tree/TreePath;
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getRowForPath:(Ljavax/swing/JTree;Ljavax/swing/tree/TreePath;)I
istore 4
start local 4 5: aload 0
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
aload 0
6: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
iconst_0
aload 3
getfield java.awt.Rectangle.y:I
aload 3
getfield java.awt.Rectangle.height:I
iadd
iconst_1
isub
7: invokevirtual javax.swing.plaf.metal.MetalTreeUI.getClosestPathForLocation:(Ljavax/swing/JTree;II)Ljavax/swing/tree/TreePath;
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getRowForPath:(Ljavax/swing/JTree;Ljavax/swing/tree/TreePath;)I
istore 5
start local 5 8: iload 4
iconst_m1
if_icmple 9
iload 5
iconst_m1
if_icmpgt 10
9: StackMap locals: java.awt.Rectangle int int
StackMap stack:
return
10: StackMap locals:
StackMap stack:
iload 4
istore 6
start local 6 11: goto 22
12: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
iload 6
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getPathForRow:(Ljavax/swing/JTree;I)Ljavax/swing/tree/TreePath;
astore 7
start local 7 13: aload 7
ifnull 21
aload 7
invokevirtual javax.swing.tree.TreePath.getPathCount:()I
iconst_2
if_icmpne 21
14: aload 0
aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
aload 0
15: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.tree:Ljavax/swing/JTree;
iload 6
16: invokevirtual javax.swing.plaf.metal.MetalTreeUI.getPathForRow:(Ljavax/swing/JTree;I)Ljavax/swing/tree/TreePath;
invokevirtual javax.swing.plaf.metal.MetalTreeUI.getPathBounds:(Ljavax/swing/JTree;Ljavax/swing/tree/TreePath;)Ljava/awt/Rectangle;
astore 8
start local 8 17: aload 8
ifnull 21
18: aload 1
aload 3
getfield java.awt.Rectangle.x:I
aload 8
getfield java.awt.Rectangle.y:I
19: aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.width:I
iadd
aload 8
getfield java.awt.Rectangle.y:I
20: invokevirtual java.awt.Graphics.drawLine:(IIII)V
end local 8 end local 7 21: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
22: iload 6
iload 5
if_icmple 12
end local 6 23: return
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 24 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 24 1 g Ljava/awt/Graphics;
0 24 2 c Ljavax/swing/JComponent;
2 24 3 clipBounds Ljava/awt/Rectangle;
5 24 4 beginRow I
8 24 5 endRow I
11 23 6 i I
13 21 7 path Ljavax/swing/tree/TreePath;
17 21 8 rowBounds Ljava/awt/Rectangle;
MethodParameters:
Name Flags
g
c
protected void paintVerticalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, javax.swing.tree.TreePath);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Rectangle;Ljava/awt/Insets;Ljavax/swing/tree/TreePath;)V
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: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
iconst_2
if_icmpne 2
1: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial javax.swing.plaf.basic.BasicTreeUI.paintVerticalPartOfLeg:(Ljava/awt/Graphics;Ljava/awt/Rectangle;Ljava/awt/Insets;Ljavax/swing/tree/TreePath;)V
2: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 3 1 g Ljava/awt/Graphics;
0 3 2 clipBounds Ljava/awt/Rectangle;
0 3 3 insets Ljava/awt/Insets;
0 3 4 path Ljavax/swing/tree/TreePath;
MethodParameters:
Name Flags
g
clipBounds
insets
path
protected void paintHorizontalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Rectangle;Ljava/awt/Insets;Ljava/awt/Rectangle;Ljavax/swing/tree/TreePath;IZZZ)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=10, locals=10, args_size=10
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 0: aload 0
getfield javax.swing.plaf.metal.MetalTreeUI.lineStyle:I
iconst_2
if_icmpne 5
1: aload 0
aload 1
aload 2
aload 3
aload 4
2: aload 5
iload 6
iload 7
3: iload 8
iload 9
4: invokespecial javax.swing.plaf.basic.BasicTreeUI.paintHorizontalPartOfLeg:(Ljava/awt/Graphics;Ljava/awt/Rectangle;Ljava/awt/Insets;Ljava/awt/Rectangle;Ljavax/swing/tree/TreePath;IZZZ)V
5: StackMap locals:
StackMap stack:
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 6 0 this Ljavax/swing/plaf/metal/MetalTreeUI;
0 6 1 g Ljava/awt/Graphics;
0 6 2 clipBounds Ljava/awt/Rectangle;
0 6 3 insets Ljava/awt/Insets;
0 6 4 bounds Ljava/awt/Rectangle;
0 6 5 path Ljavax/swing/tree/TreePath;
0 6 6 row I
0 6 7 isExpanded Z
0 6 8 hasBeenExpanded Z
0 6 9 isLeaf Z
MethodParameters:
Name Flags
g
clipBounds
insets
bounds
path
row
isExpanded
hasBeenExpanded
isLeaf
}
SourceFile: "MetalTreeUI.java"
NestMembers:
javax.swing.plaf.metal.MetalTreeUI$LineListener
InnerClasses:
LineListener = javax.swing.plaf.metal.MetalTreeUI$LineListener of javax.swing.plaf.metal.MetalTreeUI