public class javax.swing.text.IconView extends javax.swing.text.View
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.IconView
super_class: javax.swing.text.View
{
private javax.swing.Icon c;
descriptor: Ljavax/swing/Icon;
flags: (0x0002) ACC_PRIVATE
public void <init>(javax.swing.text.Element);
descriptor: (Ljavax/swing/text/Element;)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.text.View.<init>:(Ljavax/swing/text/Element;)V
1: aload 1
invokeinterface javax.swing.text.Element.getAttributes:()Ljavax/swing/text/AttributeSet;
astore 2
start local 2 2: aload 0
aload 2
invokestatic javax.swing.text.StyleConstants.getIcon:(Ljavax/swing/text/AttributeSet;)Ljavax/swing/Icon;
putfield javax.swing.text.IconView.c:Ljavax/swing/Icon;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/IconView;
0 4 1 elem Ljavax/swing/text/Element;
2 4 2 attr Ljavax/swing/text/AttributeSet;
MethodParameters:
Name Flags
elem
public void paint(java.awt.Graphics, java.awt.Shape);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Shape;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 3
start local 3 1: aload 0
getfield javax.swing.text.IconView.c:Ljavax/swing/Icon;
aload 0
invokevirtual javax.swing.text.IconView.getContainer:()Ljava/awt/Container;
aload 1
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
invokeinterface javax.swing.Icon.paintIcon:(Ljava/awt/Component;Ljava/awt/Graphics;II)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/IconView;
0 3 1 g Ljava/awt/Graphics;
0 3 2 a Ljava/awt/Shape;
1 3 3 alloc Ljava/awt/Rectangle;
MethodParameters:
Name Flags
g
a
public float getPreferredSpan(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
tableswitch { // 0 - 1
0: 1
1: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.IconView.c:Ljavax/swing/Icon;
invokeinterface javax.swing.Icon.getIconWidth:()I
i2f
freturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.IconView.c:Ljavax/swing/Icon;
invokeinterface javax.swing.Icon.getIconHeight:()I
i2f
freturn
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid axis: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/IconView;
0 4 1 axis I
MethodParameters:
Name Flags
axis
public float getAlignment(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
tableswitch { // 1 - 1
1: 1
default: 2
}
1: StackMap locals:
StackMap stack:
fconst_1
freturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial javax.swing.text.View.getAlignment:(I)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/IconView;
0 3 1 axis I
MethodParameters:
Name Flags
axis
public java.awt.Shape modelToView(int, java.awt.Shape, javax.swing.text.Position$Bias);
descriptor: (ILjava/awt/Shape;Ljavax/swing/text/Position$Bias;)Ljava/awt/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.swing.text.IconView.getStartOffset:()I
istore 4
start local 4 1: aload 0
invokevirtual javax.swing.text.IconView.getEndOffset:()I
istore 5
start local 5 2: iload 1
iload 4
if_icmplt 8
iload 1
iload 5
if_icmpgt 8
3: aload 2
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
astore 6
start local 6 4: iload 1
iload 5
if_icmpne 6
5: aload 6
dup
getfield java.awt.Rectangle.x:I
aload 6
getfield java.awt.Rectangle.width:I
iadd
putfield java.awt.Rectangle.x:I
6: StackMap locals: int int java.awt.Rectangle
StackMap stack:
aload 6
iconst_0
putfield java.awt.Rectangle.width:I
7: aload 6
areturn
end local 6 8: StackMap locals:
StackMap stack:
new javax.swing.text.BadLocationException
dup
new java.lang.StringBuilder
dup
iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not in range "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iload 1
invokespecial javax.swing.text.BadLocationException.<init>:(Ljava/lang/String;I)V
athrow
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 9 0 this Ljavax/swing/text/IconView;
0 9 1 pos I
0 9 2 a Ljava/awt/Shape;
0 9 3 b Ljavax/swing/text/Position$Bias;
1 9 4 p0 I
2 9 5 p1 I
4 8 6 r Ljava/awt/Rectangle;
Exceptions:
throws javax.swing.text.BadLocationException
MethodParameters:
Name Flags
pos
a
b
public int viewToModel(float, float, java.awt.Shape, javax.swing.text.Position$Bias[]);
descriptor: (FFLjava/awt/Shape;[Ljavax/swing/text/Position$Bias;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
checkcast java.awt.Rectangle
astore 5
start local 5 1: fload 1
aload 5
getfield java.awt.Rectangle.x:I
aload 5
getfield java.awt.Rectangle.width:I
iconst_2
idiv
iadd
i2f
fcmpg
ifge 4
2: aload 4
iconst_0
getstatic javax.swing.text.Position$Bias.Forward:Ljavax/swing/text/Position$Bias;
aastore
3: aload 0
invokevirtual javax.swing.text.IconView.getStartOffset:()I
ireturn
4: StackMap locals: java.awt.Rectangle
StackMap stack:
aload 4
iconst_0
getstatic javax.swing.text.Position$Bias.Backward:Ljavax/swing/text/Position$Bias;
aastore
5: aload 0
invokevirtual javax.swing.text.IconView.getEndOffset:()I
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 6 0 this Ljavax/swing/text/IconView;
0 6 1 x F
0 6 2 y F
0 6 3 a Ljava/awt/Shape;
0 6 4 bias [Ljavax/swing/text/Position$Bias;
1 6 5 alloc Ljava/awt/Rectangle;
MethodParameters:
Name Flags
x
y
a
bias
}
SourceFile: "IconView.java"
InnerClasses:
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position