public class javax.swing.plaf.metal.MetalToolTipUI extends javax.swing.plaf.basic.BasicToolTipUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.metal.MetalToolTipUI
super_class: javax.swing.plaf.basic.BasicToolTipUI
{
static javax.swing.plaf.metal.MetalToolTipUI sharedInstance;
descriptor: Ljavax/swing/plaf/metal/MetalToolTipUI;
flags: (0x0008) ACC_STATIC
private java.awt.Font smallFont;
descriptor: Ljava/awt/Font;
flags: (0x0002) ACC_PRIVATE
private javax.swing.JToolTip tip;
descriptor: Ljavax/swing/JToolTip;
flags: (0x0002) ACC_PRIVATE
public static final int padSpaceBetweenStrings;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 12
private java.lang.String acceleratorDelimiter;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new javax.swing.plaf.metal.MetalToolTipUI
dup
invokespecial javax.swing.plaf.metal.MetalToolTipUI.<init>:()V
putstatic javax.swing.plaf.metal.MetalToolTipUI.sharedInstance:Ljavax/swing/plaf/metal/MetalToolTipUI;
1: 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.plaf.basic.BasicToolTipUI.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
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=1, locals=1, args_size=1
start local 0 0: getstatic javax.swing.plaf.metal.MetalToolTipUI.sharedInstance:Ljavax/swing/plaf/metal/MetalToolTipUI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
public void installUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolTipUI.installUI:(Ljavax/swing/JComponent;)V
1: aload 0
aload 1
checkcast javax.swing.JToolTip
putfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
2: aload 1
invokevirtual javax.swing.JComponent.getFont:()Ljava/awt/Font;
astore 2
start local 2 3: aload 0
new java.awt.Font
dup
aload 2
invokevirtual java.awt.Font.getName:()Ljava/lang/String;
aload 2
invokevirtual java.awt.Font.getStyle:()I
aload 2
invokevirtual java.awt.Font.getSize:()I
iconst_2
isub
invokespecial java.awt.Font.<init>:(Ljava/lang/String;II)V
putfield javax.swing.plaf.metal.MetalToolTipUI.smallFont:Ljava/awt/Font;
4: aload 0
ldc "MenuItem.acceleratorDelimiter"
invokestatic javax.swing.UIManager.getString:(Ljava/lang/Object;)Ljava/lang/String;
putfield javax.swing.plaf.metal.MetalToolTipUI.acceleratorDelimiter:Ljava/lang/String;
5: aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.acceleratorDelimiter:Ljava/lang/String;
ifnonnull 6
aload 0
ldc "-"
putfield javax.swing.plaf.metal.MetalToolTipUI.acceleratorDelimiter:Ljava/lang/String;
6: StackMap locals: java.awt.Font
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
0 7 1 c Ljavax/swing/JComponent;
3 7 2 f Ljava/awt/Font;
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 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolTipUI.uninstallUI:(Ljavax/swing/JComponent;)V
1: aload 0
aconst_null
putfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
0 3 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
public void paint(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast javax.swing.JToolTip
astore 3
start local 3 1: aload 2
invokevirtual javax.swing.JComponent.getFont:()Ljava/awt/Font;
astore 4
start local 4 2: aload 2
aload 1
aload 4
invokestatic sun.swing.SwingUtilities2.getFontMetrics:(Ljavax/swing/JComponent;Ljava/awt/Graphics;Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 5
start local 5 3: aload 2
invokevirtual javax.swing.JComponent.getSize:()Ljava/awt/Dimension;
astore 6
start local 6 4: aload 1
aload 2
invokevirtual javax.swing.JComponent.getForeground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
5: aload 3
invokevirtual javax.swing.JToolTip.getTipText:()Ljava/lang/String;
astore 8
start local 8 6: aload 8
ifnonnull 8
7: ldc ""
astore 8
8: StackMap locals: javax.swing.plaf.metal.MetalToolTipUI java.awt.Graphics javax.swing.JComponent javax.swing.JToolTip java.awt.Font java.awt.FontMetrics java.awt.Dimension top java.lang.String
StackMap stack:
aload 0
aload 3
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.getAcceleratorString:(Ljavax/swing/JToolTip;)Ljava/lang/String;
astore 9
start local 9 9: aload 2
aload 1
aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.smallFont:Ljava/awt/Font;
invokestatic sun.swing.SwingUtilities2.getFontMetrics:(Ljavax/swing/JComponent;Ljava/awt/Graphics;Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 10
start local 10 10: aload 0
aload 2
aload 10
aload 9
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.calcAccelSpacing:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;)I
istore 11
start local 11 11: aload 3
invokevirtual javax.swing.JToolTip.getInsets:()Ljava/awt/Insets;
astore 12
start local 12 12: new java.awt.Rectangle
dup
13: aload 12
getfield java.awt.Insets.left:I
iconst_3
iadd
14: aload 12
getfield java.awt.Insets.top:I
15: aload 6
getfield java.awt.Dimension.width:I
aload 12
getfield java.awt.Insets.left:I
aload 12
getfield java.awt.Insets.right:I
iadd
isub
bipush 6
isub
iload 11
isub
16: aload 6
getfield java.awt.Dimension.height:I
aload 12
getfield java.awt.Insets.top:I
aload 12
getfield java.awt.Insets.bottom:I
iadd
isub
17: invokespecial java.awt.Rectangle.<init>:(IIII)V
astore 13
start local 13 18: aload 2
ldc "html"
invokevirtual javax.swing.JComponent.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.text.View
astore 14
start local 14 19: aload 14
ifnull 25
20: aload 14
aload 1
aload 13
invokevirtual javax.swing.text.View.paint:(Ljava/awt/Graphics;Ljava/awt/Shape;)V
21: aload 14
aload 13
getfield java.awt.Rectangle.width:I
22: aload 13
getfield java.awt.Rectangle.height:I
23: invokestatic javax.swing.plaf.basic.BasicHTML.getHTMLBaseline:(Ljavax/swing/text/View;II)I
istore 7
start local 7 24: goto 30
end local 7 25: StackMap locals: javax.swing.plaf.metal.MetalToolTipUI java.awt.Graphics javax.swing.JComponent javax.swing.JToolTip java.awt.Font java.awt.FontMetrics java.awt.Dimension top java.lang.String java.lang.String java.awt.FontMetrics int java.awt.Insets java.awt.Rectangle javax.swing.text.View
StackMap stack:
aload 1
aload 4
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
26: aload 3
aload 1
aload 8
aload 13
getfield java.awt.Rectangle.x:I
27: aload 13
getfield java.awt.Rectangle.y:I
aload 5
invokevirtual java.awt.FontMetrics.getAscent:()I
iadd
28: invokestatic sun.swing.SwingUtilities2.drawString:(Ljavax/swing/JComponent;Ljava/awt/Graphics;Ljava/lang/String;II)V
29: aload 5
invokevirtual java.awt.FontMetrics.getAscent:()I
istore 7
start local 7 30: StackMap locals: javax.swing.plaf.metal.MetalToolTipUI java.awt.Graphics javax.swing.JComponent javax.swing.JToolTip java.awt.Font java.awt.FontMetrics java.awt.Dimension int java.lang.String java.lang.String java.awt.FontMetrics int java.awt.Insets java.awt.Rectangle javax.swing.text.View
StackMap stack:
aload 9
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 43
31: aload 1
aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.smallFont:Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
32: aload 1
invokestatic javax.swing.plaf.metal.MetalLookAndFeel.getPrimaryControlDarkShadow:()Ljavax/swing/plaf/ColorUIResource;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
33: aload 3
aload 1
aload 9
34: aload 3
invokevirtual javax.swing.JToolTip.getWidth:()I
iconst_1
isub
aload 12
getfield java.awt.Insets.right:I
isub
35: iload 11
36: isub
37: bipush 12
38: iadd
39: iconst_3
40: isub
41: aload 13
getfield java.awt.Rectangle.y:I
iload 7
iadd
42: invokestatic sun.swing.SwingUtilities2.drawString:(Ljavax/swing/JComponent;Ljava/awt/Graphics;Ljava/lang/String;II)V
43: StackMap locals:
StackMap stack:
return
end local 14 end local 13 end local 12 end local 11 end local 10 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 44 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
0 44 1 g Ljava/awt/Graphics;
0 44 2 c Ljavax/swing/JComponent;
1 44 3 tip Ljavax/swing/JToolTip;
2 44 4 font Ljava/awt/Font;
3 44 5 metrics Ljava/awt/FontMetrics;
4 44 6 size Ljava/awt/Dimension;
24 25 7 accelBL I
30 44 7 accelBL I
6 44 8 tipText Ljava/lang/String;
9 44 9 accelString Ljava/lang/String;
10 44 10 accelMetrics Ljava/awt/FontMetrics;
11 44 11 accelSpacing I
12 44 12 insets Ljava/awt/Insets;
18 44 13 paintTextR Ljava/awt/Rectangle;
19 44 14 v Ljavax/swing/text/View;
MethodParameters:
Name Flags
g
c
private int calcAccelSpacing(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String);
descriptor: (Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_0
goto 5
2: StackMap locals:
StackMap stack:
bipush 12
3: aload 1
aload 2
aload 3
invokestatic sun.swing.SwingUtilities2.stringWidth:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;)I
4: iadd
5: StackMap locals:
StackMap stack: int
ireturn
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/MetalToolTipUI;
0 6 1 c Ljavax/swing/JComponent;
0 6 2 fm Ljava/awt/FontMetrics;
0 6 3 accel Ljava/lang/String;
MethodParameters:
Name Flags
c
fm
accel
public java.awt.Dimension getPreferredSize(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolTipUI.getPreferredSize:(Ljavax/swing/JComponent;)Ljava/awt/Dimension;
astore 2
start local 2 1: aload 0
aload 1
checkcast javax.swing.JToolTip
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.getAcceleratorString:(Ljavax/swing/JToolTip;)Ljava/lang/String;
astore 3
start local 3 2: aload 3
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
3: aload 2
dup
getfield java.awt.Dimension.width:I
aload 0
aload 1
aload 1
aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.smallFont:Ljava/awt/Font;
invokevirtual javax.swing.JComponent.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
aload 3
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.calcAccelSpacing:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;)I
iadd
putfield java.awt.Dimension.width:I
4: StackMap locals: java.awt.Dimension java.lang.String
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
0 5 1 c Ljavax/swing/JComponent;
1 5 2 d Ljava/awt/Dimension;
2 5 3 key Ljava/lang/String;
MethodParameters:
Name Flags
c
protected boolean isAcceleratorHidden();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=1
start local 0 0: ldc "ToolTip.hideAccelerator"
invokestatic javax.swing.UIManager.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
iconst_1
ireturn
StackMap locals: java.lang.Boolean
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
1 3 1 b Ljava/lang/Boolean;
private java.lang.String getAcceleratorString(javax.swing.JToolTip);
descriptor: (Ljavax/swing/JToolTip;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
1: aload 0
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.getAcceleratorString:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
aconst_null
putfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
0 4 1 tip Ljavax/swing/JToolTip;
2 4 2 retValue Ljava/lang/String;
MethodParameters:
Name Flags
tip
public java.lang.String getAcceleratorString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
ifnull 1
aload 0
invokevirtual javax.swing.plaf.metal.MetalToolTipUI.isAcceleratorHidden:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.tip:Ljavax/swing/JToolTip;
invokevirtual javax.swing.JToolTip.getComponent:()Ljavax/swing/JComponent;
astore 1
start local 1 3: aload 1
instanceof javax.swing.AbstractButton
ifne 5
4: ldc ""
areturn
5: StackMap locals: javax.swing.JComponent
StackMap stack:
aload 1
iconst_2
invokevirtual javax.swing.JComponent.getInputMap:(I)Ljavax/swing/InputMap;
invokevirtual javax.swing.InputMap.keys:()[Ljavax/swing/KeyStroke;
astore 2
start local 2 6: aload 2
ifnonnull 8
7: ldc ""
areturn
8: StackMap locals: javax.swing.KeyStroke[]
StackMap stack:
ldc ""
astore 3
start local 3 9: iconst_0
istore 4
start local 4 10: iload 4
aload 2
arraylength
if_icmpge 16
11: aload 2
iload 4
aaload
invokevirtual javax.swing.KeyStroke.getModifiers:()I
istore 5
start local 5 12: new java.lang.StringBuilder
dup
iload 5
invokestatic java.awt.event.KeyEvent.getKeyModifiersText:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
13: aload 0
getfield javax.swing.plaf.metal.MetalToolTipUI.acceleratorDelimiter:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: aload 2
iload 4
aaload
invokevirtual javax.swing.KeyStroke.getKeyCode:()I
invokestatic java.awt.event.KeyEvent.getKeyText:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
end local 5 end local 4 16: StackMap locals: java.lang.String
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/swing/plaf/metal/MetalToolTipUI;
3 17 1 comp Ljavax/swing/JComponent;
6 17 2 keys [Ljavax/swing/KeyStroke;
9 17 3 controlKeyStr Ljava/lang/String;
10 16 4 i I
12 16 5 mod I
}
SourceFile: "MetalToolTipUI.java"