GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java_awt/Sources/CubicCurve2D.swift at master · SwiftJava/java_awt Expand file tree/ Copy pathCubicCurve2D.swiftMore file actions 662 lines (483 loc) · 31.2 KB / Copy pathCubicCurve2D.swiftFile metadata and controls662 lines (483 loc) · 31.2 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 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 import java_swift import java_lang /// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' /// /// class java.awt.geom.CubicCurve2D /// open class CubicCurve2D: java_swift.JavaObject, Shape, java_lang.Cloneable { public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) { self.init( javaObject: nil ) if !object.validDownCast( toJavaClass: "java.awt.geom.CubicCurve2D", file, line ) { return nil } object.withJavaObject { self.javaObject = $0 } } private static var CubicCurve2DJNIClass: jclass? /// protected java.awt.geom.CubicCurve2D() private static var new_MethodID_1: jmethodID? public convenience init() { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __object = JNIMethod.NewObject( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2D.CubicCurve2DJNIClass, methodSig: "()V", methodCache: &CubicCurve2D.new_MethodID_1, args: &__args, locals: &__locals ) self.init( javaObject: __object ) JNI.DeleteLocalRef( __object ) } /// private static double java.awt.geom.CubicCurve2D.bisectRoot(double[],double,double) /// private static double java.awt.geom.CubicCurve2D.bisectRootWithHint(double[],double,double,double) /// private static int java.awt.geom.CubicCurve2D.fixRoots(double[],double[],int) /// public static double java.awt.geom.CubicCurve2D.getFlatness(double,double,double,double,double,double,double,double) private static var getFlatness_MethodID_2: jmethodID? open class func getFlatness( x1: Double, y1: Double, ctrlx1: Double, ctrly1: Double, ctrlx2: Double, ctrly2: Double, x2: Double, y2: Double ) -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 8 ) __args[0] = jvalue( d: x1 ) __args[1] = jvalue( d: y1 ) __args[2] = jvalue( d: ctrlx1 ) __args[3] = jvalue( d: ctrly1 ) __args[4] = jvalue( d: ctrlx2 ) __args[5] = jvalue( d: ctrly2 ) __args[6] = jvalue( d: x2 ) __args[7] = jvalue( d: y2 ) let __return = JNIMethod.CallStaticDoubleMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "getFlatness", methodSig: "(DDDDDDDD)D", methodCache: &getFlatness_MethodID_2, args: &__args, locals: &__locals ) return __return } open class func getFlatness( _ _x1: Double, _ _y1: Double, _ _ctrlx1: Double, _ _ctrly1: Double, _ _ctrlx2: Double, _ _ctrly2: Double, _ _x2: Double, _ _y2: Double ) -> Double { return getFlatness( x1: _x1, y1: _y1, ctrlx1: _ctrlx1, ctrly1: _ctrly1, ctrlx2: _ctrlx2, ctrly2: _ctrly2, x2: _x2, y2: _y2 ) } /// public static double java.awt.geom.CubicCurve2D.getFlatness(double[],int) private static var getFlatness_MethodID_3: jmethodID? open class func getFlatness( coords: [Double]?, offset: Int ) -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: coords, locals: &__locals ) __args[1] = jvalue( i: jint(offset) ) let __return = JNIMethod.CallStaticDoubleMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "getFlatness", methodSig: "([DI)D", methodCache: &getFlatness_MethodID_3, args: &__args, locals: &__locals ) return __return } open class func getFlatness( _ _coords: [Double]?, _ _offset: Int ) -> Double { return getFlatness( coords: _coords, offset: _offset ) } /// public static double java.awt.geom.CubicCurve2D.getFlatnessSq(double,double,double,double,double,double,double,double) private static var getFlatnessSq_MethodID_4: jmethodID? open class func getFlatnessSq( x1: Double, y1: Double, ctrlx1: Double, ctrly1: Double, ctrlx2: Double, ctrly2: Double, x2: Double, y2: Double ) -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 8 ) __args[0] = jvalue( d: x1 ) __args[1] = jvalue( d: y1 ) __args[2] = jvalue( d: ctrlx1 ) __args[3] = jvalue( d: ctrly1 ) __args[4] = jvalue( d: ctrlx2 ) __args[5] = jvalue( d: ctrly2 ) __args[6] = jvalue( d: x2 ) __args[7] = jvalue( d: y2 ) let __return = JNIMethod.CallStaticDoubleMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "getFlatnessSq", methodSig: "(DDDDDDDD)D", methodCache: &getFlatnessSq_MethodID_4, args: &__args, locals: &__locals ) return __return } open class func getFlatnessSq( _ _x1: Double, _ _y1: Double, _ _ctrlx1: Double, _ _ctrly1: Double, _ _ctrlx2: Double, _ _ctrly2: Double, _ _x2: Double, _ _y2: Double ) -> Double { return getFlatnessSq( x1: _x1, y1: _y1, ctrlx1: _ctrlx1, ctrly1: _ctrly1, ctrlx2: _ctrlx2, ctrly2: _ctrly2, x2: _x2, y2: _y2 ) } /// public static double java.awt.geom.CubicCurve2D.getFlatnessSq(double[],int) private static var getFlatnessSq_MethodID_5: jmethodID? open class func getFlatnessSq( coords: [Double]?, offset: Int ) -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: coords, locals: &__locals ) __args[1] = jvalue( i: jint(offset) ) let __return = JNIMethod.CallStaticDoubleMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "getFlatnessSq", methodSig: "([DI)D", methodCache: &getFlatnessSq_MethodID_5, args: &__args, locals: &__locals ) return __return } open class func getFlatnessSq( _ _coords: [Double]?, _ _offset: Int ) -> Double { return getFlatnessSq( coords: _coords, offset: _offset ) } /// private static double java.awt.geom.CubicCurve2D.getRootUpperBound(double[]) /// private static boolean java.awt.geom.CubicCurve2D.inInterval(double,double,double) /// private static boolean java.awt.geom.CubicCurve2D.iszero(double,double) /// private static boolean java.awt.geom.CubicCurve2D.oppositeSigns(double,double) /// private static double java.awt.geom.CubicCurve2D.refineRootWithHint(double[],double,double,double) /// public static int java.awt.geom.CubicCurve2D.solveCubic(double[]) private static var solveCubic_MethodID_6: jmethodID? open class func solveCubic( eqn: [Double]? ) -> Int { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: eqn, locals: &__locals ) let __return = JNIMethod.CallStaticIntMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "solveCubic", methodSig: "([D)I", methodCache: &solveCubic_MethodID_6, args: &__args, locals: &__locals ) return Int(__return) } open class func solveCubic( _ _eqn: [Double]? ) -> Int { return solveCubic( eqn: _eqn ) } /// public static int java.awt.geom.CubicCurve2D.solveCubic(double[],double[]) private static var solveCubic_MethodID_7: jmethodID? open class func solveCubic( eqn: [Double]?, res: [Double]? ) -> Int { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: eqn, locals: &__locals ) __args[1] = JNIType.toJava( value: res, locals: &__locals ) let __return = JNIMethod.CallStaticIntMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "solveCubic", methodSig: "([D[D)I", methodCache: &solveCubic_MethodID_7, args: &__args, locals: &__locals ) return Int(__return) } open class func solveCubic( _ _eqn: [Double]?, _ _res: [Double]? ) -> Int { return solveCubic( eqn: _eqn, res: _res ) } /// private static double java.awt.geom.CubicCurve2D.solveEqn(double[],int,double) /// public static void java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D,java.awt.geom.CubicCurve2D,java.awt.geom.CubicCurve2D) private static var subdivide_MethodID_8: jmethodID? open class func subdivide( src: CubicCurve2D?, left: CubicCurve2D?, right: CubicCurve2D? ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 3 ) __args[0] = JNIType.toJava( value: src, locals: &__locals ) __args[1] = JNIType.toJava( value: left, locals: &__locals ) __args[2] = JNIType.toJava( value: right, locals: &__locals ) JNIMethod.CallStaticVoidMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "subdivide", methodSig: "(Ljava/awt/geom/CubicCurve2D;Ljava/awt/geom/CubicCurve2D;Ljava/awt/geom/CubicCurve2D;)V", methodCache: &subdivide_MethodID_8, args: &__args, locals: &__locals ) } open class func subdivide( _ _src: CubicCurve2D?, _ _left: CubicCurve2D?, _ _right: CubicCurve2D? ) { subdivide( src: _src, left: _left, right: _right ) } /// public static void java.awt.geom.CubicCurve2D.subdivide(double[],int,double[],int,double[],int) private static var subdivide_MethodID_9: jmethodID? open class func subdivide( src: [Double]?, srcoff: Int, left: [Double]?, leftoff: Int, right: [Double]?, rightoff: Int ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 6 ) __args[0] = JNIType.toJava( value: src, locals: &__locals ) __args[1] = jvalue( i: jint(srcoff) ) __args[2] = JNIType.toJava( value: left, locals: &__locals ) __args[3] = jvalue( i: jint(leftoff) ) __args[4] = JNIType.toJava( value: right, locals: &__locals ) __args[5] = jvalue( i: jint(rightoff) ) JNIMethod.CallStaticVoidMethod( className: "java/awt/geom/CubicCurve2D", classCache: &CubicCurve2DJNIClass, methodName: "subdivide", methodSig: "([DI[DI[DI)V", methodCache: &subdivide_MethodID_9, args: &__args, locals: &__locals ) } open class func subdivide( _ _src: [Double]?, _ _srcoff: Int, _ _left: [Double]?, _ _leftoff: Int, _ _right: [Double]?, _ _rightoff: Int ) { subdivide( src: _src, srcoff: _srcoff, left: _left, leftoff: _leftoff, right: _right, rightoff: _rightoff ) } /// private static boolean java.awt.geom.CubicCurve2D.within(double,double,double) /// public java.lang.Object java.awt.geom.CubicCurve2D.clone() private static var clone_MethodID_10: jmethodID? override open func clone() -> java_swift.JavaObject! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "clone", methodSig: "()Ljava/lang/Object;", methodCache: &CubicCurve2D.clone_MethodID_10, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil } /// public boolean java.awt.geom.CubicCurve2D.contains(double,double) private static var contains_MethodID_11: jmethodID? open func contains( x: Double, y: Double ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = jvalue( d: x ) __args[1] = jvalue( d: y ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "contains", methodSig: "(DD)Z", methodCache: &CubicCurve2D.contains_MethodID_11, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func contains( _ _x: Double, _ _y: Double ) -> Bool { return contains( x: _x, y: _y ) } /// public boolean java.awt.geom.CubicCurve2D.contains(double,double,double,double) private static var contains_MethodID_12: jmethodID? open func contains( x: Double, y: Double, w: Double, h: Double ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 4 ) __args[0] = jvalue( d: x ) __args[1] = jvalue( d: y ) __args[2] = jvalue( d: w ) __args[3] = jvalue( d: h ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "contains", methodSig: "(DDDD)Z", methodCache: &CubicCurve2D.contains_MethodID_12, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func contains( _ _x: Double, _ _y: Double, _ _w: Double, _ _h: Double ) -> Bool { return contains( x: _x, y: _y, w: _w, h: _h ) } /// public boolean java.awt.geom.CubicCurve2D.contains(java.awt.geom.Point2D) private static var contains_MethodID_13: jmethodID? open func contains( p: Point2D? ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: p, locals: &__locals ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "contains", methodSig: "(Ljava/awt/geom/Point2D;)Z", methodCache: &CubicCurve2D.contains_MethodID_13, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func contains( _ _p: Point2D? ) -> Bool { return contains( p: _p ) } /// public boolean java.awt.geom.CubicCurve2D.contains(java.awt.geom.Rectangle2D) private static var contains_MethodID_14: jmethodID? open func contains( r: Rectangle2D? ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: r, locals: &__locals ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "contains", methodSig: "(Ljava/awt/geom/Rectangle2D;)Z", methodCache: &CubicCurve2D.contains_MethodID_14, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func contains( _ _r: Rectangle2D? ) -> Bool { return contains( r: _r ) } /// public java.awt.Rectangle java.awt.geom.CubicCurve2D.getBounds() private static var getBounds_MethodID_15: jmethodID? open func getBounds() -> Rectangle! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getBounds", methodSig: "()Ljava/awt/Rectangle;", methodCache: &CubicCurve2D.getBounds_MethodID_15, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Rectangle( javaObject: __return ) : nil } /// public abstract java.awt.geom.Point2D java.awt.geom.CubicCurve2D.getCtrlP1() private static var getCtrlP1_MethodID_16: jmethodID? open func getCtrlP1() -> Point2D! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getCtrlP1", methodSig: "()Ljava/awt/geom/Point2D;", methodCache: &CubicCurve2D.getCtrlP1_MethodID_16, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Point2D( javaObject: __return ) : nil } /// public abstract java.awt.geom.Point2D java.awt.geom.CubicCurve2D.getCtrlP2() private static var getCtrlP2_MethodID_17: jmethodID? open func getCtrlP2() -> Point2D! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getCtrlP2", methodSig: "()Ljava/awt/geom/Point2D;", methodCache: &CubicCurve2D.getCtrlP2_MethodID_17, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Point2D( javaObject: __return ) : nil } /// public abstract double java.awt.geom.CubicCurve2D.getCtrlX1() private static var getCtrlX1_MethodID_18: jmethodID? open func getCtrlX1() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getCtrlX1", methodSig: "()D", methodCache: &CubicCurve2D.getCtrlX1_MethodID_18, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getCtrlX2() private static var getCtrlX2_MethodID_19: jmethodID? open func getCtrlX2() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getCtrlX2", methodSig: "()D", methodCache: &CubicCurve2D.getCtrlX2_MethodID_19, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getCtrlY1() private static var getCtrlY1_MethodID_20: jmethodID? open func getCtrlY1() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getCtrlY1", methodSig: "()D", methodCache: &CubicCurve2D.getCtrlY1_MethodID_20, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getCtrlY2() private static var getCtrlY2_MethodID_21: jmethodID? open func getCtrlY2() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getCtrlY2", methodSig: "()D", methodCache: &CubicCurve2D.getCtrlY2_MethodID_21, args: &__args, locals: &__locals ) return __return } /// public double java.awt.geom.CubicCurve2D.getFlatness() private static var getFlatness_MethodID_22: jmethodID? open func getFlatness() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getFlatness", methodSig: "()D", methodCache: &CubicCurve2D.getFlatness_MethodID_22, args: &__args, locals: &__locals ) return __return } /// public double java.awt.geom.CubicCurve2D.getFlatnessSq() private static var getFlatnessSq_MethodID_23: jmethodID? open func getFlatnessSq() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getFlatnessSq", methodSig: "()D", methodCache: &CubicCurve2D.getFlatnessSq_MethodID_23, args: &__args, locals: &__locals ) return __return } /// public abstract java.awt.geom.Point2D java.awt.geom.CubicCurve2D.getP1() private static var getP1_MethodID_24: jmethodID? open func getP1() -> Point2D! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getP1", methodSig: "()Ljava/awt/geom/Point2D;", methodCache: &CubicCurve2D.getP1_MethodID_24, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Point2D( javaObject: __return ) : nil } /// public abstract java.awt.geom.Point2D java.awt.geom.CubicCurve2D.getP2() private static var getP2_MethodID_25: jmethodID? open func getP2() -> Point2D! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getP2", methodSig: "()Ljava/awt/geom/Point2D;", methodCache: &CubicCurve2D.getP2_MethodID_25, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Point2D( javaObject: __return ) : nil } /// public java.awt.geom.PathIterator java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform) private static var getPathIterator_MethodID_26: jmethodID? open func getPathIterator( at: AffineTransform? ) -> PathIterator! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: at, locals: &__locals ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getPathIterator", methodSig: "(Ljava/awt/geom/AffineTransform;)Ljava/awt/geom/PathIterator;", methodCache: &CubicCurve2D.getPathIterator_MethodID_26, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? PathIteratorForward( javaObject: __return ) : nil } open func getPathIterator( _ _at: AffineTransform? ) -> PathIterator! { return getPathIterator( at: _at ) } /// public java.awt.geom.PathIterator java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform,double) private static var getPathIterator_MethodID_27: jmethodID? open func getPathIterator( at: AffineTransform?, flatness: Double ) -> PathIterator! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: at, locals: &__locals ) __args[1] = jvalue( d: flatness ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getPathIterator", methodSig: "(Ljava/awt/geom/AffineTransform;D)Ljava/awt/geom/PathIterator;", methodCache: &CubicCurve2D.getPathIterator_MethodID_27, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? PathIteratorForward( javaObject: __return ) : nil } open func getPathIterator( _ _at: AffineTransform?, _ _flatness: Double ) -> PathIterator! { return getPathIterator( at: _at, flatness: _flatness ) } /// public abstract double java.awt.geom.CubicCurve2D.getX1() private static var getX1_MethodID_28: jmethodID? open func getX1() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getX1", methodSig: "()D", methodCache: &CubicCurve2D.getX1_MethodID_28, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getX2() private static var getX2_MethodID_29: jmethodID? open func getX2() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getX2", methodSig: "()D", methodCache: &CubicCurve2D.getX2_MethodID_29, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getY1() private static var getY1_MethodID_30: jmethodID? open func getY1() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getY1", methodSig: "()D", methodCache: &CubicCurve2D.getY1_MethodID_30, args: &__args, locals: &__locals ) return __return } /// public abstract double java.awt.geom.CubicCurve2D.getY2() private static var getY2_MethodID_31: jmethodID? open func getY2() -> Double { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "getY2", methodSig: "()D", methodCache: &CubicCurve2D.getY2_MethodID_31, args: &__args, locals: &__locals ) return __return } /// public boolean java.awt.geom.CubicCurve2D.intersects(double,double,double,double) private static var intersects_MethodID_32: jmethodID? open func intersects( x: Double, y: Double, w: Double, h: Double ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 4 ) __args[0] = jvalue( d: x ) __args[1] = jvalue( d: y ) __args[2] = jvalue( d: w ) __args[3] = jvalue( d: h ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "intersects", methodSig: "(DDDD)Z", methodCache: &CubicCurve2D.intersects_MethodID_32, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func intersects( _ _x: Double, _ _y: Double, _ _w: Double, _ _h: Double ) -> Bool { return intersects( x: _x, y: _y, w: _w, h: _h ) } /// public boolean java.awt.geom.CubicCurve2D.intersects(java.awt.geom.Rectangle2D) private static var intersects_MethodID_33: jmethodID? open func intersects( r: Rectangle2D? ) -> Bool { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: r, locals: &__locals ) let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "intersects", methodSig: "(Ljava/awt/geom/Rectangle2D;)Z", methodCache: &CubicCurve2D.intersects_MethodID_33, args: &__args, locals: &__locals ) return __return != jboolean(JNI_FALSE) } open func intersects( _ _r: Rectangle2D? ) -> Bool { return intersects( r: _r ) } /// private int java.awt.geom.CubicCurve2D.rectCrossings(double,double,double,double) /// public void java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.CubicCurve2D) private static var setCurve_MethodID_34: jmethodID? open func setCurve( c: CubicCurve2D? ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) __args[0] = JNIType.toJava( value: c, locals: &__locals ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCurve", methodSig: "(Ljava/awt/geom/CubicCurve2D;)V", methodCache: &CubicCurve2D.setCurve_MethodID_34, args: &__args, locals: &__locals ) } open func setCurve( _ _c: CubicCurve2D? ) { setCurve( c: _c ) } /// public abstract void java.awt.geom.CubicCurve2D.setCurve(double,double,double,double,double,double,double,double) private static var setCurve_MethodID_35: jmethodID? open func setCurve( x1: Double, y1: Double, ctrlx1: Double, ctrly1: Double, ctrlx2: Double, ctrly2: Double, x2: Double, y2: Double ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 8 ) __args[0] = jvalue( d: x1 ) __args[1] = jvalue( d: y1 ) __args[2] = jvalue( d: ctrlx1 ) __args[3] = jvalue( d: ctrly1 ) __args[4] = jvalue( d: ctrlx2 ) __args[5] = jvalue( d: ctrly2 ) __args[6] = jvalue( d: x2 ) __args[7] = jvalue( d: y2 ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCurve", methodSig: "(DDDDDDDD)V", methodCache: &CubicCurve2D.setCurve_MethodID_35, args: &__args, locals: &__locals ) } open func setCurve( _ _x1: Double, _ _y1: Double, _ _ctrlx1: Double, _ _ctrly1: Double, _ _ctrlx2: Double, _ _ctrly2: Double, _ _x2: Double, _ _y2: Double ) { setCurve( x1: _x1, y1: _y1, ctrlx1: _ctrlx1, ctrly1: _ctrly1, ctrlx2: _ctrlx2, ctrly2: _ctrly2, x2: _x2, y2: _y2 ) } /// public void java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D,java.awt.geom.Point2D,java.awt.geom.Point2D,java.awt.geom.Point2D) private static var setCurve_MethodID_36: jmethodID? open func setCurve( p1: Point2D?, cp1: Point2D?, cp2: Point2D?, p2: Point2D? ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 4 ) __args[0] = JNIType.toJava( value: p1, locals: &__locals ) __args[1] = JNIType.toJava( value: cp1, locals: &__locals ) __args[2] = JNIType.toJava( value: cp2, locals: &__locals ) __args[3] = JNIType.toJava( value: p2, locals: &__locals ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCurve", methodSig: "(Ljava/awt/geom/Point2D;Ljava/awt/geom/Point2D;Ljava/awt/geom/Point2D;Ljava/awt/geom/Point2D;)V", methodCache: &CubicCurve2D.setCurve_MethodID_36, args: &__args, locals: &__locals ) } open func setCurve( _ _p1: Point2D?, _ _cp1: Point2D?, _ _cp2: Point2D?, _ _p2: Point2D? ) { setCurve( p1: _p1, cp1: _cp1, cp2: _cp2, p2: _p2 ) } /// public void java.awt.geom.CubicCurve2D.setCurve(double[],int) private static var setCurve_MethodID_37: jmethodID? open func setCurve( coords: [Double]?, offset: Int ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: coords, locals: &__locals ) __args[1] = jvalue( i: jint(offset) ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCurve", methodSig: "([DI)V", methodCache: &CubicCurve2D.setCurve_MethodID_37, args: &__args, locals: &__locals ) } open func setCurve( _ _coords: [Double]?, _ _offset: Int ) { setCurve( coords: _coords, offset: _offset ) } /// public void java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D[],int) private static var setCurve_MethodID_38: jmethodID? open func setCurve( pts: [Point2D]?, offset: Int ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: pts, locals: &__locals ) __args[1] = jvalue( i: jint(offset) ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCurve", methodSig: "([Ljava/awt/geom/Point2D;I)V", methodCache: &CubicCurve2D.setCurve_MethodID_38, args: &__args, locals: &__locals ) } open func setCurve( _ _pts: [Point2D]?, _ _offset: Int ) { setCurve( pts: _pts, offset: _offset ) } /// public void java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D,java.awt.geom.CubicCurve2D) private static var subdivide_MethodID_39: jmethodID? open func subdivide( left: CubicCurve2D?, right: CubicCurve2D? ) { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 2 ) __args[0] = JNIType.toJava( value: left, locals: &__locals ) __args[1] = JNIType.toJava( value: right, locals: &__locals ) JNIMethod.CallVoidMethod( object: javaObject, methodName: "subdivide", methodSig: "(Ljava/awt/geom/CubicCurve2D;Ljava/awt/geom/CubicCurve2D;)V", methodCache: &CubicCurve2D.subdivide_MethodID_39, args: &__args, locals: &__locals ) } open func subdivide( _ _left: CubicCurve2D?, _ _right: CubicCurve2D? ) { subdivide( left: _left, right: _right ) } /// In declared protocol but not defined.. /// /// public abstract java.awt.geom.Rectangle2D java.awt.Shape.getBounds2D() private static var getBounds2D_MethodID_40: jmethodID? open func getBounds2D() -> Rectangle2D! { var __locals = [jobject]() var __args = [jvalue]( repeating: jvalue(), count: 1 ) let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getBounds2D", methodSig: "()Ljava/awt/geom/Rectangle2D;", methodCache: &CubicCurve2D.getBounds2D_MethodID_40, args: &__args, locals: &__locals ) defer { JNI.DeleteLocalRef( __return ) } return __return != nil ? Rectangle2D( javaObject: __return ) : nil } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |