class sun.awt.X11.MotifColorUtilities
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.X11.MotifColorUtilities
super_class: java.lang.Object
{
static final float XmRED_LUMINOSITY;
descriptor: F
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0.3
static final float XmGREEN_LUMINOSITY;
descriptor: F
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0.59
static final float XmBLUE_LUMINOSITY;
descriptor: F
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0.11
static final int XmINTENSITY_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 75
static final int XmLIGHT_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int XmLUMINOSITY_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 25
static final int XmMAX_SHORT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 65535
static final int XmCOLOR_PERCENTILE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 655
static final int XmDEFAULT_DARK_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 20
static final int XmDEFAULT_LIGHT_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 93
static final int XmDEFAULT_FOREGROUND_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 70
static final int BLACK;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -16777216
static final int WHITE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -1
static final int MOTIF_WINDOW_COLOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -2105377
static final int DEFAULT_COLOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -3881788
static final int XmCOLOR_LITE_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 60915
static final int XmCOLOR_DARK_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 13100
static final int XmFOREGROUND_THRESHOLD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 45850
static final int XmCOLOR_LITE_SEL_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 15
static final int XmCOLOR_LITE_BS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 40
static final int XmCOLOR_LITE_TS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 20
static final int XmCOLOR_DARK_SEL_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 15
static final int XmCOLOR_DARK_BS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 30
static final int XmCOLOR_DARK_TS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 50
static final int XmCOLOR_HI_SEL_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 15
static final int XmCOLOR_HI_BS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 40
static final int XmCOLOR_HI_TS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 60
static final int XmCOLOR_LO_SEL_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 15
static final int XmCOLOR_LO_BS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 60
static final int XmCOLOR_LO_TS_FACTOR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 50
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // sun.awt.X11.MotifColorUtilities this
0: .line 46
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // sun.awt.X11.MotifColorUtilities this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/MotifColorUtilities;
static int brightness(int, int, int);
descriptor: (III)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=9, args_size=3
start local 0 // int red
start local 1 // int green
start local 2 // int blue
0: .line 113
iload 0 /* red */
bipush 8
ishl
istore 0 /* red */
1: .line 114
iload 1 /* green */
bipush 8
ishl
istore 1 /* green */
2: .line 115
iload 2 /* blue */
bipush 8
ishl
istore 2 /* blue */
3: .line 118
iload 0 /* red */
iload 1 /* green */
iadd
iload 2 /* blue */
iadd
iconst_3
idiv
i2f
fstore 4 /* intensity */
start local 4 // float intensity
4: .line 126
ldc 0.3
iload 0 /* red */
i2f
fmul
5: .line 127
ldc 0.59
iload 1 /* green */
i2f
fmul
6: .line 126
fadd
7: .line 128
ldc 0.11
iload 2 /* blue */
i2f
fmul
8: .line 126
fadd
f2i
i2f
fstore 6 /* luminosity */
start local 6 // float luminosity
9: .line 130
iload 0 /* red */
iload 1 /* green */
if_icmple 12
10: .line 131
iload 0 /* red */
iload 2 /* blue */
if_icmple 11
iload 0 /* red */
goto 14
StackMap locals: int int int top float top float
StackMap stack:
11: iload 2 /* blue */
goto 14
12: .line 132
StackMap locals:
StackMap stack:
iload 1 /* green */
iload 2 /* blue */
if_icmple 13
iload 1 /* green */
goto 14
StackMap locals:
StackMap stack:
13: iload 2 /* blue */
14: .line 130
StackMap locals:
StackMap stack: int
i2f
fstore 7 /* maxprimary */
start local 7 // float maxprimary
15: .line 134
iload 0 /* red */
iload 1 /* green */
if_icmpge 18
16: .line 135
iload 0 /* red */
iload 2 /* blue */
if_icmpge 17
iload 0 /* red */
goto 20
StackMap locals: float
StackMap stack:
17: iload 2 /* blue */
goto 20
18: .line 136
StackMap locals:
StackMap stack:
iload 1 /* green */
iload 2 /* blue */
if_icmpge 19
iload 1 /* green */
goto 20
StackMap locals:
StackMap stack:
19: iload 2 /* blue */
20: .line 134
StackMap locals:
StackMap stack: int
i2f
fstore 8 /* minprimary */
start local 8 // float minprimary
21: .line 138
fload 8 /* minprimary */
fload 7 /* maxprimary */
fadd
fconst_2
fdiv
fstore 5 /* light */
start local 5 // float light
22: .line 140
fload 4 /* intensity */
ldc 75.0
fmul
23: .line 141
fload 5 /* light */
fconst_0
fmul
24: .line 140
fadd
25: .line 142
fload 6 /* luminosity */
ldc 25.0
fmul
26: .line 140
fadd
27: .line 142
ldc 100.0
28: .line 140
fdiv
fstore 3 /* brightness */
start local 3 // float brightness
29: .line 143
fload 3 /* brightness */
invokestatic java.lang.Math.round:(F)I
ireturn
end local 8 // float minprimary
end local 7 // float maxprimary
end local 6 // float luminosity
end local 5 // float light
end local 4 // float intensity
end local 3 // float brightness
end local 2 // int blue
end local 1 // int green
end local 0 // int red
LocalVariableTable:
Start End Slot Name Signature
0 30 0 red I
0 30 1 green I
0 30 2 blue I
29 30 3 brightness F
4 30 4 intensity F
22 30 5 light F
9 30 6 luminosity F
15 30 7 maxprimary F
21 30 8 minprimary F
MethodParameters:
Name Flags
red
green
blue
static int calculateForegroundFromBackground(int, int, int);
descriptor: (III)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 // int r
start local 1 // int g
start local 2 // int b
0: .line 148
iconst_m1
istore 3 /* foreground */
start local 3 // int foreground
1: .line 149
iload 0 /* r */
iload 1 /* g */
iload 2 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.brightness:(III)I
istore 4 /* brightness */
start local 4 // int brightness
2: .line 151
iload 4 /* brightness */
ldc 45850
if_icmple 5
3: .line 152
ldc -16777216
istore 3 /* foreground */
4: .line 153
goto 6
5: .line 154
StackMap locals: int int
StackMap stack:
iconst_m1
istore 3 /* foreground */
6: .line 156
StackMap locals:
StackMap stack:
iload 3 /* foreground */
ireturn
end local 4 // int brightness
end local 3 // int foreground
end local 2 // int b
end local 1 // int g
end local 0 // int r
LocalVariableTable:
Start End Slot Name Signature
0 7 0 r I
0 7 1 g I
0 7 2 b I
1 7 3 foreground I
2 7 4 brightness I
MethodParameters:
Name Flags
r
g
b
static int calculateTopShadowFromBackground(int, int, int);
descriptor: (III)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=16, args_size=3
start local 0 // int r
start local 1 // int g
start local 2 // int b
0: .line 163
iload 0 /* r */
bipush 8
ishl
istore 5 /* br */
start local 5 // int br
1: .line 164
iload 1 /* g */
bipush 8
ishl
istore 6 /* bg */
start local 6 // int bg
2: .line 165
iload 2 /* b */
bipush 8
ishl
istore 7 /* bb */
start local 7 // int bb
3: .line 167
iload 0 /* r */
iload 1 /* g */
iload 2 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.brightness:(III)I
istore 8 /* brightness */
start local 8 // int brightness
4: .line 173
iload 8 /* brightness */
sipush 13100
if_icmpge 27
5: .line 176
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
6: .line 177
fload 3 /* color_value */
ldc 50.0
7: .line 178
ldc 65535.0
fload 3 /* color_value */
fsub
8: .line 177
fmul
9: .line 178
ldc 100.0
10: .line 177
fdiv
fadd
fstore 3 /* color_value */
11: .line 179
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
12: .line 181
iload 6 /* bg */
i2f
fstore 3 /* color_value */
13: .line 182
fload 3 /* color_value */
ldc 50.0
14: .line 183
ldc 65535.0
fload 3 /* color_value */
fsub
15: .line 182
fmul
16: .line 183
ldc 100.0
17: .line 182
fdiv
fadd
fstore 3 /* color_value */
18: .line 184
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
19: .line 186
iload 7 /* bb */
i2f
fstore 3 /* color_value */
20: .line 187
fload 3 /* color_value */
ldc 50.0
21: .line 188
ldc 65535.0
fload 3 /* color_value */
fsub
22: .line 187
fmul
23: .line 188
ldc 100.0
24: .line 187
fdiv
fadd
fstore 3 /* color_value */
25: .line 189
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
26: .line 190
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
27: .line 191
StackMap locals: int int int top top int int int int
StackMap stack:
iload 8 /* brightness */
ldc 60915
if_icmple 38
28: .line 194
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
29: .line 195
fload 3 /* color_value */
fload 3 /* color_value */
ldc 20.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
30: .line 196
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
31: .line 198
iload 6 /* bg */
i2f
fstore 3 /* color_value */
32: .line 199
fload 3 /* color_value */
fload 3 /* color_value */
ldc 20.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
33: .line 200
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
34: .line 202
iload 7 /* bb */
i2f
fstore 3 /* color_value */
35: .line 203
fload 3 /* color_value */
fload 3 /* color_value */
ldc 20.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
36: .line 204
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
37: .line 206
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
38: .line 209
StackMap locals:
StackMap stack:
bipush 50
iload 8 /* brightness */
39: .line 210
bipush 10
imul
40: .line 211
ldc 65535
idiv
41: .line 209
iadd
i2f
fstore 4 /* f */
start local 4 // float f
42: .line 213
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
43: .line 214
fload 3 /* color_value */
fload 4 /* f */
ldc 65535.0
fload 3 /* color_value */
fsub
fmul
ldc 100.0
fdiv
fadd
fstore 3 /* color_value */
44: .line 215
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
45: .line 217
iload 6 /* bg */
i2f
fstore 3 /* color_value */
46: .line 218
fload 3 /* color_value */
fload 4 /* f */
ldc 65535.0
fload 3 /* color_value */
fsub
fmul
ldc 100.0
fdiv
fadd
fstore 3 /* color_value */
47: .line 219
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
48: .line 221
iload 7 /* bb */
i2f
fstore 3 /* color_value */
49: .line 222
fload 3 /* color_value */
fload 4 /* f */
ldc 65535.0
fload 3 /* color_value */
fsub
fmul
ldc 100.0
fdiv
fadd
fstore 3 /* color_value */
50: .line 223
fload 3 /* color_value */
fstore 11 /* blue */
end local 4 // float f
start local 11 // float blue
51: .line 229
StackMap locals: int int int float top int int int int float float float
StackMap stack:
fload 9 /* red */
f2i
bipush 8
ishr
istore 12 /* ired */
start local 12 // int ired
52: .line 230
fload 10 /* green */
f2i
bipush 8
ishr
istore 13 /* igreen */
start local 13 // int igreen
53: .line 231
fload 11 /* blue */
f2i
bipush 8
ishr
istore 14 /* iblue */
start local 14 // int iblue
54: .line 233
ldc -16777216
iload 12 /* ired */
bipush 16
ishl
ior
iload 13 /* igreen */
bipush 8
ishl
ior
iload 14 /* iblue */
ior
istore 15 /* ret */
start local 15 // int ret
55: .line 235
iload 15 /* ret */
ireturn
end local 15 // int ret
end local 14 // int iblue
end local 13 // int igreen
end local 12 // int ired
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 8 // int brightness
end local 7 // int bb
end local 6 // int bg
end local 5 // int br
end local 3 // float color_value
end local 2 // int b
end local 1 // int g
end local 0 // int r
LocalVariableTable:
Start End Slot Name Signature
0 56 0 r I
0 56 1 g I
0 56 2 b I
6 27 3 color_value F
29 38 3 color_value F
43 56 3 color_value F
42 51 4 f F
1 56 5 br I
2 56 6 bg I
3 56 7 bb I
4 56 8 brightness I
12 27 9 red F
31 38 9 red F
45 56 9 red F
19 27 10 green F
34 38 10 green F
48 56 10 green F
26 27 11 blue F
37 38 11 blue F
51 56 11 blue F
52 56 12 ired I
53 56 13 igreen I
54 56 14 iblue I
55 56 15 ret I
MethodParameters:
Name Flags
r
g
b
static int calculateBottomShadowFromBackground(int, int, int);
descriptor: (III)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=16, args_size=3
start local 0 // int r
start local 1 // int g
start local 2 // int b
0: .line 243
iload 0 /* r */
bipush 8
ishl
istore 5 /* br */
start local 5 // int br
1: .line 244
iload 1 /* g */
bipush 8
ishl
istore 6 /* bg */
start local 6 // int bg
2: .line 245
iload 2 /* b */
bipush 8
ishl
istore 7 /* bb */
start local 7 // int bb
3: .line 247
iload 0 /* r */
iload 1 /* g */
iload 2 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.brightness:(III)I
istore 8 /* brightness */
start local 8 // int brightness
4: .line 253
iload 8 /* brightness */
sipush 13100
if_icmpge 27
5: .line 255
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
6: .line 256
fload 3 /* color_value */
ldc 30.0
7: .line 257
ldc 65535.0
fload 3 /* color_value */
fsub
8: .line 256
fmul
9: .line 257
ldc 100.0
10: .line 256
fdiv
fadd
fstore 3 /* color_value */
11: .line 258
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
12: .line 260
iload 6 /* bg */
i2f
fstore 3 /* color_value */
13: .line 261
fload 3 /* color_value */
ldc 30.0
14: .line 262
ldc 65535.0
fload 3 /* color_value */
fsub
15: .line 261
fmul
16: .line 262
ldc 100.0
17: .line 261
fdiv
fadd
fstore 3 /* color_value */
18: .line 263
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
19: .line 265
iload 7 /* bb */
i2f
fstore 3 /* color_value */
20: .line 266
fload 3 /* color_value */
ldc 30.0
21: .line 267
ldc 65535.0
fload 3 /* color_value */
fsub
22: .line 266
fmul
23: .line 267
ldc 100.0
24: .line 266
fdiv
fadd
fstore 3 /* color_value */
25: .line 268
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
26: .line 270
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
27: .line 271
StackMap locals: int int int top top int int int int
StackMap stack:
iload 8 /* brightness */
ldc 60915
if_icmple 38
28: .line 273
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
29: .line 274
fload 3 /* color_value */
fload 3 /* color_value */
ldc 40.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
30: .line 275
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
31: .line 277
iload 6 /* bg */
i2f
fstore 3 /* color_value */
32: .line 278
fload 3 /* color_value */
fload 3 /* color_value */
ldc 40.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
33: .line 279
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
34: .line 281
iload 7 /* bb */
i2f
fstore 3 /* color_value */
35: .line 282
fload 3 /* color_value */
fload 3 /* color_value */
ldc 40.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
36: .line 283
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
37: .line 285
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
38: .line 288
StackMap locals:
StackMap stack:
bipush 60
iload 8 /* brightness */
39: .line 289
bipush -20
imul
40: .line 290
ldc 65535
idiv
41: .line 288
iadd
i2f
fstore 4 /* f */
start local 4 // float f
42: .line 292
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
43: .line 293
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
44: .line 294
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
45: .line 296
iload 6 /* bg */
i2f
fstore 3 /* color_value */
46: .line 297
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
47: .line 298
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
48: .line 300
iload 7 /* bb */
i2f
fstore 3 /* color_value */
49: .line 301
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
50: .line 302
fload 3 /* color_value */
fstore 11 /* blue */
end local 4 // float f
start local 11 // float blue
51: .line 306
StackMap locals: int int int float top int int int int float float float
StackMap stack:
fload 9 /* red */
f2i
bipush 8
ishr
istore 12 /* ired */
start local 12 // int ired
52: .line 307
fload 10 /* green */
f2i
bipush 8
ishr
istore 13 /* igreen */
start local 13 // int igreen
53: .line 308
fload 11 /* blue */
f2i
bipush 8
ishr
istore 14 /* iblue */
start local 14 // int iblue
54: .line 310
ldc -16777216
iload 12 /* ired */
bipush 16
ishl
ior
iload 13 /* igreen */
bipush 8
ishl
ior
iload 14 /* iblue */
ior
istore 15 /* ret */
start local 15 // int ret
55: .line 312
iload 15 /* ret */
ireturn
end local 15 // int ret
end local 14 // int iblue
end local 13 // int igreen
end local 12 // int ired
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 8 // int brightness
end local 7 // int bb
end local 6 // int bg
end local 5 // int br
end local 3 // float color_value
end local 2 // int b
end local 1 // int g
end local 0 // int r
LocalVariableTable:
Start End Slot Name Signature
0 56 0 r I
0 56 1 g I
0 56 2 b I
6 27 3 color_value F
29 38 3 color_value F
43 56 3 color_value F
42 51 4 f F
1 56 5 br I
2 56 6 bg I
3 56 7 bb I
4 56 8 brightness I
12 27 9 red F
31 38 9 red F
45 56 9 red F
19 27 10 green F
34 38 10 green F
48 56 10 green F
26 27 11 blue F
37 38 11 blue F
51 56 11 blue F
52 56 12 ired I
53 56 13 igreen I
54 56 14 iblue I
55 56 15 ret I
MethodParameters:
Name Flags
r
g
b
static int calculateSelectFromBackground(int, int, int);
descriptor: (III)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=16, args_size=3
start local 0 // int r
start local 1 // int g
start local 2 // int b
0: .line 319
iload 0 /* r */
bipush 8
ishl
istore 5 /* br */
start local 5 // int br
1: .line 320
iload 1 /* g */
bipush 8
ishl
istore 6 /* bg */
start local 6 // int bg
2: .line 321
iload 2 /* b */
bipush 8
ishl
istore 7 /* bb */
start local 7 // int bb
3: .line 323
iload 0 /* r */
iload 1 /* g */
iload 2 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.brightness:(III)I
istore 8 /* brightness */
start local 8 // int brightness
4: .line 329
iload 8 /* brightness */
sipush 13100
if_icmpge 27
5: .line 331
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
6: .line 332
fload 3 /* color_value */
ldc 15.0
7: .line 333
ldc 65535.0
fload 3 /* color_value */
fsub
8: .line 332
fmul
9: .line 333
ldc 100.0
10: .line 332
fdiv
fadd
fstore 3 /* color_value */
11: .line 334
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
12: .line 336
iload 6 /* bg */
i2f
fstore 3 /* color_value */
13: .line 337
fload 3 /* color_value */
ldc 15.0
14: .line 338
ldc 65535.0
fload 3 /* color_value */
fsub
15: .line 337
fmul
16: .line 338
ldc 100.0
17: .line 337
fdiv
fadd
fstore 3 /* color_value */
18: .line 339
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
19: .line 341
iload 7 /* bb */
i2f
fstore 3 /* color_value */
20: .line 342
fload 3 /* color_value */
ldc 15.0
21: .line 343
ldc 65535.0
fload 3 /* color_value */
fsub
22: .line 342
fmul
23: .line 343
ldc 100.0
24: .line 342
fdiv
fadd
fstore 3 /* color_value */
25: .line 344
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
26: .line 346
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
27: .line 347
StackMap locals: int int int top top int int int int
StackMap stack:
iload 8 /* brightness */
ldc 60915
if_icmple 38
28: .line 349
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
29: .line 350
fload 3 /* color_value */
fload 3 /* color_value */
ldc 15.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
30: .line 351
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
31: .line 353
iload 6 /* bg */
i2f
fstore 3 /* color_value */
32: .line 354
fload 3 /* color_value */
fload 3 /* color_value */
ldc 15.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
33: .line 355
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
34: .line 357
iload 7 /* bb */
i2f
fstore 3 /* color_value */
35: .line 358
fload 3 /* color_value */
fload 3 /* color_value */
ldc 15.0
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
36: .line 359
fload 3 /* color_value */
fstore 11 /* blue */
start local 11 // float blue
37: .line 361
goto 51
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 3 // float color_value
38: .line 364
StackMap locals:
StackMap stack:
bipush 15
iload 8 /* brightness */
39: .line 365
iconst_0
imul
40: .line 366
ldc 65535
idiv
41: .line 364
iadd
i2f
fstore 4 /* f */
start local 4 // float f
42: .line 368
iload 5 /* br */
i2f
fstore 3 /* color_value */
start local 3 // float color_value
43: .line 369
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
44: .line 370
fload 3 /* color_value */
fstore 9 /* red */
start local 9 // float red
45: .line 372
iload 6 /* bg */
i2f
fstore 3 /* color_value */
46: .line 373
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
47: .line 374
fload 3 /* color_value */
fstore 10 /* green */
start local 10 // float green
48: .line 376
iload 7 /* bb */
i2f
fstore 3 /* color_value */
49: .line 377
fload 3 /* color_value */
fload 3 /* color_value */
fload 4 /* f */
fmul
ldc 100.0
fdiv
fsub
fstore 3 /* color_value */
50: .line 378
fload 3 /* color_value */
fstore 11 /* blue */
end local 4 // float f
start local 11 // float blue
51: .line 382
StackMap locals: int int int float top int int int int float float float
StackMap stack:
fload 9 /* red */
f2i
bipush 8
ishr
istore 12 /* ired */
start local 12 // int ired
52: .line 383
fload 10 /* green */
f2i
bipush 8
ishr
istore 13 /* igreen */
start local 13 // int igreen
53: .line 384
fload 11 /* blue */
f2i
bipush 8
ishr
istore 14 /* iblue */
start local 14 // int iblue
54: .line 386
ldc -16777216
iload 12 /* ired */
bipush 16
ishl
ior
iload 13 /* igreen */
bipush 8
ishl
ior
iload 14 /* iblue */
ior
istore 15 /* ret */
start local 15 // int ret
55: .line 388
iload 15 /* ret */
ireturn
end local 15 // int ret
end local 14 // int iblue
end local 13 // int igreen
end local 12 // int ired
end local 11 // float blue
end local 10 // float green
end local 9 // float red
end local 8 // int brightness
end local 7 // int bb
end local 6 // int bg
end local 5 // int br
end local 3 // float color_value
end local 2 // int b
end local 1 // int g
end local 0 // int r
LocalVariableTable:
Start End Slot Name Signature
0 56 0 r I
0 56 1 g I
0 56 2 b I
6 27 3 color_value F
29 38 3 color_value F
43 56 3 color_value F
42 51 4 f F
1 56 5 br I
2 56 6 bg I
3 56 7 bb I
4 56 8 brightness I
12 27 9 red F
31 38 9 red F
45 56 9 red F
19 27 10 green F
34 38 10 green F
48 56 10 green F
26 27 11 blue F
37 38 11 blue F
51 56 11 blue F
52 56 12 ired I
53 56 13 igreen I
54 56 14 iblue I
55 56 15 ret I
MethodParameters:
Name Flags
r
g
b
static void loadSystemColorsForCDE(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=18, args_size=1
start local 0 // int[] systemColors
0: .line 393
ldc "RESOURCE_MANAGER"
invokestatic sun.awt.X11.XAtom.get:(Ljava/lang/String;)Lsun/awt/X11/XAtom;
astore 1 /* resourceManager */
start local 1 // sun.awt.X11.XAtom resourceManager
1: .line 395
aload 1 /* resourceManager */
invokestatic sun.awt.X11.XToolkit.getDefaultRootWindow:()J
invokevirtual sun.awt.X11.XAtom.getProperty:(J)Ljava/lang/String;
astore 2 /* resourceString */
start local 2 // java.lang.String resourceString
2: .line 397
aload 2 /* resourceString */
ldc "ColorPalette:"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 3 /* index */
start local 3 // int index
3: .line 398
aload 2 /* resourceString */
invokevirtual java.lang.String.length:()I
istore 4 /* len */
start local 4 // int len
4: .line 399
goto 6
StackMap locals: int[] sun.awt.X11.XAtom java.lang.String int int
StackMap stack:
5: iinc 3 /* index */ 1
StackMap locals:
StackMap stack:
6: iload 3 /* index */
iload 4 /* len */
if_icmpge 7
aload 2 /* resourceString */
iload 3 /* index */
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 5
7: .line 400
StackMap locals:
StackMap stack:
iinc 3 /* index */ 1
8: .line 401
aload 2 /* resourceString */
iload 3 /* index */
invokevirtual java.lang.String.charAt:(I)C
bipush 9
if_icmpne 9
iinc 3 /* index */ 1
9: .line 403
StackMap locals:
StackMap stack:
aload 2 /* resourceString */
iload 3 /* index */
aload 2 /* resourceString */
ldc "\n"
iload 3 /* index */
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5 /* paletteFile */
start local 5 // java.lang.String paletteFile
10: .line 409
new java.lang.StringBuilder
dup
ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/.dt/palettes/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5 /* paletteFile */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6 /* paletteFilePath */
start local 6 // java.lang.String paletteFilePath
11: .line 411
new java.io.File
dup
aload 6 /* paletteFilePath */
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 7 /* pFile */
start local 7 // java.io.File pFile
12: .line 412
aload 7 /* pFile */
invokevirtual java.io.File.exists:()Z
ifne 17
13: .line 415
new java.lang.StringBuilder
dup
ldc "/usr/dt/palettes/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5 /* paletteFile */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6 /* paletteFilePath */
14: .line 416
new java.io.File
dup
aload 6 /* paletteFilePath */
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 7 /* pFile */
15: .line 417
aload 7 /* pFile */
invokevirtual java.io.File.exists:()Z
ifne 17
16: .line 419
new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "Could not open : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6 /* paletteFilePath */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
17: .line 422
StackMap locals: java.lang.String java.lang.String java.io.File
StackMap stack:
new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 7 /* pFile */
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 8 /* bfr */
start local 8 // java.io.BufferedReader bfr
18: .line 424
bipush 8
newarray 10
astore 9 /* colors */
start local 9 // int[] colors
19: .line 428
iconst_0
istore 15 /* i */
start local 15 // int i
20: goto 28
21: .line 429
StackMap locals: int[] sun.awt.X11.XAtom java.lang.String int int java.lang.String java.lang.String java.io.File java.io.BufferedReader int[] top top top top top int
StackMap stack:
aload 8 /* bfr */
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 13 /* temp */
start local 13 // java.lang.String temp
22: .line 430
aload 13 /* temp */
iconst_1
aload 13 /* temp */
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 14 /* color */
start local 14 // java.lang.String color
23: .line 431
aload 14 /* color */
iconst_0
iconst_4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
bipush 8
ishr
istore 10 /* r */
start local 10 // int r
24: .line 432
aload 14 /* color */
iconst_4
bipush 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
bipush 8
ishr
istore 11 /* g */
start local 11 // int g
25: .line 433
aload 14 /* color */
bipush 8
bipush 12
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
bipush 8
ishr
istore 12 /* b */
start local 12 // int b
26: .line 434
aload 9 /* colors */
iload 15 /* i */
ldc -16777216
iload 10 /* r */
bipush 16
ishl
ior
iload 11 /* g */
bipush 8
ishl
ior
iload 12 /* b */
ior
iastore
27: .line 428
iinc 15 /* i */ 1
end local 14 // java.lang.String color
end local 13 // java.lang.String temp
end local 12 // int b
end local 11 // int g
end local 10 // int r
StackMap locals:
StackMap stack:
28: iload 15 /* i */
bipush 8
if_icmplt 21
end local 15 // int i
29: .line 440
invokestatic sun.awt.OSInfo.getOSType:()Lsun/awt/OSInfo$OSType;
getstatic sun.awt.OSInfo$OSType.AIX:Lsun/awt/OSInfo$OSType;
if_acmpne 30
bipush 8
goto 31
StackMap locals: int[] sun.awt.X11.XAtom java.lang.String int int java.lang.String java.lang.String java.io.File java.io.BufferedReader int[]
StackMap stack:
30: iconst_4
StackMap locals:
StackMap stack: int
31: istore 15 /* numOfColor */
start local 15 // int numOfColor
32: .line 442
aload 2 /* resourceString */
ldc "ColorUse:"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 16 /* idx */
start local 16 // int idx
33: .line 443
iload 16 /* idx */
iconst_m1
if_icmple 45
34: .line 444
goto 36
StackMap locals: int[] sun.awt.X11.XAtom java.lang.String int int java.lang.String java.lang.String java.io.File java.io.BufferedReader int[] top top top top top int int
StackMap stack:
35: iinc 16 /* idx */ 1
StackMap locals:
StackMap stack:
36: iload 16 /* idx */
iload 4 /* len */
if_icmpge 37
aload 2 /* resourceString */
iload 16 /* idx */
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 35
37: .line 445
StackMap locals:
StackMap stack:
iinc 16 /* idx */ 1
38: .line 446
aload 2 /* resourceString */
iload 16 /* idx */
invokevirtual java.lang.String.charAt:(I)C
bipush 9
if_icmpne 39
iinc 16 /* idx */ 1
39: .line 447
StackMap locals:
StackMap stack:
aload 2 /* resourceString */
iload 16 /* idx */
aload 2 /* resourceString */
ldc "\n"
iload 16 /* idx */
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 17 /* colorUse */
start local 17 // java.lang.String colorUse
40: .line 448
ldc "HIGH_COLOR"
aload 17 /* colorUse */
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 43
41: .line 449
bipush 8
istore 15 /* numOfColor */
42: .line 450
goto 45
StackMap locals: java.lang.String
StackMap stack:
43: ldc "MEDIUM_COLOR"
aload 17 /* colorUse */
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 45
44: .line 451
iconst_4
istore 15 /* numOfColor */
end local 17 // java.lang.String colorUse
45: .line 455
StackMap locals:
StackMap stack:
iconst_4
iload 15 /* numOfColor */
if_icmpne 47
46: .line 456
aload 0 /* systemColors */
aload 9 /* colors */
invokestatic sun.awt.X11.MotifColorUtilities.loadSystemColorsForCDE4:([I[I)V
goto 48
47: .line 458
StackMap locals:
StackMap stack:
aload 0 /* systemColors */
aload 9 /* colors */
invokestatic sun.awt.X11.MotifColorUtilities.loadSystemColorsForCDE8:([I[I)V
48: .line 459
StackMap locals:
StackMap stack:
return
end local 16 // int idx
end local 15 // int numOfColor
end local 9 // int[] colors
end local 8 // java.io.BufferedReader bfr
end local 7 // java.io.File pFile
end local 6 // java.lang.String paletteFilePath
end local 5 // java.lang.String paletteFile
end local 4 // int len
end local 3 // int index
end local 2 // java.lang.String resourceString
end local 1 // sun.awt.X11.XAtom resourceManager
end local 0 // int[] systemColors
LocalVariableTable:
Start End Slot Name Signature
0 49 0 systemColors [I
1 49 1 resourceManager Lsun/awt/X11/XAtom;
2 49 2 resourceString Ljava/lang/String;
3 49 3 index I
4 49 4 len I
10 49 5 paletteFile Ljava/lang/String;
11 49 6 paletteFilePath Ljava/lang/String;
12 49 7 pFile Ljava/io/File;
18 49 8 bfr Ljava/io/BufferedReader;
19 49 9 colors [I
24 28 10 r I
25 28 11 g I
26 28 12 b I
22 28 13 temp Ljava/lang/String;
23 28 14 color Ljava/lang/String;
20 29 15 i I
32 49 15 numOfColor I
33 49 16 idx I
40 45 17 colorUse Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
systemColors
private static void loadSystemColorsForCDE4(int[], int[]);
descriptor: ([I[I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=11, args_size=2
start local 0 // int[] systemColors
start local 1 // int[] colors
0: .line 463
aload 0 /* systemColors */
iconst_1
aload 1 /* colors */
iconst_0
iaload
iastore
1: .line 464
aload 0 /* systemColors */
iconst_3
aload 1 /* colors */
iconst_0
iaload
iastore
2: .line 466
aload 0 /* systemColors */
iconst_4
aload 1 /* colors */
iconst_1
iaload
iastore
3: .line 467
aload 0 /* systemColors */
bipush 6
aload 1 /* colors */
iconst_1
iaload
iastore
4: .line 469
aload 0 /* systemColors */
bipush 7
aload 1 /* colors */
iconst_1
iaload
iastore
5: .line 471
aload 0 /* systemColors */
bipush 8
aload 1 /* colors */
iconst_1
iaload
iastore
6: .line 472
aload 0 /* systemColors */
bipush 10
aload 1 /* colors */
iconst_1
iaload
iastore
7: .line 474
aload 0 /* systemColors */
bipush 12
aload 1 /* colors */
iconst_3
iaload
iastore
8: .line 476
aload 0 /* systemColors */
bipush 23
aload 1 /* colors */
iconst_1
iaload
iastore
9: .line 477
aload 0 /* systemColors */
bipush 17
aload 1 /* colors */
iconst_1
iaload
iastore
10: .line 484
aload 1 /* colors */
iconst_0
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
start local 2 // int r
11: .line 485
aload 1 /* colors */
iconst_0
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
start local 3 // int g
12: .line 486
aload 1 /* colors */
iconst_0
iaload
sipush 255
iand
istore 4 /* b */
start local 4 // int b
13: .line 488
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 5 /* activeFore */
start local 5 // int activeFore
14: .line 490
aload 1 /* colors */
iconst_1
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
15: .line 491
aload 1 /* colors */
iconst_1
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
16: .line 492
aload 1 /* colors */
iconst_1
iaload
sipush 255
iand
istore 4 /* b */
17: .line 494
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 6 /* inactiveFore */
start local 6 // int inactiveFore
18: .line 496
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateTopShadowFromBackground:(III)I
istore 8 /* top_shadow */
start local 8 // int top_shadow
19: .line 497
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateBottomShadowFromBackground:(III)I
istore 9 /* bottom_shadow */
start local 9 // int bottom_shadow
20: .line 500
aload 1 /* colors */
iconst_3
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
21: .line 501
aload 1 /* colors */
iconst_3
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
22: .line 502
aload 1 /* colors */
iconst_3
iaload
sipush 255
iand
istore 4 /* b */
23: .line 504
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 7 /* textFore */
start local 7 // int textFore
24: .line 507
aload 0 /* systemColors */
iconst_2
iload 5 /* activeFore */
iastore
25: .line 508
aload 0 /* systemColors */
iconst_5
iload 6 /* inactiveFore */
iastore
26: .line 509
aload 0 /* systemColors */
bipush 9
iload 6 /* inactiveFore */
iastore
27: .line 510
aload 0 /* systemColors */
bipush 11
iload 6 /* inactiveFore */
iastore
28: .line 511
aload 0 /* systemColors */
bipush 13
iload 7 /* textFore */
iastore
29: .line 512
aload 0 /* systemColors */
bipush 14
ldc -16777216
iastore
30: .line 513
aload 0 /* systemColors */
bipush 15
ldc -3881788
iastore
31: .line 514
aload 0 /* systemColors */
bipush 18
iload 6 /* inactiveFore */
iastore
32: .line 515
new java.awt.Color
dup
iload 8 /* top_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 10 /* tmp */
start local 10 // java.awt.Color tmp
33: .line 516
aload 0 /* systemColors */
bipush 19
iload 8 /* top_shadow */
iastore
34: .line 517
aload 0 /* systemColors */
bipush 20
aload 10 /* tmp */
invokevirtual java.awt.Color.brighter:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
35: .line 519
new java.awt.Color
dup
iload 9 /* bottom_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 10 /* tmp */
36: .line 520
aload 0 /* systemColors */
bipush 21
iload 9 /* bottom_shadow */
iastore
37: .line 521
aload 0 /* systemColors */
bipush 22
aload 10 /* tmp */
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
38: .line 523
return
end local 10 // java.awt.Color tmp
end local 9 // int bottom_shadow
end local 8 // int top_shadow
end local 7 // int textFore
end local 6 // int inactiveFore
end local 5 // int activeFore
end local 4 // int b
end local 3 // int g
end local 2 // int r
end local 1 // int[] colors
end local 0 // int[] systemColors
LocalVariableTable:
Start End Slot Name Signature
0 39 0 systemColors [I
0 39 1 colors [I
11 39 2 r I
12 39 3 g I
13 39 4 b I
14 39 5 activeFore I
18 39 6 inactiveFore I
24 39 7 textFore I
19 39 8 top_shadow I
20 39 9 bottom_shadow I
33 39 10 tmp Ljava/awt/Color;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
systemColors
colors
private static void loadSystemColorsForCDE8(int[], int[]);
descriptor: ([I[I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=13, args_size=2
start local 0 // int[] systemColors
start local 1 // int[] colors
0: .line 527
aload 0 /* systemColors */
iconst_1
aload 1 /* colors */
iconst_0
iaload
iastore
1: .line 528
aload 0 /* systemColors */
iconst_3
aload 1 /* colors */
iconst_0
iaload
iastore
2: .line 530
aload 0 /* systemColors */
iconst_4
aload 1 /* colors */
iconst_1
iaload
iastore
3: .line 531
aload 0 /* systemColors */
bipush 6
aload 1 /* colors */
iconst_1
iaload
iastore
4: .line 533
aload 0 /* systemColors */
bipush 7
aload 1 /* colors */
iconst_4
iaload
iastore
5: .line 535
aload 0 /* systemColors */
bipush 10
aload 1 /* colors */
iconst_5
iaload
iastore
6: .line 537
aload 0 /* systemColors */
bipush 12
aload 1 /* colors */
iconst_3
iaload
iastore
7: .line 538
aload 0 /* systemColors */
bipush 15
aload 1 /* colors */
iconst_3
iaload
iastore
8: .line 540
aload 0 /* systemColors */
bipush 23
aload 1 /* colors */
iconst_4
iaload
iastore
9: .line 541
aload 0 /* systemColors */
bipush 17
aload 1 /* colors */
iconst_4
iaload
iastore
10: .line 542
aload 0 /* systemColors */
bipush 24
aload 1 /* colors */
iconst_4
iaload
iastore
11: .line 549
aload 1 /* colors */
iconst_0
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
start local 2 // int r
12: .line 550
aload 1 /* colors */
iconst_0
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
start local 3 // int g
13: .line 551
aload 1 /* colors */
iconst_0
iaload
sipush 255
iand
istore 4 /* b */
start local 4 // int b
14: .line 553
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 5 /* activeFore */
start local 5 // int activeFore
15: .line 555
aload 1 /* colors */
iconst_1
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
16: .line 556
aload 1 /* colors */
iconst_1
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
17: .line 557
aload 1 /* colors */
iconst_1
iaload
sipush 255
iand
istore 4 /* b */
18: .line 559
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 6 /* inactiveFore */
start local 6 // int inactiveFore
19: .line 561
aload 1 /* colors */
iconst_3
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
20: .line 562
aload 1 /* colors */
iconst_3
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
21: .line 563
aload 1 /* colors */
iconst_3
iaload
sipush 255
iand
istore 4 /* b */
22: .line 565
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 7 /* textFore */
start local 7 // int textFore
23: .line 567
aload 1 /* colors */
iconst_4
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
24: .line 568
aload 1 /* colors */
iconst_4
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
25: .line 569
aload 1 /* colors */
iconst_4
iaload
sipush 255
iand
istore 4 /* b */
26: .line 571
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 8 /* windowFore */
start local 8 // int windowFore
27: .line 573
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateTopShadowFromBackground:(III)I
istore 9 /* top_shadow */
start local 9 // int top_shadow
28: .line 574
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateBottomShadowFromBackground:(III)I
istore 10 /* bottom_shadow */
start local 10 // int bottom_shadow
29: .line 577
aload 1 /* colors */
iconst_5
iaload
ldc 16711680
iand
bipush 16
ishr
istore 2 /* r */
30: .line 578
aload 1 /* colors */
iconst_5
iaload
ldc 65280
iand
bipush 8
ishr
istore 3 /* g */
31: .line 579
aload 1 /* colors */
iconst_5
iaload
sipush 255
iand
istore 4 /* b */
32: .line 581
iload 2 /* r */
iload 3 /* g */
iload 4 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateForegroundFromBackground:(III)I
istore 11 /* menuFore */
start local 11 // int menuFore
33: .line 583
aload 0 /* systemColors */
iconst_2
iload 5 /* activeFore */
iastore
34: .line 584
aload 0 /* systemColors */
iconst_5
iload 6 /* inactiveFore */
iastore
35: .line 585
aload 0 /* systemColors */
bipush 8
ldc -16777216
iastore
36: .line 586
aload 0 /* systemColors */
bipush 9
iload 8 /* windowFore */
iastore
37: .line 587
aload 0 /* systemColors */
bipush 11
iload 11 /* menuFore */
iastore
38: .line 588
aload 0 /* systemColors */
bipush 13
iload 7 /* textFore */
iastore
39: .line 589
aload 0 /* systemColors */
bipush 14
iload 7 /* textFore */
iastore
40: .line 590
aload 0 /* systemColors */
bipush 18
iload 8 /* windowFore */
iastore
41: .line 591
new java.awt.Color
dup
iload 9 /* top_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 12 /* tmp */
start local 12 // java.awt.Color tmp
42: .line 592
aload 0 /* systemColors */
bipush 19
iload 9 /* top_shadow */
iastore
43: .line 593
aload 0 /* systemColors */
bipush 20
aload 12 /* tmp */
invokevirtual java.awt.Color.brighter:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
44: .line 595
new java.awt.Color
dup
iload 10 /* bottom_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 12 /* tmp */
45: .line 596
aload 0 /* systemColors */
bipush 21
iload 10 /* bottom_shadow */
iastore
46: .line 597
aload 0 /* systemColors */
bipush 22
aload 12 /* tmp */
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
47: .line 599
aload 0 /* systemColors */
bipush 25
iload 8 /* windowFore */
iastore
48: .line 601
return
end local 12 // java.awt.Color tmp
end local 11 // int menuFore
end local 10 // int bottom_shadow
end local 9 // int top_shadow
end local 8 // int windowFore
end local 7 // int textFore
end local 6 // int inactiveFore
end local 5 // int activeFore
end local 4 // int b
end local 3 // int g
end local 2 // int r
end local 1 // int[] colors
end local 0 // int[] systemColors
LocalVariableTable:
Start End Slot Name Signature
0 49 0 systemColors [I
0 49 1 colors [I
12 49 2 r I
13 49 3 g I
14 49 4 b I
15 49 5 activeFore I
19 49 6 inactiveFore I
23 49 7 textFore I
27 49 8 windowFore I
28 49 9 top_shadow I
29 49 10 bottom_shadow I
33 49 11 menuFore I
42 49 12 tmp Ljava/awt/Color;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
systemColors
colors
static void loadMotifDefaultColors(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 // int[] systemColors
0: .line 605
aload 0 /* systemColors */
bipush 7
ldc -2105377
iastore
1: .line 606
aload 0 /* systemColors */
bipush 12
iconst_m1
iastore
2: .line 607
aload 0 /* systemColors */
bipush 9
ldc -16777216
iastore
3: .line 608
aload 0 /* systemColors */
bipush 11
ldc -16777216
iastore
4: .line 609
aload 0 /* systemColors */
iconst_2
ldc -16777216
iastore
5: .line 610
aload 0 /* systemColors */
iconst_5
ldc -16777216
iastore
6: .line 611
aload 0 /* systemColors */
bipush 13
ldc -16777216
iastore
7: .line 612
aload 0 /* systemColors */
bipush 14
ldc -16777216
iastore
8: .line 613
aload 0 /* systemColors */
bipush 15
ldc -3881788
iastore
9: .line 614
aload 0 /* systemColors */
bipush 18
ldc -16777216
iastore
10: .line 615
aload 0 /* systemColors */
bipush 8
ldc -3881788
iastore
11: .line 616
aload 0 /* systemColors */
bipush 10
ldc -3881788
iastore
12: .line 617
aload 0 /* systemColors */
bipush 23
ldc -3881788
iastore
13: .line 618
aload 0 /* systemColors */
bipush 17
ldc -2105377
iastore
14: .line 620
sipush 196
istore 1 /* r */
start local 1 // int r
15: .line 621
sipush 196
istore 2 /* g */
start local 2 // int g
16: .line 622
sipush 196
istore 3 /* b */
start local 3 // int b
17: .line 625
iload 1 /* r */
iload 2 /* g */
iload 3 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateTopShadowFromBackground:(III)I
istore 4 /* top_shadow */
start local 4 // int top_shadow
18: .line 626
iload 1 /* r */
iload 2 /* g */
iload 3 /* b */
invokestatic sun.awt.X11.MotifColorUtilities.calculateBottomShadowFromBackground:(III)I
istore 5 /* bottom_shadow */
start local 5 // int bottom_shadow
19: .line 628
new java.awt.Color
dup
iload 4 /* top_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 6 /* tmp */
start local 6 // java.awt.Color tmp
20: .line 629
aload 0 /* systemColors */
bipush 19
iload 4 /* top_shadow */
iastore
21: .line 630
aload 0 /* systemColors */
bipush 20
aload 6 /* tmp */
invokevirtual java.awt.Color.brighter:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
22: .line 632
new java.awt.Color
dup
iload 5 /* bottom_shadow */
invokespecial java.awt.Color.<init>:(I)V
astore 6 /* tmp */
23: .line 633
aload 0 /* systemColors */
bipush 21
iload 5 /* bottom_shadow */
iastore
24: .line 634
aload 0 /* systemColors */
bipush 22
aload 6 /* tmp */
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
invokevirtual java.awt.Color.getRGB:()I
iastore
25: .line 636
return
end local 6 // java.awt.Color tmp
end local 5 // int bottom_shadow
end local 4 // int top_shadow
end local 3 // int b
end local 2 // int g
end local 1 // int r
end local 0 // int[] systemColors
LocalVariableTable:
Start End Slot Name Signature
0 26 0 systemColors [I
15 26 1 r I
16 26 2 g I
17 26 3 b I
18 26 4 top_shadow I
19 26 5 bottom_shadow I
20 26 6 tmp Ljava/awt/Color;
MethodParameters:
Name Flags
systemColors
static void loadSystemColors(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 // int[] systemColors
0: .line 640
ldc "Linux"
new sun.security.action.GetPropertyAction
dup
ldc "os.name"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: .line 641
aload 0 /* systemColors */
invokestatic sun.awt.X11.MotifColorUtilities.loadMotifDefaultColors:([I)V
2: .line 642
goto 7
3: .line 646
StackMap locals:
StackMap stack:
aload 0 /* systemColors */
invokestatic sun.awt.X11.MotifColorUtilities.loadSystemColorsForCDE:([I)V
4: .line 647
goto 7
5: .line 648
StackMap locals:
StackMap stack: java.lang.Exception
pop
6: .line 650
aload 0 /* systemColors */
invokestatic sun.awt.X11.MotifColorUtilities.loadMotifDefaultColors:([I)V
7: .line 653
StackMap locals:
StackMap stack:
return
end local 0 // int[] systemColors
LocalVariableTable:
Start End Slot Name Signature
0 8 0 systemColors [I
Exception table:
from to target type
3 4 5 Class java.lang.Exception
MethodParameters:
Name Flags
systemColors
}
SourceFile: "MotifColorUtilities.java"
InnerClasses:
public final OSType = sun.awt.OSInfo$OSType of sun.awt.OSInfo