final class javax.swing.colorchooser.ColorModelHSV extends javax.swing.colorchooser.ColorModel
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: javax.swing.colorchooser.ColorModelHSV
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.ColorModelHSV this
0: .line 31
aload 0 /* this */
ldc "hsv"
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "Hue"
aastore
dup
iconst_1
ldc "Saturation"
aastore
dup
iconst_2
ldc "Value"
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.ColorModelHSV this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/colorchooser/ColorModelHSV;
void setColor(int, float[]);
descriptor: (I[F)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 // javax.swing.colorchooser.ColorModelHSV 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.ColorModelHSV.RGBtoHSV:([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.ColorModelHSV this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/colorchooser/ColorModelHSV;
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.ColorModelHSV 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.ColorModelHSV.HSVtoRGB:([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.ColorModelHSV this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ColorModelHSV;
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.ColorModelHSV 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.ColorModelHSV this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ColorModelHSV;
0 3 1 index I
MethodParameters:
Name Flags
index
float getDefault(int);
descriptor: (I)F
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 // javax.swing.colorchooser.ColorModelHSV this
start local 1 // int index
0: .line 55
iload 1 /* index */
ifne 1
ldc -1.0
goto 2
StackMap locals:
StackMap stack:
1: fconst_1
StackMap locals:
StackMap stack: float
2: freturn
end local 1 // int index
end local 0 // javax.swing.colorchooser.ColorModelHSV this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/colorchooser/ColorModelHSV;
0 3 1 index I
MethodParameters:
Name Flags
index
private static float[] HSVtoRGB(float[], float[]);
descriptor: ([F[F)[F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=7, args_size=2
start local 0 // float[] hsv
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 /* hsv */
iconst_0
faload
fstore 2 /* hue */
start local 2 // float hue
3: .line 72
aload 0 /* hsv */
iconst_1
faload
fstore 3 /* saturation */
start local 3 // float saturation
4: .line 73
aload 0 /* hsv */
iconst_2
faload
fstore 4 /* value */
start local 4 // float value
5: .line 75
aload 1 /* rgb */
iconst_0
fload 4 /* value */
fastore
6: .line 76
aload 1 /* rgb */
iconst_1
fload 4 /* value */
fastore
7: .line 77
aload 1 /* rgb */
iconst_2
fload 4 /* value */
fastore
8: .line 79
fload 3 /* saturation */
fconst_0
fcmpl
ifle 32
9: .line 80
fload 2 /* hue */
fconst_1
fcmpg
ifge 10
fload 2 /* hue */
ldc 6.0
fmul
goto 11
StackMap locals: float float float
StackMap stack:
10: fconst_0
StackMap locals:
StackMap stack: float
11: fstore 2 /* hue */
12: .line 81
fload 2 /* hue */
f2i
istore 5 /* integer */
start local 5 // int integer
13: .line 82
fload 2 /* hue */
iload 5 /* integer */
i2f
fsub
fstore 6 /* f */
start local 6 // float f
14: .line 83
iload 5 /* integer */
tableswitch { // 0 - 5
0: 15
1: 18
2: 21
3: 24
4: 27
5: 30
default: 32
}
15: .line 85
StackMap locals: int float
StackMap stack:
aload 1 /* rgb */
iconst_1
dup2
faload
fconst_1
fload 3 /* saturation */
fconst_1
fload 6 /* f */
fsub
fmul
fsub
fmul
fastore
16: .line 86
aload 1 /* rgb */
iconst_2
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
17: .line 87
goto 32
18: .line 89
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_0
dup2
faload
fconst_1
fload 3 /* saturation */
fload 6 /* f */
fmul
fsub
fmul
fastore
19: .line 90
aload 1 /* rgb */
iconst_2
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
20: .line 91
goto 32
21: .line 93
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_0
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
22: .line 94
aload 1 /* rgb */
iconst_2
dup2
faload
fconst_1
fload 3 /* saturation */
fconst_1
fload 6 /* f */
fsub
fmul
fsub
fmul
fastore
23: .line 95
goto 32
24: .line 97
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_0
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
25: .line 98
aload 1 /* rgb */
iconst_1
dup2
faload
fconst_1
fload 3 /* saturation */
fload 6 /* f */
fmul
fsub
fmul
fastore
26: .line 99
goto 32
27: .line 101
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_0
dup2
faload
fconst_1
fload 3 /* saturation */
fconst_1
fload 6 /* f */
fsub
fmul
fsub
fmul
fastore
28: .line 102
aload 1 /* rgb */
iconst_1
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
29: .line 103
goto 32
30: .line 105
StackMap locals:
StackMap stack:
aload 1 /* rgb */
iconst_1
dup2
faload
fconst_1
fload 3 /* saturation */
fsub
fmul
fastore
31: .line 106
aload 1 /* rgb */
iconst_2
dup2
faload
fconst_1
fload 3 /* saturation */
fload 6 /* f */
fmul
fsub
fmul
fastore
end local 6 // float f
end local 5 // int integer
32: .line 110
StackMap locals:
StackMap stack:
aload 1 /* rgb */
areturn
end local 4 // float value
end local 3 // float saturation
end local 2 // float hue
end local 1 // float[] rgb
end local 0 // float[] hsv
LocalVariableTable:
Start End Slot Name Signature
0 33 0 hsv [F
0 33 1 rgb [F
3 33 2 hue F
4 33 3 saturation F
5 33 4 value F
13 32 5 integer I
14 32 6 f F
MethodParameters:
Name Flags
hsv
rgb
private static float[] RGBtoHSV(float[], float[]);
descriptor: ([F[F)[F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=5, args_size=2
start local 0 // float[] rgb
start local 1 // float[] hsv
0: .line 123
aload 1 /* hsv */
ifnonnull 2
1: .line 124
iconst_3
newarray 6
astore 1 /* hsv */
2: .line 126
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 127
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 129
fload 2 /* max */
fload 3 /* min */
fsub
fstore 4 /* saturation */
start local 4 // float saturation
5: .line 130
fload 4 /* saturation */
fconst_0
fcmpl
ifle 7
6: .line 131
fload 4 /* saturation */
fload 2 /* max */
fdiv
fstore 4 /* saturation */
7: .line 133
StackMap locals: float float float
StackMap stack:
aload 1 /* hsv */
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
8: .line 134
aload 1 /* hsv */
iconst_1
fload 4 /* saturation */
fastore
9: .line 135
aload 1 /* hsv */
iconst_2
fload 2 /* max */
fastore
10: .line 136
aload 1 /* hsv */
areturn
end local 4 // float saturation
end local 3 // float min
end local 2 // float max
end local 1 // float[] hsv
end local 0 // float[] rgb
LocalVariableTable:
Start End Slot Name Signature
0 11 0 rgb [F
0 11 1 hsv [F
3 11 2 max F
4 11 3 min F
5 11 4 saturation F
MethodParameters:
Name Flags
rgb
hsv
}
SourceFile: "ColorModelHSV.java"