public class javax.swing.text.ComponentView extends javax.swing.text.View
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.ComponentView
super_class: javax.swing.text.View
{
private java.awt.Component createdC;
descriptor: Ljava/awt/Component;
flags: (0x0002) ACC_PRIVATE
private javax.swing.text.ComponentView$Invalidator c;
descriptor: Ljavax/swing/text/ComponentView$Invalidator;
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=2, 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: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/ComponentView;
0 2 1 elem Ljavax/swing/text/Element;
MethodParameters:
Name Flags
elem
protected java.awt.Component createComponent();
descriptor: ()Ljava/awt/Component;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.ComponentView.getElement:()Ljavax/swing/text/Element;
invokeinterface javax.swing.text.Element.getAttributes:()Ljavax/swing/text/AttributeSet;
astore 1
start local 1 1: aload 1
invokestatic javax.swing.text.StyleConstants.getComponent:(Ljavax/swing/text/AttributeSet;)Ljava/awt/Component;
astore 2
start local 2 2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/ComponentView;
1 3 1 attr Ljavax/swing/text/AttributeSet;
2 3 2 comp Ljava/awt/Component;
public final java.awt.Component getComponent();
descriptor: ()Ljava/awt/Component;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.ComponentView.createdC:Ljava/awt/Component;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/ComponentView;
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 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 6
1: aload 2
instanceof java.awt.Rectangle
ifeq 3
2: aload 2
checkcast java.awt.Rectangle
goto 4
StackMap locals:
StackMap stack:
3: aload 2
invokeinterface java.awt.Shape.getBounds:()Ljava/awt/Rectangle;
4: StackMap locals:
StackMap stack: java.awt.Rectangle
astore 3
start local 3 5: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
aload 3
getfield java.awt.Rectangle.width:I
aload 3
getfield java.awt.Rectangle.height:I
invokevirtual javax.swing.text.ComponentView$Invalidator.setBounds:(IIII)V
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/text/ComponentView;
0 7 1 g Ljava/awt/Graphics;
0 7 2 a Ljava/awt/Shape;
5 6 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=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
iload 1
iconst_1
if_icmpeq 2
1: 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
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 7
3: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getPreferredSize:()Ljava/awt/Dimension;
astore 2
start local 2 4: iload 1
ifne 6
5: aload 2
getfield java.awt.Dimension.width:I
i2f
freturn
6: StackMap locals: java.awt.Dimension
StackMap stack:
aload 2
getfield java.awt.Dimension.height:I
i2f
freturn
end local 2 7: StackMap locals:
StackMap stack:
fconst_0
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/ComponentView;
0 8 1 axis I
4 7 2 size Ljava/awt/Dimension;
MethodParameters:
Name Flags
axis
public float getMinimumSpan(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
iload 1
iconst_1
if_icmpeq 2
1: 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
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 7
3: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getMinimumSize:()Ljava/awt/Dimension;
astore 2
start local 2 4: iload 1
ifne 6
5: aload 2
getfield java.awt.Dimension.width:I
i2f
freturn
6: StackMap locals: java.awt.Dimension
StackMap stack:
aload 2
getfield java.awt.Dimension.height:I
i2f
freturn
end local 2 7: StackMap locals:
StackMap stack:
fconst_0
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/ComponentView;
0 8 1 axis I
4 7 2 size Ljava/awt/Dimension;
MethodParameters:
Name Flags
axis
public float getMaximumSpan(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
iload 1
iconst_1
if_icmpeq 2
1: 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
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 7
3: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getMaximumSize:()Ljava/awt/Dimension;
astore 2
start local 2 4: iload 1
ifne 6
5: aload 2
getfield java.awt.Dimension.width:I
i2f
freturn
6: StackMap locals: java.awt.Dimension
StackMap stack:
aload 2
getfield java.awt.Dimension.height:I
i2f
freturn
end local 2 7: StackMap locals:
StackMap stack:
fconst_0
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/ComponentView;
0 8 1 axis I
4 7 2 size Ljava/awt/Dimension;
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: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 4
1: iload 1
tableswitch { // 0 - 1
0: 2
1: 3
default: 4
}
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getAlignmentX:()F
freturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getAlignmentY:()F
freturn
4: 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 5 0 this Ljavax/swing/text/ComponentView;
0 5 1 axis I
MethodParameters:
Name Flags
axis
public void setParent(javax.swing.text.View);
descriptor: (Ljavax/swing/text/View;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.View.setParent:(Ljavax/swing/text/View;)V
1: invokestatic javax.swing.SwingUtilities.isEventDispatchThread:()Z
ifeq 4
2: aload 0
invokevirtual javax.swing.text.ComponentView.setComponentParent:()V
3: goto 6
4: StackMap locals:
StackMap stack:
new javax.swing.text.ComponentView$1
dup
aload 0
invokespecial javax.swing.text.ComponentView$1.<init>:(Ljavax/swing/text/ComponentView;)V
astore 2
start local 2 5: aload 2
invokestatic javax.swing.SwingUtilities.invokeLater:(Ljava/lang/Runnable;)V
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/text/ComponentView;
0 7 1 p Ljavax/swing/text/View;
5 6 2 callSetComponentParent Ljava/lang/Runnable;
MethodParameters:
Name Flags
p
void setComponentParent();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.text.ComponentView.getParent:()Ljavax/swing/text/View;
astore 1
start local 1 1: aload 1
ifnull 14
2: aload 0
invokevirtual javax.swing.text.ComponentView.getContainer:()Ljava/awt/Container;
astore 2
start local 2 3: aload 2
ifnull 19
4: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnonnull 9
5: aload 0
invokevirtual javax.swing.text.ComponentView.createComponent:()Ljava/awt/Component;
astore 3
start local 3 6: aload 3
ifnull 9
7: aload 0
aload 3
putfield javax.swing.text.ComponentView.createdC:Ljava/awt/Component;
8: aload 0
new javax.swing.text.ComponentView$Invalidator
dup
aload 0
aload 3
invokespecial javax.swing.text.ComponentView$Invalidator.<init>:(Ljavax/swing/text/ComponentView;Ljava/awt/Component;)V
putfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
end local 3 9: StackMap locals: javax.swing.text.View java.awt.Container
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 19
10: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getParent:()Ljava/awt/Container;
ifnonnull 19
11: aload 2
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
aload 0
invokevirtual java.awt.Container.add:(Ljava/awt/Component;Ljava/lang/Object;)V
12: aload 2
ldc "enabled"
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual java.awt.Container.addPropertyChangeListener:(Ljava/lang/String;Ljava/beans/PropertyChangeListener;)V
end local 2 13: goto 19
14: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
ifnull 19
15: aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual javax.swing.text.ComponentView$Invalidator.getParent:()Ljava/awt/Container;
astore 2
start local 2 16: aload 2
ifnull 19
17: aload 2
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual java.awt.Container.remove:(Ljava/awt/Component;)V
18: aload 2
ldc "enabled"
aload 0
getfield javax.swing.text.ComponentView.c:Ljavax/swing/text/ComponentView$Invalidator;
invokevirtual java.awt.Container.removePropertyChangeListener:(Ljava/lang/String;Ljava/beans/PropertyChangeListener;)V
end local 2 19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/swing/text/ComponentView;
1 20 1 p Ljavax/swing/text/View;
3 13 2 parent Ljava/awt/Container;
6 9 3 comp Ljava/awt/Component;
16 19 2 parent Ljava/awt/Container;
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.ComponentView.getStartOffset:()I
istore 4
start local 4 1: aload 0
invokevirtual javax.swing.text.ComponentView.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/ComponentView;
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.ComponentView.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.ComponentView.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/ComponentView;
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: "ComponentView.java"
NestMembers:
javax.swing.text.ComponentView$1 javax.swing.text.ComponentView$Invalidator
InnerClasses:
javax.swing.text.ComponentView$1
Invalidator = javax.swing.text.ComponentView$Invalidator of javax.swing.text.ComponentView
public final Bias = javax.swing.text.Position$Bias of javax.swing.text.Position