-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectColorModel.swift
More file actions
615 lines (427 loc) · 26.8 KB
/
DirectColorModel.swift
File metadata and controls
615 lines (427 loc) · 26.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.awt.image.DirectColorModel ///
open class DirectColorModel: PackedColorModel {
public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var DirectColorModelJNIClass: jclass?
/// private int java.awt.image.DirectColorModel.alpha_mask
/// private int java.awt.image.DirectColorModel.alpha_offset
/// private int java.awt.image.DirectColorModel.alpha_scale
/// private int java.awt.image.DirectColorModel.blue_mask
/// private int java.awt.image.DirectColorModel.blue_offset
/// private int java.awt.image.DirectColorModel.blue_scale
/// private short[] java.awt.image.DirectColorModel.fromsRGB8LUT16
/// private byte[] java.awt.image.DirectColorModel.fromsRGB8LUT8
/// private int java.awt.image.DirectColorModel.green_mask
/// private int java.awt.image.DirectColorModel.green_offset
/// private int java.awt.image.DirectColorModel.green_scale
/// private boolean java.awt.image.DirectColorModel.is_LinearRGB
/// private int java.awt.image.DirectColorModel.lRGBprecision
/// private int java.awt.image.DirectColorModel.red_mask
/// private int java.awt.image.DirectColorModel.red_offset
/// private int java.awt.image.DirectColorModel.red_scale
/// private byte[] java.awt.image.DirectColorModel.tosRGB8LUT
/// int[] java.awt.image.PackedColorModel.maskArray
// Skipping field: true false false false false false
/// int[] java.awt.image.PackedColorModel.maskOffsets
// Skipping field: true false false false false false
/// float[] java.awt.image.PackedColorModel.scaleFactors
// Skipping field: true false false false false false
/// private static java.awt.image.ColorModel java.awt.image.ColorModel.RGBdefault
/// static java.util.Map java.awt.image.ColorModel.g16Tos8Map
// Skipping field: true false false false false false
/// static java.util.Map java.awt.image.ColorModel.g8Tos8Map
// Skipping field: true false false false false false
/// static byte[] java.awt.image.ColorModel.l16Tos8
// Skipping field: true false false false false false
/// static byte[] java.awt.image.ColorModel.l8Tos8
// Skipping field: true false false false false false
/// static java.util.Map java.awt.image.ColorModel.lg16Toog16Map
// Skipping field: true false false false false false
/// static java.util.Map java.awt.image.ColorModel.lg16Toog8Map
// Skipping field: true false false false false false
/// private static boolean java.awt.image.ColorModel.loaded
/// static short[] java.awt.image.ColorModel.s8Tol16
// Skipping field: true false false false false false
/// static byte[] java.awt.image.ColorModel.s8Tol8
// Skipping field: true false false false false false
/// java.awt.color.ColorSpace java.awt.image.ColorModel.colorSpace
// Skipping field: true false false false false false
/// int java.awt.image.ColorModel.colorSpaceType
// Skipping field: true false false false false false
/// boolean java.awt.image.ColorModel.isAlphaPremultiplied
// Skipping field: true false false false false false
/// boolean java.awt.image.ColorModel.is_sRGB
// Skipping field: true false false false false false
/// int java.awt.image.ColorModel.maxBits
// Skipping field: true false false false false false
/// int[] java.awt.image.ColorModel.nBits
// Skipping field: true false false false false false
/// int java.awt.image.ColorModel.numColorComponents
// Skipping field: true false false false false false
/// int java.awt.image.ColorModel.numComponents
// Skipping field: true false false false false false
/// private long java.awt.image.ColorModel.pData
/// protected int java.awt.image.ColorModel.pixel_bits
private static var pixel_bits_FieldID: jfieldID?
override open var pixel_bits: Int {
get {
let __value = JNIField.GetIntField( fieldName: "pixel_bits", fieldType: "I", fieldCache: &DirectColorModel.pixel_bits_FieldID, object: javaObject )
return Int(__value)
}
set(newValue) {
var __locals = [jobject]()
let __value = jvalue( i: jint(newValue) )
JNIField.SetIntField( fieldName: "pixel_bits", fieldType: "I", fieldCache: &DirectColorModel.pixel_bits_FieldID, object: javaObject, value: __value.i, locals: &__locals )
}
}
/// boolean java.awt.image.ColorModel.supportsAlpha
// Skipping field: true false false false false false
/// protected int java.awt.image.ColorModel.transferType
private static var transferType_FieldID: jfieldID?
override open var transferType: Int {
get {
let __value = JNIField.GetIntField( fieldName: "transferType", fieldType: "I", fieldCache: &DirectColorModel.transferType_FieldID, object: javaObject )
return Int(__value)
}
set(newValue) {
var __locals = [jobject]()
let __value = jvalue( i: jint(newValue) )
JNIField.SetIntField( fieldName: "transferType", fieldType: "I", fieldCache: &DirectColorModel.transferType_FieldID, object: javaObject, value: __value.i, locals: &__locals )
}
}
/// int java.awt.image.ColorModel.transparency
// Skipping field: true false false false false false
/// public static final int java.awt.Transparency.BITMASK
// Skipping field: false true false false false false
/// public static final int java.awt.Transparency.OPAQUE
// Skipping field: false true false false false false
/// public static final int java.awt.Transparency.TRANSLUCENT
// Skipping field: false true false false false false
/// public java.awt.image.DirectColorModel(java.awt.color.ColorSpace,int,int,int,int,int,boolean,int)
private static var new_MethodID_1: jmethodID?
public convenience init( space: ColorSpace?, bits: Int, rmask: Int, gmask: Int, bmask: Int, amask: Int, isAlphaPremultiplied: Bool, transferType: Int ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 8 )
__args[0] = JNIType.toJava( value: space, locals: &__locals )
__args[1] = jvalue( i: jint(bits) )
__args[2] = jvalue( i: jint(rmask) )
__args[3] = jvalue( i: jint(gmask) )
__args[4] = jvalue( i: jint(bmask) )
__args[5] = jvalue( i: jint(amask) )
__args[6] = jvalue( z: jboolean(isAlphaPremultiplied ? JNI_TRUE : JNI_FALSE) )
__args[7] = jvalue( i: jint(transferType) )
let __object = JNIMethod.NewObject( className: "java/awt/image/DirectColorModel", classCache: &DirectColorModel.DirectColorModelJNIClass, methodSig: "(Ljava/awt/color/ColorSpace;IIIIIZI)V", methodCache: &DirectColorModel.new_MethodID_1, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _space: ColorSpace?, _ _bits: Int, _ _rmask: Int, _ _gmask: Int, _ _bmask: Int, _ _amask: Int, _ _isAlphaPremultiplied: Bool, _ _transferType: Int ) {
self.init( space: _space, bits: _bits, rmask: _rmask, gmask: _gmask, bmask: _bmask, amask: _amask, isAlphaPremultiplied: _isAlphaPremultiplied, transferType: _transferType )
}
/// public java.awt.image.DirectColorModel(int,int,int,int)
private static var new_MethodID_2: jmethodID?
public convenience init( bits: Int, rmask: Int, gmask: Int, bmask: Int ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 4 )
__args[0] = jvalue( i: jint(bits) )
__args[1] = jvalue( i: jint(rmask) )
__args[2] = jvalue( i: jint(gmask) )
__args[3] = jvalue( i: jint(bmask) )
let __object = JNIMethod.NewObject( className: "java/awt/image/DirectColorModel", classCache: &DirectColorModel.DirectColorModelJNIClass, methodSig: "(IIII)V", methodCache: &DirectColorModel.new_MethodID_2, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _bits: Int, _ _rmask: Int, _ _gmask: Int, _ _bmask: Int ) {
self.init( bits: _bits, rmask: _rmask, gmask: _gmask, bmask: _bmask )
}
/// public java.awt.image.DirectColorModel(int,int,int,int,int)
private static var new_MethodID_3: jmethodID?
public convenience init( bits: Int, rmask: Int, gmask: Int, bmask: Int, amask: Int ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 5 )
__args[0] = jvalue( i: jint(bits) )
__args[1] = jvalue( i: jint(rmask) )
__args[2] = jvalue( i: jint(gmask) )
__args[3] = jvalue( i: jint(bmask) )
__args[4] = jvalue( i: jint(amask) )
let __object = JNIMethod.NewObject( className: "java/awt/image/DirectColorModel", classCache: &DirectColorModel.DirectColorModelJNIClass, methodSig: "(IIIII)V", methodCache: &DirectColorModel.new_MethodID_3, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _bits: Int, _ _rmask: Int, _ _gmask: Int, _ _bmask: Int, _ _amask: Int ) {
self.init( bits: _bits, rmask: _rmask, gmask: _gmask, bmask: _bmask, amask: _amask )
}
/// public final java.awt.image.ColorModel java.awt.image.DirectColorModel.coerceData(java.awt.image.WritableRaster,boolean)
private static var coerceData_MethodID_4: jmethodID?
open func coerceData( raster: WritableRaster?, isAlphaPremultiplied: Bool ) -> ColorModel! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: raster, locals: &__locals )
__args[1] = jvalue( z: jboolean(isAlphaPremultiplied ? JNI_TRUE : JNI_FALSE) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "coerceData", methodSig: "(Ljava/awt/image/WritableRaster;Z)Ljava/awt/image/ColorModel;", methodCache: &DirectColorModel.coerceData_MethodID_4, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? ColorModel( javaObject: __return ) : nil
}
override open func coerceData( _ _raster: WritableRaster?, _ _isAlphaPremultiplied: Bool ) -> ColorModel! {
return coerceData( raster: _raster, isAlphaPremultiplied: _isAlphaPremultiplied )
}
/// public final java.awt.image.WritableRaster java.awt.image.DirectColorModel.createCompatibleWritableRaster(int,int)
private static var createCompatibleWritableRaster_MethodID_5: jmethodID?
open func createCompatibleWritableRaster( w: Int, h: Int ) -> WritableRaster! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( i: jint(w) )
__args[1] = jvalue( i: jint(h) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "createCompatibleWritableRaster", methodSig: "(II)Ljava/awt/image/WritableRaster;", methodCache: &DirectColorModel.createCompatibleWritableRaster_MethodID_5, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? WritableRaster( javaObject: __return ) : nil
}
override open func createCompatibleWritableRaster( _ _w: Int, _ _h: Int ) -> WritableRaster! {
return createCompatibleWritableRaster( w: _w, h: _h )
}
/// public final int java.awt.image.DirectColorModel.getAlpha(int)
private static var getAlpha_MethodID_6: jmethodID?
open func getAlpha( pixel: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(pixel) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getAlpha", methodSig: "(I)I", methodCache: &DirectColorModel.getAlpha_MethodID_6, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getAlpha( _ _pixel: Int ) -> Int {
return getAlpha( pixel: _pixel )
}
/// public int java.awt.image.DirectColorModel.getAlpha(java.lang.Object)
private static var getAlpha_MethodID_7: jmethodID?
open func getAlpha( inData: java_swift.JavaObject? ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: inData, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getAlpha", methodSig: "(Ljava/lang/Object;)I", methodCache: &DirectColorModel.getAlpha_MethodID_7, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getAlpha( _ _inData: java_swift.JavaObject? ) -> Int {
return getAlpha( inData: _inData )
}
/// public final int java.awt.image.DirectColorModel.getAlphaMask()
private static var getAlphaMask_MethodID_8: jmethodID?
open func getAlphaMask() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getAlphaMask", methodSig: "()I", methodCache: &DirectColorModel.getAlphaMask_MethodID_8, args: &__args, locals: &__locals )
return Int(__return)
}
/// public final int java.awt.image.DirectColorModel.getBlue(int)
private static var getBlue_MethodID_9: jmethodID?
open func getBlue( pixel: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(pixel) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getBlue", methodSig: "(I)I", methodCache: &DirectColorModel.getBlue_MethodID_9, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getBlue( _ _pixel: Int ) -> Int {
return getBlue( pixel: _pixel )
}
/// public int java.awt.image.DirectColorModel.getBlue(java.lang.Object)
private static var getBlue_MethodID_10: jmethodID?
open func getBlue( inData: java_swift.JavaObject? ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: inData, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getBlue", methodSig: "(Ljava/lang/Object;)I", methodCache: &DirectColorModel.getBlue_MethodID_10, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getBlue( _ _inData: java_swift.JavaObject? ) -> Int {
return getBlue( inData: _inData )
}
/// public final int java.awt.image.DirectColorModel.getBlueMask()
private static var getBlueMask_MethodID_11: jmethodID?
open func getBlueMask() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getBlueMask", methodSig: "()I", methodCache: &DirectColorModel.getBlueMask_MethodID_11, args: &__args, locals: &__locals )
return Int(__return)
}
/// public final int[] java.awt.image.DirectColorModel.getComponents(int,int[],int)
private static var getComponents_MethodID_12: jmethodID?
open func getComponents( pixel: Int, components: [Int32]?, offset: Int ) -> [Int32]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = jvalue( i: jint(pixel) )
__args[1] = JNIType.toJava( value: components, locals: &__locals )
__args[2] = jvalue( i: jint(offset) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getComponents", methodSig: "(I[II)[I", methodCache: &DirectColorModel.getComponents_MethodID_12, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [Int32].self, from: __return )
}
override open func getComponents( _ _pixel: Int, _ _components: [Int32]?, _ _offset: Int ) -> [Int32]! {
return getComponents( pixel: _pixel, components: _components, offset: _offset )
}
/// public final int[] java.awt.image.DirectColorModel.getComponents(java.lang.Object,int[],int)
private static var getComponents_MethodID_13: jmethodID?
open func getComponents( pixel: java_swift.JavaObject?, components: [Int32]?, offset: Int ) -> [Int32]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = JNIType.toJava( value: pixel, locals: &__locals )
__args[1] = JNIType.toJava( value: components, locals: &__locals )
__args[2] = jvalue( i: jint(offset) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getComponents", methodSig: "(Ljava/lang/Object;[II)[I", methodCache: &DirectColorModel.getComponents_MethodID_13, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [Int32].self, from: __return )
}
override open func getComponents( _ _pixel: java_swift.JavaObject?, _ _components: [Int32]?, _ _offset: Int ) -> [Int32]! {
return getComponents( pixel: _pixel, components: _components, offset: _offset )
}
/// public int java.awt.image.DirectColorModel.getDataElement(int[],int)
private static var getDataElement_MethodID_14: jmethodID?
open func getDataElement( components: [Int32]?, offset: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: components, locals: &__locals )
__args[1] = jvalue( i: jint(offset) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getDataElement", methodSig: "([II)I", methodCache: &DirectColorModel.getDataElement_MethodID_14, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getDataElement( _ _components: [Int32]?, _ _offset: Int ) -> Int {
return getDataElement( components: _components, offset: _offset )
}
/// public java.lang.Object java.awt.image.DirectColorModel.getDataElements(int,java.lang.Object)
private static var getDataElements_MethodID_15: jmethodID?
open func getDataElements( rgb: Int, pixel: java_swift.JavaObject? ) -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( i: jint(rgb) )
__args[1] = JNIType.toJava( value: pixel, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDataElements", methodSig: "(ILjava/lang/Object;)Ljava/lang/Object;", methodCache: &DirectColorModel.getDataElements_MethodID_15, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil
}
override open func getDataElements( _ _rgb: Int, _ _pixel: java_swift.JavaObject? ) -> java_swift.JavaObject! {
return getDataElements( rgb: _rgb, pixel: _pixel )
}
/// public java.lang.Object java.awt.image.DirectColorModel.getDataElements(int[],int,java.lang.Object)
private static var getDataElements_MethodID_16: jmethodID?
open func getDataElements( components: [Int32]?, offset: Int, obj: java_swift.JavaObject? ) -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = JNIType.toJava( value: components, locals: &__locals )
__args[1] = jvalue( i: jint(offset) )
__args[2] = JNIType.toJava( value: obj, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDataElements", methodSig: "([IILjava/lang/Object;)Ljava/lang/Object;", methodCache: &DirectColorModel.getDataElements_MethodID_16, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil
}
override open func getDataElements( _ _components: [Int32]?, _ _offset: Int, _ _obj: java_swift.JavaObject? ) -> java_swift.JavaObject! {
return getDataElements( components: _components, offset: _offset, obj: _obj )
}
/// private float[] java.awt.image.DirectColorModel.getDefaultRGBComponents(int)
/// public final int java.awt.image.DirectColorModel.getGreen(int)
private static var getGreen_MethodID_17: jmethodID?
open func getGreen( pixel: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(pixel) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getGreen", methodSig: "(I)I", methodCache: &DirectColorModel.getGreen_MethodID_17, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getGreen( _ _pixel: Int ) -> Int {
return getGreen( pixel: _pixel )
}
/// public int java.awt.image.DirectColorModel.getGreen(java.lang.Object)
private static var getGreen_MethodID_18: jmethodID?
open func getGreen( inData: java_swift.JavaObject? ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: inData, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getGreen", methodSig: "(Ljava/lang/Object;)I", methodCache: &DirectColorModel.getGreen_MethodID_18, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getGreen( _ _inData: java_swift.JavaObject? ) -> Int {
return getGreen( inData: _inData )
}
/// public final int java.awt.image.DirectColorModel.getGreenMask()
private static var getGreenMask_MethodID_19: jmethodID?
open func getGreenMask() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getGreenMask", methodSig: "()I", methodCache: &DirectColorModel.getGreenMask_MethodID_19, args: &__args, locals: &__locals )
return Int(__return)
}
/// public final int java.awt.image.DirectColorModel.getRGB(int)
private static var getRGB_MethodID_20: jmethodID?
open func getRGB( pixel: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(pixel) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getRGB", methodSig: "(I)I", methodCache: &DirectColorModel.getRGB_MethodID_20, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getRGB( _ _pixel: Int ) -> Int {
return getRGB( pixel: _pixel )
}
/// public int java.awt.image.DirectColorModel.getRGB(java.lang.Object)
private static var getRGB_MethodID_21: jmethodID?
open func getRGB( inData: java_swift.JavaObject? ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: inData, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getRGB", methodSig: "(Ljava/lang/Object;)I", methodCache: &DirectColorModel.getRGB_MethodID_21, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getRGB( _ _inData: java_swift.JavaObject? ) -> Int {
return getRGB( inData: _inData )
}
/// public final int java.awt.image.DirectColorModel.getRed(int)
private static var getRed_MethodID_22: jmethodID?
open func getRed( pixel: Int ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(pixel) )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getRed", methodSig: "(I)I", methodCache: &DirectColorModel.getRed_MethodID_22, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getRed( _ _pixel: Int ) -> Int {
return getRed( pixel: _pixel )
}
/// public int java.awt.image.DirectColorModel.getRed(java.lang.Object)
private static var getRed_MethodID_23: jmethodID?
open func getRed( inData: java_swift.JavaObject? ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: inData, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getRed", methodSig: "(Ljava/lang/Object;)I", methodCache: &DirectColorModel.getRed_MethodID_23, args: &__args, locals: &__locals )
return Int(__return)
}
override open func getRed( _ _inData: java_swift.JavaObject? ) -> Int {
return getRed( inData: _inData )
}
/// public final int java.awt.image.DirectColorModel.getRedMask()
private static var getRedMask_MethodID_24: jmethodID?
open func getRedMask() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getRedMask", methodSig: "()I", methodCache: &DirectColorModel.getRedMask_MethodID_24, args: &__args, locals: &__locals )
return Int(__return)
}
/// private int java.awt.image.DirectColorModel.getsRGBComponentFromLinearRGB(int,int)
/// private int java.awt.image.DirectColorModel.getsRGBComponentFromsRGB(int,int)
/// public boolean java.awt.image.DirectColorModel.isCompatibleRaster(java.awt.image.Raster)
private static var isCompatibleRaster_MethodID_25: jmethodID?
open func isCompatibleRaster( raster: Raster? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: raster, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isCompatibleRaster", methodSig: "(Ljava/awt/image/Raster;)Z", methodCache: &DirectColorModel.isCompatibleRaster_MethodID_25, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
override open func isCompatibleRaster( _ _raster: Raster? ) -> Bool {
return isCompatibleRaster( raster: _raster )
}
/// private void java.awt.image.DirectColorModel.setFields()
/// public java.lang.String java.awt.image.DirectColorModel.toString()
// Skipping method: false true false false false
}