public class java.awt.GradientPaint implements java.awt.Paint
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.awt.GradientPaint
super_class: java.lang.Object
{
java.awt.geom.Point2D$Float p1;
descriptor: Ljava/awt/geom/Point2D$Float;
flags: (0x0000)
java.awt.geom.Point2D$Float p2;
descriptor: Ljava/awt/geom/Point2D$Float;
flags: (0x0000)
java.awt.Color color1;
descriptor: Ljava/awt/Color;
flags: (0x0000)
java.awt.Color color2;
descriptor: Ljava/awt/Color;
flags: (0x0000)
boolean cyclic;
descriptor: Z
flags: (0x0000)
public void <init>(float, float, java.awt.Color, float, float, java.awt.Color);
descriptor: (FFLjava/awt/Color;FFLjava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, 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
invokespecial java.lang.Object.<init>:()V
1: aload 3
ifnull 2
aload 6
ifnonnull 3
2: StackMap locals: java.awt.GradientPaint float float java.awt.Color float float java.awt.Color
StackMap stack:
new java.lang.NullPointerException
dup
ldc "Colors cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
new java.awt.geom.Point2D$Float
dup
fload 1
fload 2
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
putfield java.awt.GradientPaint.p1:Ljava/awt/geom/Point2D$Float;
4: aload 0
new java.awt.geom.Point2D$Float
dup
fload 4
fload 5
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
putfield java.awt.GradientPaint.p2:Ljava/awt/geom/Point2D$Float;
5: aload 0
aload 3
putfield java.awt.GradientPaint.color1:Ljava/awt/Color;
6: aload 0
aload 6
putfield java.awt.GradientPaint.color2:Ljava/awt/Color;
7: return
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 8 0 this Ljava/awt/GradientPaint;
0 8 1 x1 F
0 8 2 y1 F
0 8 3 color1 Ljava/awt/Color;
0 8 4 x2 F
0 8 5 y2 F
0 8 6 color2 Ljava/awt/Color;
MethodParameters:
Name Flags
x1
y1
color1
x2
y2
color2
public void <init>(java.awt.geom.Point2D, java.awt.Color, java.awt.geom.Point2D, java.awt.Color);
descriptor: (Ljava/awt/geom/Point2D;Ljava/awt/Color;Ljava/awt/geom/Point2D;Ljava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 2
ifnull 3
aload 4
ifnull 3
2: aload 1
ifnull 3
aload 3
ifnonnull 4
3: StackMap locals: java.awt.GradientPaint java.awt.geom.Point2D java.awt.Color java.awt.geom.Point2D java.awt.Color
StackMap stack:
new java.lang.NullPointerException
dup
ldc "Colors and points should be non-null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
new java.awt.geom.Point2D$Float
dup
aload 1
invokevirtual java.awt.geom.Point2D.getX:()D
d2f
aload 1
invokevirtual java.awt.geom.Point2D.getY:()D
d2f
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
putfield java.awt.GradientPaint.p1:Ljava/awt/geom/Point2D$Float;
5: aload 0
new java.awt.geom.Point2D$Float
dup
aload 3
invokevirtual java.awt.geom.Point2D.getX:()D
d2f
aload 3
invokevirtual java.awt.geom.Point2D.getY:()D
d2f
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
putfield java.awt.GradientPaint.p2:Ljava/awt/geom/Point2D$Float;
6: aload 0
aload 2
putfield java.awt.GradientPaint.color1:Ljava/awt/Color;
7: aload 0
aload 4
putfield java.awt.GradientPaint.color2:Ljava/awt/Color;
8: return
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 Ljava/awt/GradientPaint;
0 9 1 pt1 Ljava/awt/geom/Point2D;
0 9 2 color1 Ljava/awt/Color;
0 9 3 pt2 Ljava/awt/geom/Point2D;
0 9 4 color2 Ljava/awt/Color;
MethodParameters:
Name Flags
pt1
color1
pt2
color2
public void <init>(float, float, java.awt.Color, float, float, java.awt.Color, boolean);
descriptor: (FFLjava/awt/Color;FFLjava/awt/Color;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
fload 1
fload 2
aload 3
fload 4
fload 5
aload 6
invokespecial java.awt.GradientPaint.<init>:(FFLjava/awt/Color;FFLjava/awt/Color;)V
1: aload 0
iload 7
putfield java.awt.GradientPaint.cyclic:Z
2: 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 3 0 this Ljava/awt/GradientPaint;
0 3 1 x1 F
0 3 2 y1 F
0 3 3 color1 Ljava/awt/Color;
0 3 4 x2 F
0 3 5 y2 F
0 3 6 color2 Ljava/awt/Color;
0 3 7 cyclic Z
MethodParameters:
Name Flags
x1
y1
color1
x2
y2
color2
cyclic
public void <init>(java.awt.geom.Point2D, java.awt.Color, java.awt.geom.Point2D, java.awt.Color, boolean);
descriptor: (Ljava/awt/geom/Point2D;Ljava/awt/Color;Ljava/awt/geom/Point2D;Ljava/awt/Color;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial java.awt.GradientPaint.<init>:(Ljava/awt/geom/Point2D;Ljava/awt/Color;Ljava/awt/geom/Point2D;Ljava/awt/Color;)V
1: aload 0
iload 5
putfield java.awt.GradientPaint.cyclic:Z
2: return
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 3 0 this Ljava/awt/GradientPaint;
0 3 1 pt1 Ljava/awt/geom/Point2D;
0 3 2 color1 Ljava/awt/Color;
0 3 3 pt2 Ljava/awt/geom/Point2D;
0 3 4 color2 Ljava/awt/Color;
0 3 5 cyclic Z
RuntimeVisibleAnnotations:
java.beans.ConstructorProperties(value = {"point1", "color1", "point2", "color2", "cyclic"})
MethodParameters:
Name Flags
pt1
color1
pt2
color2
cyclic
public java.awt.geom.Point2D getPoint1();
descriptor: ()Ljava/awt/geom/Point2D;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.awt.geom.Point2D$Float
dup
aload 0
getfield java.awt.GradientPaint.p1:Ljava/awt/geom/Point2D$Float;
getfield java.awt.geom.Point2D$Float.x:F
aload 0
getfield java.awt.GradientPaint.p1:Ljava/awt/geom/Point2D$Float;
getfield java.awt.geom.Point2D$Float.y:F
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GradientPaint;
public java.awt.Color getColor1();
descriptor: ()Ljava/awt/Color;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.GradientPaint.color1:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GradientPaint;
public java.awt.geom.Point2D getPoint2();
descriptor: ()Ljava/awt/geom/Point2D;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.awt.geom.Point2D$Float
dup
aload 0
getfield java.awt.GradientPaint.p2:Ljava/awt/geom/Point2D$Float;
getfield java.awt.geom.Point2D$Float.x:F
aload 0
getfield java.awt.GradientPaint.p2:Ljava/awt/geom/Point2D$Float;
getfield java.awt.geom.Point2D$Float.y:F
invokespecial java.awt.geom.Point2D$Float.<init>:(FF)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GradientPaint;
public java.awt.Color getColor2();
descriptor: ()Ljava/awt/Color;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.GradientPaint.color2:Ljava/awt/Color;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GradientPaint;
public boolean isCyclic();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.GradientPaint.cyclic:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/GradientPaint;
public java.awt.PaintContext createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints);
descriptor: (Ljava/awt/image/ColorModel;Ljava/awt/Rectangle;Ljava/awt/geom/Rectangle2D;Ljava/awt/geom/AffineTransform;Ljava/awt/RenderingHints;)Ljava/awt/PaintContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.awt.GradientPaintContext
dup
aload 1
aload 0
getfield java.awt.GradientPaint.p1:Ljava/awt/geom/Point2D$Float;
aload 0
getfield java.awt.GradientPaint.p2:Ljava/awt/geom/Point2D$Float;
aload 4
1: aload 0
getfield java.awt.GradientPaint.color1:Ljava/awt/Color;
aload 0
getfield java.awt.GradientPaint.color2:Ljava/awt/Color;
aload 0
getfield java.awt.GradientPaint.cyclic:Z
2: invokespecial java.awt.GradientPaintContext.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/geom/Point2D;Ljava/awt/geom/Point2D;Ljava/awt/geom/AffineTransform;Ljava/awt/Color;Ljava/awt/Color;Z)V
areturn
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 3 0 this Ljava/awt/GradientPaint;
0 3 1 cm Ljava/awt/image/ColorModel;
0 3 2 deviceBounds Ljava/awt/Rectangle;
0 3 3 userBounds Ljava/awt/geom/Rectangle2D;
0 3 4 xform Ljava/awt/geom/AffineTransform;
0 3 5 hints Ljava/awt/RenderingHints;
MethodParameters:
Name Flags
cm
deviceBounds
userBounds
xform
hints
public int getTransparency();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield java.awt.GradientPaint.color1:Ljava/awt/Color;
invokevirtual java.awt.Color.getAlpha:()I
istore 1
start local 1 1: aload 0
getfield java.awt.GradientPaint.color2:Ljava/awt/Color;
invokevirtual java.awt.Color.getAlpha:()I
istore 2
start local 2 2: iload 1
iload 2
iand
sipush 255
if_icmpne 3
iconst_1
goto 4
StackMap locals: int int
StackMap stack:
3: iconst_3
StackMap locals:
StackMap stack: int
4: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/awt/GradientPaint;
1 5 1 a1 I
2 5 2 a2 I
}
SourceFile: "GradientPaint.java"
InnerClasses:
public Float = java.awt.geom.Point2D$Float of java.awt.geom.Point2D