Class: Java::JavafxScene::Scene

Inherits:
Object
  • Object
show all
Includes:
JRubyFX::DSL
Defined in:
lib/jrubyfx/core_ext/precompiled.rb

Constant Summary

Constants included from JRubyFX::DSL

JRubyFX::DSL::NAME_TO_CLASSES, JRubyFX::DSL::NAME_TO_CLASS_NAME

Constants included from JRubyFX::FXImports

JRubyFX::FXImports::JFX_CLASS_HIERARCHY, JRubyFX::FXImports::LOCAL_NAME_MAP

Constants included from JRubyFX

JRubyFX::VERSION

Class Method Summary collapse

Instance Method Summary collapse

Methods included from JRubyFX::DSL

compile_dsl, included, load_dsl, #logical_lookup, #method_missing, #self_test_lookup, write_color_method_converter, write_enum_converter, write_enum_method_converter, write_event_method

Methods included from JRubyFX::FXImports

#const_missing

Methods included from JRubyFX

#build, included, load_fx, #run_later, #with

Methods included from JRubyFX::Utils::CommonUtils

#attempt_conversion, #populate_properties, #split_args_from_properties

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class JRubyFX::DSL

Class Method Details

.new(*args) ⇒ Object

TODO: logical_child(root)



593
594
595
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 593

def self.new(*args)
  super *JRubyFX::Utils::CommonConverters.convert_args(args, [[:none], [:none, :color], [:none, :none, :none], [:none, :none, :none, :color]])
end

Instance Method Details

#fill=(value) ⇒ Object



316
317
318
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 316

def fill=(value)
  setFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
end

#node_orientation=(rbenum) ⇒ Object



313
314
315
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 313

def node_orientation=(rbenum)
  java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
end

#on_context_menu_requested(&block) ⇒ Object



319
320
321
322
323
324
325
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 319

def on_context_menu_requested(&block)
  if block_given?
    setOnContextMenuRequested block
  else
    getOnContextMenuRequested
  end
end

#on_drag_detected(&block) ⇒ Object



375
376
377
378
379
380
381
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 375

def on_drag_detected(&block)
  if block_given?
    setOnDragDetected block
  else
    getOnDragDetected
  end
end

#on_drag_done(&block) ⇒ Object



557
558
559
560
561
562
563
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 557

def on_drag_done(&block)
  if block_given?
    setOnDragDone block
  else
    getOnDragDone
  end
end

#on_drag_dropped(&block) ⇒ Object



550
551
552
553
554
555
556
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 550

def on_drag_dropped(&block)
  if block_given?
    setOnDragDropped block
  else
    getOnDragDropped
  end
end

#on_drag_entered(&block) ⇒ Object



529
530
531
532
533
534
535
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 529

def on_drag_entered(&block)
  if block_given?
    setOnDragEntered block
  else
    getOnDragEntered
  end
end

#on_drag_exited(&block) ⇒ Object



536
537
538
539
540
541
542
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 536

def on_drag_exited(&block)
  if block_given?
    setOnDragExited block
  else
    getOnDragExited
  end
end

#on_drag_over(&block) ⇒ Object



543
544
545
546
547
548
549
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 543

def on_drag_over(&block)
  if block_given?
    setOnDragOver block
  else
    getOnDragOver
  end
end

#on_input_method_text_changed(&block) ⇒ Object



585
586
587
588
589
590
591
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 585

def on_input_method_text_changed(&block)
  if block_given?
    setOnInputMethodTextChanged block
  else
    getOnInputMethodTextChanged
  end
end

#on_key_pressed(&block) ⇒ Object



564
565
566
567
568
569
570
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 564

def on_key_pressed(&block)
  if block_given?
    setOnKeyPressed block
  else
    getOnKeyPressed
  end
end

#on_key_released(&block) ⇒ Object



571
572
573
574
575
576
577
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 571

def on_key_released(&block)
  if block_given?
    setOnKeyReleased block
  else
    getOnKeyReleased
  end
end

#on_key_typed(&block) ⇒ Object



578
579
580
581
582
583
584
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 578

def on_key_typed(&block)
  if block_given?
    setOnKeyTyped block
  else
    getOnKeyTyped
  end
end

#on_mouse_clicked(&block) ⇒ Object



326
327
328
329
330
331
332
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 326

def on_mouse_clicked(&block)
  if block_given?
    setOnMouseClicked block
  else
    getOnMouseClicked
  end
end

#on_mouse_drag_entered(&block) ⇒ Object



396
397
398
399
400
401
402
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 396

def on_mouse_drag_entered(&block)
  if block_given?
    setOnMouseDragEntered block
  else
    getOnMouseDragEntered
  end
end

#on_mouse_drag_exited(&block) ⇒ Object



403
404
405
406
407
408
409
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 403

def on_mouse_drag_exited(&block)
  if block_given?
    setOnMouseDragExited block
  else
    getOnMouseDragExited
  end
end

#on_mouse_drag_over(&block) ⇒ Object



382
383
384
385
386
387
388
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 382

def on_mouse_drag_over(&block)
  if block_given?
    setOnMouseDragOver block
  else
    getOnMouseDragOver
  end
end

#on_mouse_drag_released(&block) ⇒ Object



389
390
391
392
393
394
395
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 389

def on_mouse_drag_released(&block)
  if block_given?
    setOnMouseDragReleased block
  else
    getOnMouseDragReleased
  end
end

#on_mouse_dragged(&block) ⇒ Object



333
334
335
336
337
338
339
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 333

def on_mouse_dragged(&block)
  if block_given?
    setOnMouseDragged block
  else
    getOnMouseDragged
  end
end

#on_mouse_entered(&block) ⇒ Object



340
341
342
343
344
345
346
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 340

def on_mouse_entered(&block)
  if block_given?
    setOnMouseEntered block
  else
    getOnMouseEntered
  end
end

#on_mouse_exited(&block) ⇒ Object



347
348
349
350
351
352
353
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 347

def on_mouse_exited(&block)
  if block_given?
    setOnMouseExited block
  else
    getOnMouseExited
  end
end

#on_mouse_moved(&block) ⇒ Object



354
355
356
357
358
359
360
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 354

def on_mouse_moved(&block)
  if block_given?
    setOnMouseMoved block
  else
    getOnMouseMoved
  end
end

#on_mouse_pressed(&block) ⇒ Object



361
362
363
364
365
366
367
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 361

def on_mouse_pressed(&block)
  if block_given?
    setOnMousePressed block
  else
    getOnMousePressed
  end
end

#on_mouse_released(&block) ⇒ Object



368
369
370
371
372
373
374
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 368

def on_mouse_released(&block)
  if block_given?
    setOnMouseReleased block
  else
    getOnMouseReleased
  end
end

#on_rotate(&block) ⇒ Object



438
439
440
441
442
443
444
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 438

def on_rotate(&block)
  if block_given?
    setOnRotate block
  else
    getOnRotate
  end
end

#on_rotation_finished(&block) ⇒ Object



445
446
447
448
449
450
451
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 445

def on_rotation_finished(&block)
  if block_given?
    setOnRotationFinished block
  else
    getOnRotationFinished
  end
end

#on_rotation_started(&block) ⇒ Object



431
432
433
434
435
436
437
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 431

def on_rotation_started(&block)
  if block_given?
    setOnRotationStarted block
  else
    getOnRotationStarted
  end
end

#on_scroll(&block) ⇒ Object



417
418
419
420
421
422
423
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 417

def on_scroll(&block)
  if block_given?
    setOnScroll block
  else
    getOnScroll
  end
end

#on_scroll_finished(&block) ⇒ Object



424
425
426
427
428
429
430
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 424

def on_scroll_finished(&block)
  if block_given?
    setOnScrollFinished block
  else
    getOnScrollFinished
  end
end

#on_scroll_started(&block) ⇒ Object



410
411
412
413
414
415
416
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 410

def on_scroll_started(&block)
  if block_given?
    setOnScrollStarted block
  else
    getOnScrollStarted
  end
end

#on_swipe_down(&block) ⇒ Object



480
481
482
483
484
485
486
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 480

def on_swipe_down(&block)
  if block_given?
    setOnSwipeDown block
  else
    getOnSwipeDown
  end
end

#on_swipe_left(&block) ⇒ Object



487
488
489
490
491
492
493
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 487

def on_swipe_left(&block)
  if block_given?
    setOnSwipeLeft block
  else
    getOnSwipeLeft
  end
end

#on_swipe_right(&block) ⇒ Object



494
495
496
497
498
499
500
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 494

def on_swipe_right(&block)
  if block_given?
    setOnSwipeRight block
  else
    getOnSwipeRight
  end
end

#on_swipe_up(&block) ⇒ Object



473
474
475
476
477
478
479
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 473

def on_swipe_up(&block)
  if block_given?
    setOnSwipeUp block
  else
    getOnSwipeUp
  end
end

#on_touch_moved(&block) ⇒ Object



508
509
510
511
512
513
514
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 508

def on_touch_moved(&block)
  if block_given?
    setOnTouchMoved block
  else
    getOnTouchMoved
  end
end

#on_touch_pressed(&block) ⇒ Object



501
502
503
504
505
506
507
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 501

def on_touch_pressed(&block)
  if block_given?
    setOnTouchPressed block
  else
    getOnTouchPressed
  end
end

#on_touch_released(&block) ⇒ Object



515
516
517
518
519
520
521
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 515

def on_touch_released(&block)
  if block_given?
    setOnTouchReleased block
  else
    getOnTouchReleased
  end
end

#on_touch_stationary(&block) ⇒ Object



522
523
524
525
526
527
528
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 522

def on_touch_stationary(&block)
  if block_given?
    setOnTouchStationary block
  else
    getOnTouchStationary
  end
end

#on_zoom(&block) ⇒ Object



459
460
461
462
463
464
465
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 459

def on_zoom(&block)
  if block_given?
    setOnZoom block
  else
    getOnZoom
  end
end

#on_zoom_finished(&block) ⇒ Object



466
467
468
469
470
471
472
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 466

def on_zoom_finished(&block)
  if block_given?
    setOnZoomFinished block
  else
    getOnZoomFinished
  end
end

#on_zoom_started(&block) ⇒ Object



452
453
454
455
456
457
458
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 452

def on_zoom_started(&block)
  if block_given?
    setOnZoomStarted block
  else
    getOnZoomStarted
  end
end