final class javax.swing.colorchooser.ColorModelHSL extends javax.swing.colorchooser.ColorModel
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: javax.swing.colorchooser.ColorModelHSL
super_class: javax.swing.colorchooser.ColorModel
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=1, args_size=1
start local 0 // javax.swing.colorchooser.ColorModelHSL this
0: .line 31
aload 0 /* this */
ldc "hsl"
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "Hue"
aastore
dup
iconst_1
ldc "Saturation"
aastore
dup
iconst_2
ldc "Lightness"
aastore
dup
iconst_3
ldc "Transparency"
aastore
invokespecial javax.swing.colorchooser.ColorModel.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
1: .line 32
return
end local 0 // javax.swing.colorchooser.ColorModelHSL this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/colorchooser/ColorModelHSL;
void setColor(int, float[]);
descriptor: (I[F)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 // javax.swing.colorchooser.ColorModelHSL this
start local 1 // int color
start local 2 // float[] space
0: .line 36
aload 0 /* this */
iload 1 /* color */
aload 2 /* space */
invokespecial javax.swing.colorchooser.ColorModel.setColor:(I[F)V
1: .line 37
aload 2 /* space */
aload 2 /* space */
invokestatic javax.swing.colorchooser.ColorModelHSL.RGBtoHSL:([F[F)[F
pop
2: .line 38
aload 2 /* space */
iconst_3
fconst_1
aload 2 /* space */
iconst_3
faload
fsub
fastore
3: .line 39
return
end local 2 // float[] space
end local 1 // int color
end local 0 // javax.swing.colorchooser.ColorModelHSL this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/colorchooser/ColorModelHSL;
0 4 1 color I
0 4 2 space [F
MethodParameters:
Name Flags
color
space
int getColor(float[]);
descriptor: ([F)I
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 // javax.swing.colorchooser.ColorModelHSL this
start local 1 // float[] space
0: .line 43
aload 1 /* space */
iconst_3
fconst_1
aload 1 /* space */
iconst_3
faload
fsub
fastore
1: .line 44
aload 1 /* space */
aload 1 /* space */
invokestatic javax.swing.colorchooser.ColorModelHSL.HSLtoRGB:([F[F)[F
pop
2: .line 45
aload 0 /* this */
aload 1 /* space */
invokespecial javax.swing.colorchooser.ColorModel.getColor:([F)I
ireturn
end local 1 // float[] space
end local 0 // javax.swing.colorchooser.ColorModelHSL this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ColorModelHSL;
0 3 1 space [F
MethodParameters:
Name Flags
space
int getMaximum(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 // javax.swing.colorchooser.ColorModelHSL this
start local 1 // int index
0: .line 50
iload 1 /* index */
ifne 1
sipush 360
goto 2
StackMap locals:
StackMap stack:
1: bipush 100
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 // int index
end local 0 // javax.swing.colorchooser.ColorModelHSL this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ColorModelHSL;
0 3 1 index I
MethodParameters:
Name Flags
index
float getDefault(int);
descriptor: (I)F
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // javax.swing.colorchooser.ColorModelHSL this
start local 1 // int index
0: .line 55
iload 1 /* index */
ifne 1
ldc -1.0
goto 3
StackMap locals:
StackMap stack:
1: iload 1 /* index */
iconst_2
if_icmpne 2
ldc 0.5
goto 3
StackMap locals:
StackMap stack:
2: fconst_1
StackMap locals:
StackMap stack: float
3: freturn
end local 1 // int index
end local 0 // javax.swing.colorchooser.ColorModelHSL this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/colorchooser/ColorModelHSL;
0 4 1 index I
MethodParameters:
Name Flags
index
private static float[] HSLtoRGB(float[], float[]);
descriptor: ([F[F)[F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=2
start local 0 // float[] hsl
start local 1 // float[] rgb
0: .line 68
aload 1 /* rgb */
ifnonnull 2
1: .line 69
iconst_3
newarray 6
astore 1 /* rgb */
2: .line 71
StackMap locals:
StackMap stack:
aload 0 /* hsl */
iconst_0
faload
fstore 2 /* hue */
start local 2 // float hue
3: .line 72
aload 0 /* hsl */
iconst_1
faload
fstore 3 /* saturation */
start local 3 // float saturation
4: .line 73
aload 0 /* hsl */
iconst_2
faload
fstore 4 /* lightness */
start local 4 // float lightness
5: .line 75
fload 3 /* saturation */
fconst_0
fcmpl
ifle 21
6: .line 76
fload 2 /* hue */
fconst_1
fcmpg
ifge 7
fload 2 /* hue */
ldc 6.0
fmul
goto 8
StackMap locals: float float float
StackMap stack:
7: fconst_0
StackMap locals:
StackMap stack: float
8: fstore 2 /* hue */
9: .line 77
fload 4 /* lightness */
fload 3 /* saturation */
fload 4 /* lightness */
ldc 0.5
fcmpl
ifle 10
fconst_1
fload 4 /* lightness */
fsub
goto 11
StackMap locals: float[] float[] float float float
StackMap stack: float float
10: fload 4 /* lightness */
StackMap locals: float[] float[] float float float
StackMap stack: float float float
11: fmul
fadd
fstore 5 /* q */
start local 5 // float q
12: .line 78
fconst_2
fload 4 /* lightness */
fmul
fload 5 /* q */
fsub
fstore 6 /* p */
start local 6 // float p
13: .line 79
aload 1 /* rgb */
iconst_0
fload 5 /* q */
fload 6 /* p */
fload 2 /* hue */
ldc 4.0
fcmpg
ifge 14
fload 2 /* hue */
fconst_2
fadd
goto 15
StackMap locals: float[] float[] float float float float float
StackMap stack: float[] int float float
14: fload 2 /* hue */
ldc 4.0
fsub
StackMap locals: float[] float[] float float float float float
StackMap stack: float[] int float float float
15: invokestatic javax.swing.colorchooser.ColorModelHSL.normalize:(FFF)F
fastore
16: .line 80
aload 1 /* rgb */
iconst_1
fload 5 /* q */
fload 6 /* p */
fload 2 /* hue */
invokestatic javax.swing.colorchooser.ColorModelHSL.normalize:(FFF)F
fastore
17: .line 81
aload 1 /* rgb */
iconst_2
fload 5 /* q */
fload 6 /* p */
fload 2 /* hue */
fconst_2
fcmpg
ifge 18
fload 2 /* hue */
ldc 4.0
fadd
goto 19
StackMap locals: float[] float[] float float float float float
StackMap stack: float[] int float float
18: fload 2 /* hue */
fconst_2
fsub
StackMap locals: float[] float[] float float float float float
StackMap stack: float[] int float float float
19: invokestatic javax.swing.colorchooser.ColorModelHSL.normalize:(FFF)F
fastore
end local 6 // float p
end local 5 // float q
20: .line 82
goto 24
21: .line 84
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_0
fload 4 /* lightness */
fastore
22: .line 85
aload 1 /* rgb */
iconst_1
fload 4 /* lightness */
fastore
23: .line 86
aload 1 /* rgb */
iconst_2
fload 4 /* lightness */
fastore
24: .line 88
StackMap locals:
StackMap stack:
aload 1 /* rgb */
areturn
end local 4 // float lightness
end local 3 // float saturation
end local 2 // float hue
end local 1 // float[] rgb
end local 0 // float[] hsl
LocalVariableTable:
Start End Slot Name Signature
0 25 0 hsl [F
0 25 1 rgb [F
3 25 2 hue F
4 25 3 saturation F
5 25 4 lightness F
12 20 5 q F
13 20 6 p F
MethodParameters:
Name Flags
hsl
rgb
private static float[] RGBtoHSL(float[], float[]);
descriptor: ([F[F)[F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=6, args_size=2
start local 0 // float[] rgb
start local 1 // float[] hsl
0: .line 101
aload 1 /* hsl */
ifnonnull 2
1: .line 102
iconst_3
newarray 6
astore 1 /* hsl */
2: .line 104
StackMap locals:
StackMap stack:
aload 0 /* rgb */
iconst_0
faload
aload 0 /* rgb */
iconst_1
faload
aload 0 /* rgb */
iconst_2
faload
invokestatic javax.swing.colorchooser.ColorModelHSL.max:(FFF)F
fstore 2 /* max */
start local 2 // float max
3: .line 105
aload 0 /* rgb */
iconst_0
faload
aload 0 /* rgb */
iconst_1
faload
aload 0 /* rgb */
iconst_2
faload
invokestatic javax.swing.colorchooser.ColorModelHSL.min:(FFF)F
fstore 3 /* min */
start local 3 // float min
4: .line 107
fload 2 /* max */
fload 3 /* min */
fadd
fstore 4 /* summa */
start local 4 // float summa
5: .line 108
fload 2 /* max */
fload 3 /* min */
fsub
fstore 5 /* saturation */
start local 5 // float saturation
6: .line 109
fload 5 /* saturation */
fconst_0
fcmpl
ifle 11
7: .line 110
fload 5 /* saturation */
fload 4 /* summa */
fconst_1
fcmpl
ifle 9
8: .line 111
fconst_2
fload 4 /* summa */
fsub
goto 10
9: .line 112
StackMap locals: float[] float[] float float float float
StackMap stack: float
fload 4 /* summa */
StackMap locals: float[] float[] float float float float
StackMap stack: float float
10: fdiv
fstore 5 /* saturation */
11: .line 114
StackMap locals:
StackMap stack:
aload 1 /* hsl */
iconst_0
aload 0 /* rgb */
iconst_0
faload
aload 0 /* rgb */
iconst_1
faload
aload 0 /* rgb */
iconst_2
faload
fload 2 /* max */
fload 3 /* min */
invokestatic javax.swing.colorchooser.ColorModelHSL.getHue:(FFFFF)F
fastore
12: .line 115
aload 1 /* hsl */
iconst_1
fload 5 /* saturation */
fastore
13: .line 116
aload 1 /* hsl */
iconst_2
fload 4 /* summa */
fconst_2
fdiv
fastore
14: .line 117
aload 1 /* hsl */
areturn
end local 5 // float saturation
end local 4 // float summa
end local 3 // float min
end local 2 // float max
end local 1 // float[] hsl
end local 0 // float[] rgb
LocalVariableTable:
Start End Slot Name Signature
0 15 0 rgb [F
0 15 1 hsl [F
3 15 2 max F
4 15 3 min F
5 15 4 summa F
6 15 5 saturation F
MethodParameters:
Name Flags
rgb
hsl
static float min(float, float, float);
descriptor: (FFF)F
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 // float red
start local 1 // float green
start local 2 // float blue
0: .line 129
fload 0 /* red */
fload 1 /* green */
fcmpg
ifge 1
fload 0 /* red */
goto 2
StackMap locals:
StackMap stack:
1: fload 1 /* green */
StackMap locals:
StackMap stack: float
2: fstore 3 /* min */
start local 3 // float min
3: .line 130
fload 3 /* min */
fload 2 /* blue */
fcmpg
ifge 4
fload 3 /* min */
goto 5
StackMap locals: float
StackMap stack:
4: fload 2 /* blue */
StackMap locals:
StackMap stack: float
5: freturn
end local 3 // float min
end local 2 // float blue
end local 1 // float green
end local 0 // float red
LocalVariableTable:
Start End Slot Name Signature
0 6 0 red F
0 6 1 green F
0 6 2 blue F
3 6 3 min F
MethodParameters:
Name Flags
red
green
blue
static float max(float, float, float);
descriptor: (FFF)F
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 // float red
start local 1 // float green
start local 2 // float blue
0: .line 142
fload 0 /* red */
fload 1 /* green */
fcmpl
ifle 1
fload 0 /* red */
goto 2
StackMap locals:
StackMap stack:
1: fload 1 /* green */
StackMap locals:
StackMap stack: float
2: fstore 3 /* max */
start local 3 // float max
3: .line 143
fload 3 /* max */
fload 2 /* blue */
fcmpl
ifle 4
fload 3 /* max */
goto 5
StackMap locals: float
StackMap stack:
4: fload 2 /* blue */
StackMap locals:
StackMap stack: float
5: freturn
end local 3 // float max
end local 2 // float blue
end local 1 // float green
end local 0 // float red
LocalVariableTable:
Start End Slot Name Signature
0 6 0 red F
0 6 1 green F
0 6 2 blue F
3 6 3 max F
MethodParameters:
Name Flags
red
green
blue
static float getHue(float, float, float, float, float);
descriptor: (FFFFF)F
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=5
start local 0 // float red
start local 1 // float green
start local 2 // float blue
start local 3 // float max
start local 4 // float min
0: .line 157
fload 3 /* max */
fload 4 /* min */
fsub
fstore 5 /* hue */
start local 5 // float hue
1: .line 158
fload 5 /* hue */
fconst_0
fcmpl
ifle 12
2: .line 159
fload 3 /* max */
fload 0 /* red */
fcmpl
ifne 7
3: .line 160
fload 1 /* green */
fload 2 /* blue */
fsub
fload 5 /* hue */
fdiv
fstore 5 /* hue */
4: .line 161
fload 5 /* hue */
fconst_0
fcmpg
ifge 11
5: .line 162
fload 5 /* hue */
ldc 6.0
fadd
fstore 5 /* hue */
6: .line 164
goto 11
7: .line 165
StackMap locals: float
StackMap stack:
fload 3 /* max */
fload 1 /* green */
fcmpl
ifne 10
8: .line 166
fconst_2
fload 2 /* blue */
fload 0 /* red */
fsub
fload 5 /* hue */
fdiv
fadd
fstore 5 /* hue */
9: .line 167
goto 11
10: .line 169
StackMap locals:
StackMap stack:
ldc 4.0
fload 0 /* red */
fload 1 /* green */
fsub
fload 5 /* hue */
fdiv
fadd
fstore 5 /* hue */
11: .line 171
StackMap locals:
StackMap stack:
fload 5 /* hue */
ldc 6.0
fdiv
fstore 5 /* hue */
12: .line 173
StackMap locals:
StackMap stack:
fload 5 /* hue */
freturn
end local 5 // float hue
end local 4 // float min
end local 3 // float max
end local 2 // float blue
end local 1 // float green
end local 0 // float red
LocalVariableTable:
Start End Slot Name Signature
0 13 0 red F
0 13 1 green F
0 13 2 blue F
0 13 3 max F
0 13 4 min F
1 13 5 hue F
MethodParameters:
Name Flags
red
green
blue
max
min
private static float normalize(float, float, float);
descriptor: (FFF)F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 // float q
start local 1 // float p
start local 2 // float color
0: .line 177
fload 2 /* color */
fconst_1
fcmpg
ifge 2
1: .line 178
fload 1 /* p */
fload 0 /* q */
fload 1 /* p */
fsub
fload 2 /* color */
fmul
fadd
freturn
2: .line 180
StackMap locals:
StackMap stack:
fload 2 /* color */
ldc 3.0
fcmpg
ifge 4
3: .line 181
fload 0 /* q */
freturn
4: .line 183
StackMap locals:
StackMap stack:
fload 2 /* color */
ldc 4.0
fcmpg
ifge 6
5: .line 184
fload 1 /* p */
fload 0 /* q */
fload 1 /* p */
fsub
ldc 4.0
fload 2 /* color */
fsub
fmul
fadd
freturn
6: .line 186
StackMap locals:
StackMap stack:
fload 1 /* p */
freturn
end local 2 // float color
end local 1 // float p
end local 0 // float q
LocalVariableTable:
Start End Slot Name Signature
0 7 0 q F
0 7 1 p F
0 7 2 color F
MethodParameters:
Name Flags
q
p
color
}
SourceFile: "ColorModelHSL.java"