public class javax.swing.border.StrokeBorder extends javax.swing.border.AbstractBorder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.border.StrokeBorder
super_class: javax.swing.border.AbstractBorder
{
private final java.awt.BasicStroke stroke;
descriptor: Ljava/awt/BasicStroke;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.awt.Paint paint;
descriptor: Ljava/awt/Paint;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.awt.BasicStroke);
descriptor: (Ljava/awt/BasicStroke;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial javax.swing.border.StrokeBorder.<init>:(Ljava/awt/BasicStroke;Ljava/awt/Paint;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/border/StrokeBorder;
0 2 1 stroke Ljava/awt/BasicStroke;
MethodParameters:
Name Flags
stroke
public void <init>(java.awt.BasicStroke, java.awt.Paint);
descriptor: (Ljava/awt/BasicStroke;Ljava/awt/Paint;)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
invokespecial javax.swing.border.AbstractBorder.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "border's stroke"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.swing.border.StrokeBorder java.awt.BasicStroke java.awt.Paint
StackMap stack:
aload 0
aload 1
putfield javax.swing.border.StrokeBorder.stroke:Ljava/awt/BasicStroke;
4: aload 0
aload 2
putfield javax.swing.border.StrokeBorder.paint:Ljava/awt/Paint;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/border/StrokeBorder;
0 6 1 stroke Ljava/awt/BasicStroke;
0 6 2 paint Ljava/awt/Paint;
RuntimeVisibleAnnotations:
java.beans.ConstructorProperties(value = {"stroke", "paint"})
MethodParameters:
Name Flags
stroke
paint
public void paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int);
descriptor: (Ljava/awt/Component;Ljava/awt/Graphics;IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=9, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield javax.swing.border.StrokeBorder.stroke:Ljava/awt/BasicStroke;
invokevirtual java.awt.BasicStroke.getLineWidth:()F
fstore 7
start local 7 1: fload 7
fconst_0
fcmpl
ifle 15
2: aload 2
invokevirtual java.awt.Graphics.create:()Ljava/awt/Graphics;
astore 2
3: aload 2
instanceof java.awt.Graphics2D
ifeq 14
4: aload 2
checkcast java.awt.Graphics2D
astore 8
start local 8 5: aload 8
aload 0
getfield javax.swing.border.StrokeBorder.stroke:Ljava/awt/BasicStroke;
invokevirtual java.awt.Graphics2D.setStroke:(Ljava/awt/Stroke;)V
6: aload 8
aload 0
getfield javax.swing.border.StrokeBorder.paint:Ljava/awt/Paint;
ifnull 7
aload 0
getfield javax.swing.border.StrokeBorder.paint:Ljava/awt/Paint;
goto 9
StackMap locals: javax.swing.border.StrokeBorder java.awt.Component java.awt.Graphics int int int int float java.awt.Graphics2D
StackMap stack: java.awt.Graphics2D
7: aload 1
ifnonnull 8
aconst_null
goto 9
StackMap locals:
StackMap stack: java.awt.Graphics2D
8: aload 1
invokevirtual java.awt.Component.getForeground:()Ljava/awt/Color;
StackMap locals: javax.swing.border.StrokeBorder java.awt.Component java.awt.Graphics int int int int float java.awt.Graphics2D
StackMap stack: java.awt.Graphics2D java.awt.Paint
9: invokevirtual java.awt.Graphics2D.setPaint:(Ljava/awt/Paint;)V
10: aload 8
getstatic java.awt.RenderingHints.KEY_ANTIALIASING:Ljava/awt/RenderingHints$Key;
11: getstatic java.awt.RenderingHints.VALUE_ANTIALIAS_ON:Ljava/lang/Object;
12: invokevirtual java.awt.Graphics2D.setRenderingHint:(Ljava/awt/RenderingHints$Key;Ljava/lang/Object;)V
13: aload 8
new java.awt.geom.Rectangle2D$Float
dup
iload 3
i2f
fload 7
fconst_2
fdiv
fadd
iload 4
i2f
fload 7
fconst_2
fdiv
fadd
iload 5
i2f
fload 7
fsub
iload 6
i2f
fload 7
fsub
invokespecial java.awt.geom.Rectangle2D$Float.<init>:(FFFF)V
invokevirtual java.awt.Graphics2D.draw:(Ljava/awt/Shape;)V
end local 8 14: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.awt.Graphics.dispose:()V
15: StackMap locals:
StackMap stack:
return
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 16 0 this Ljavax/swing/border/StrokeBorder;
0 16 1 c Ljava/awt/Component;
0 16 2 g Ljava/awt/Graphics;
0 16 3 x I
0 16 4 y I
0 16 5 width I
0 16 6 height I
1 16 7 size F
5 14 8 g2d Ljava/awt/Graphics2D;
MethodParameters:
Name Flags
c
g
x
y
width
height
public java.awt.Insets getBorderInsets(java.awt.Component, java.awt.Insets);
descriptor: (Ljava/awt/Component;Ljava/awt/Insets;)Ljava/awt/Insets;
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.border.StrokeBorder.stroke:Ljava/awt/BasicStroke;
invokevirtual java.awt.BasicStroke.getLineWidth:()F
f2d
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 3
start local 3 1: aload 2
iload 3
iload 3
iload 3
iload 3
invokevirtual java.awt.Insets.set:(IIII)V
2: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/border/StrokeBorder;
0 3 1 c Ljava/awt/Component;
0 3 2 insets Ljava/awt/Insets;
1 3 3 size I
MethodParameters:
Name Flags
c
insets
public java.awt.BasicStroke getStroke();
descriptor: ()Ljava/awt/BasicStroke;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.border.StrokeBorder.stroke:Ljava/awt/BasicStroke;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/border/StrokeBorder;
public java.awt.Paint getPaint();
descriptor: ()Ljava/awt/Paint;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.border.StrokeBorder.paint:Ljava/awt/Paint;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/border/StrokeBorder;
}
SourceFile: "StrokeBorder.java"
InnerClasses:
public abstract Key = java.awt.RenderingHints$Key of java.awt.RenderingHints
public Float = java.awt.geom.Rectangle2D$Float of java.awt.geom.Rectangle2D