public class sun.tools.jconsole.Utilities
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jconsole.Utilities
super_class: java.lang.Object
{
private static final java.lang.String windowsLaF;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lsun/tools/jconsole/Utilities;
public static void updateTransparency(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic javax.swing.UIManager.getLookAndFeel:()Ljavax/swing/LookAndFeel;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
istore 2
start local 2 2: aload 0
iload 2
invokestatic sun.tools.jconsole.Utilities.setTabbedPaneTransparency:(Ljavax/swing/JComponent;Z)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 comp Ljavax/swing/JComponent;
1 4 1 laf Ljavax/swing/LookAndFeel;
2 4 2 transparent Z
MethodParameters:
Name Flags
comp
private static void setTabbedPaneTransparency(javax.swing.JComponent, boolean);
descriptor: (Ljavax/swing/JComponent;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.JComponent.getComponents:()[Ljava/awt/Component;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: javax.swing.JComponent int top int int java.awt.Component[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
instanceof javax.swing.JTabbedPane
ifeq 5
3: aload 2
checkcast javax.swing.JComponent
iload 1
invokestatic sun.tools.jconsole.Utilities.setTransparency:(Ljavax/swing/JComponent;Z)V
4: goto 7
StackMap locals: javax.swing.JComponent int java.awt.Component int int java.awt.Component[]
StackMap stack:
5: aload 2
instanceof javax.swing.JComponent
ifeq 7
6: aload 2
checkcast javax.swing.JComponent
iload 1
invokestatic sun.tools.jconsole.Utilities.setTabbedPaneTransparency:(Ljavax/swing/JComponent;Z)V
end local 2 7: StackMap locals: javax.swing.JComponent int top int int java.awt.Component[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 1
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 comp Ljavax/swing/JComponent;
0 10 1 transparent Z
2 7 2 child Ljava/awt/Component;
MethodParameters:
Name Flags
comp
transparent
private static void setTransparency(javax.swing.JComponent, boolean);
descriptor: (Ljavax/swing/JComponent;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack: javax.swing.JComponent
1: iconst_1
StackMap locals: javax.swing.JComponent int
StackMap stack: javax.swing.JComponent int
2: invokevirtual javax.swing.JComponent.setOpaque:(Z)V
3: aload 0
invokevirtual javax.swing.JComponent.getComponents:()[Ljava/awt/Component;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 19
StackMap locals: javax.swing.JComponent int top int int java.awt.Component[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
instanceof javax.swing.JPanel
ifne 10
6: aload 2
instanceof javax.swing.JSplitPane
ifne 10
7: aload 2
instanceof javax.swing.JScrollPane
ifne 10
8: aload 2
instanceof javax.swing.JViewport
ifne 10
9: aload 2
instanceof javax.swing.JCheckBox
ifeq 11
10: StackMap locals: javax.swing.JComponent int java.awt.Component int int java.awt.Component[]
StackMap stack:
aload 2
checkcast javax.swing.JComponent
iload 1
invokestatic sun.tools.jconsole.Utilities.setTransparency:(Ljavax/swing/JComponent;Z)V
11: StackMap locals:
StackMap stack:
aload 2
instanceof sun.tools.jconsole.inspector.XTree
ifeq 18
12: aload 2
checkcast sun.tools.jconsole.inspector.XTree
astore 6
start local 6 13: aload 6
invokevirtual sun.tools.jconsole.inspector.XTree.getCellRenderer:()Ljavax/swing/tree/TreeCellRenderer;
checkcast javax.swing.tree.DefaultTreeCellRenderer
astore 7
start local 7 14: aload 7
aconst_null
invokevirtual javax.swing.tree.DefaultTreeCellRenderer.setBackground:(Ljava/awt/Color;)V
15: aload 7
new java.awt.Color
dup
iconst_0
iconst_0
iconst_0
iconst_1
invokespecial java.awt.Color.<init>:(IIII)V
invokevirtual javax.swing.tree.DefaultTreeCellRenderer.setBackgroundNonSelectionColor:(Ljava/awt/Color;)V
16: aload 6
aload 7
invokevirtual sun.tools.jconsole.inspector.XTree.setCellRenderer:(Ljavax/swing/tree/TreeCellRenderer;)V
17: aload 2
checkcast javax.swing.JComponent
iload 1
invokestatic sun.tools.jconsole.Utilities.setTransparency:(Ljavax/swing/JComponent;Z)V
end local 7 end local 6 end local 2 18: StackMap locals: javax.swing.JComponent int top int int java.awt.Component[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
19: iload 3
iload 4
if_icmplt 4
20: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 comp Ljavax/swing/JComponent;
0 21 1 transparent Z
5 18 2 child Ljava/awt/Component;
13 18 6 t Lsun/tools/jconsole/inspector/XTree;
14 18 7 cr Ljavax/swing/tree/DefaultTreeCellRenderer;
MethodParameters:
Name Flags
comp
transparent
public static javax.swing.JScrollPane newTableScrollPane(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljavax/swing/JScrollPane;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.tools.jconsole.Utilities$TableScrollPane
dup
aload 0
invokespecial sun.tools.jconsole.Utilities$TableScrollPane.<init>:(Ljavax/swing/JComponent;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 comp Ljavax/swing/JComponent;
MethodParameters:
Name Flags
comp
public static void setAccessibleName(javax.accessibility.Accessible, java.lang.String);
descriptor: (Ljavax/accessibility/Accessible;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface javax.accessibility.Accessible.getAccessibleContext:()Ljavax/accessibility/AccessibleContext;
aload 1
invokevirtual javax.accessibility.AccessibleContext.setAccessibleName:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 comp Ljavax/accessibility/Accessible;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
comp
name
public static void setAccessibleDescription(javax.accessibility.Accessible, java.lang.String);
descriptor: (Ljavax/accessibility/Accessible;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface javax.accessibility.Accessible.getAccessibleContext:()Ljavax/accessibility/AccessibleContext;
aload 1
invokevirtual javax.accessibility.AccessibleContext.setAccessibleDescription:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 comp Ljavax/accessibility/Accessible;
0 2 1 description Ljava/lang/String;
MethodParameters:
Name Flags
comp
description
public static java.awt.Color ensureContrast(java.awt.Color, java.awt.Color);
descriptor: (Ljava/awt/Color;Ljava/awt/Color;)Ljava/awt/Color;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.tools.jconsole.Utilities.getColorBrightness:(Ljava/awt/Color;)D
dstore 2
start local 2 1: aload 1
invokestatic sun.tools.jconsole.Utilities.getColorBrightness:(Ljava/awt/Color;)D
dstore 4
start local 4 2: dload 2
dload 4
dsub
invokestatic java.lang.Math.abs:(D)D
ldc 125.0
dcmpg
ifge 7
3: dload 4
ldc 128.0
dcmpg
ifge 6
4: aload 0
dload 4
ldc 125.0
dadd
invokestatic sun.tools.jconsole.Utilities.setColorBrightness:(Ljava/awt/Color;D)Ljava/awt/Color;
astore 0
5: goto 7
6: StackMap locals: double double
StackMap stack:
aload 0
dload 4
ldc 125.0
dsub
invokestatic sun.tools.jconsole.Utilities.setColorBrightness:(Ljava/awt/Color;D)Ljava/awt/Color;
astore 0
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 c1 Ljava/awt/Color;
0 8 1 c2 Ljava/awt/Color;
1 8 2 y1 D
2 8 4 y2 D
MethodParameters:
Name Flags
c1
c2
public static double getColorBrightness(java.awt.Color);
descriptor: (Ljava/awt/Color;)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Color.getRed:()I
i2d
ldc 0.299
dmul
aload 0
invokevirtual java.awt.Color.getGreen:()I
i2d
ldc 0.587
dmul
dadd
aload 0
invokevirtual java.awt.Color.getBlue:()I
i2d
ldc 0.114
dmul
dadd
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljava/awt/Color;
MethodParameters:
Name Flags
c
private static java.awt.Color setColorBrightness(java.awt.Color, double);
descriptor: (Ljava/awt/Color;D)Ljava/awt/Color;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Color.getRed:()I
i2d
ldc 0.596
dmul
aload 0
invokevirtual java.awt.Color.getGreen:()I
i2d
ldc 0.275
dmul
dsub
aload 0
invokevirtual java.awt.Color.getBlue:()I
i2d
ldc 0.321
dmul
dsub
dstore 3
start local 3 1: aload 0
invokevirtual java.awt.Color.getRed:()I
i2d
ldc 0.212
dmul
aload 0
invokevirtual java.awt.Color.getGreen:()I
i2d
ldc 0.523
dmul
dsub
aload 0
invokevirtual java.awt.Color.getBlue:()I
i2d
ldc 0.311
dmul
dadd
dstore 5
start local 5 2: iconst_0
sipush 255
dload 1
dload 3
ldc 0.956
dmul
dadd
dload 5
ldc 0.621
dmul
dadd
invokestatic java.lang.Math.round:(D)J
l2i
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
istore 7
start local 7 3: iconst_0
sipush 255
dload 1
dload 3
ldc 0.272
dmul
dsub
dload 5
ldc 0.647
dmul
dsub
invokestatic java.lang.Math.round:(D)J
l2i
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
istore 8
start local 8 4: iconst_0
sipush 255
dload 1
dload 3
ldc 1.105
dmul
dsub
dload 5
ldc 1.702
dmul
dadd
invokestatic java.lang.Math.round:(D)J
l2i
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
istore 9
start local 9 5: new java.awt.Color
dup
iload 7
iload 8
iload 9
invokespecial java.awt.Color.<init>:(III)V
areturn
end local 9 end local 8 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 c Ljava/awt/Color;
0 6 1 y D
1 6 3 i D
2 6 5 q D
3 6 7 r I
4 6 8 g I
5 6 9 b I
MethodParameters:
Name Flags
c
y
}
SourceFile: "Utilities.java"
NestMembers:
sun.tools.jconsole.Utilities$TableScrollPane
InnerClasses:
private TableScrollPane = sun.tools.jconsole.Utilities$TableScrollPane of sun.tools.jconsole.Utilities