Class: Java::JavafxScene::Node

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

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

Instance Method Details

#blend_mode=(rbenum) ⇒ Object



15
16
17
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 15

def blend_mode=(rbenum)
  java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
end

#cache_hint=(rbenum) ⇒ Object



9
10
11
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 9

def cache_hint=(rbenum)
  java_send "setCacheHint", [Java::JavafxScene::CacheHint], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::CacheHint)
end

#depth_test=(rbenum) ⇒ Object



12
13
14
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 12

def depth_test=(rbenum)
  java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
end

#effect(*r) ⇒ Object



294
295
296
297
298
299
300
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 294

def effect(*r)
  if r.length > 0
    self.effect = r[0]
  else
    get_effect
  end
end

#on_context_menu_requested(&block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 18

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

#on_drag_detected(&block) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 25

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

#on_drag_done(&block) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 32

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

#on_drag_dropped(&block) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 39

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

#on_drag_entered(&block) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 46

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

#on_drag_exited(&block) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 53

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

#on_drag_over(&block) ⇒ Object



60
61
62
63
64
65
66
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 60

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

#on_input_method_text_changed(&block) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 67

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

#on_key_pressed(&block) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 74

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

#on_key_released(&block) ⇒ Object



81
82
83
84
85
86
87
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 81

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

#on_key_typed(&block) ⇒ Object



88
89
90
91
92
93
94
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 88

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

#on_mouse_clicked(&block) ⇒ Object



95
96
97
98
99
100
101
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 95

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

#on_mouse_drag_entered(&block) ⇒ Object



102
103
104
105
106
107
108
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 102

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

#on_mouse_drag_exited(&block) ⇒ Object



109
110
111
112
113
114
115
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 109

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

#on_mouse_drag_over(&block) ⇒ Object



116
117
118
119
120
121
122
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 116

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

#on_mouse_drag_released(&block) ⇒ Object



123
124
125
126
127
128
129
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 123

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

#on_mouse_dragged(&block) ⇒ Object



130
131
132
133
134
135
136
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 130

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

#on_mouse_entered(&block) ⇒ Object



137
138
139
140
141
142
143
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 137

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

#on_mouse_exited(&block) ⇒ Object



144
145
146
147
148
149
150
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 144

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

#on_mouse_moved(&block) ⇒ Object



151
152
153
154
155
156
157
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 151

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

#on_mouse_pressed(&block) ⇒ Object



158
159
160
161
162
163
164
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 158

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

#on_mouse_released(&block) ⇒ Object



165
166
167
168
169
170
171
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 165

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

#on_rotate(&block) ⇒ Object



172
173
174
175
176
177
178
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 172

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

#on_rotation_finished(&block) ⇒ Object



179
180
181
182
183
184
185
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 179

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

#on_rotation_started(&block) ⇒ Object



186
187
188
189
190
191
192
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 186

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

#on_scroll(&block) ⇒ Object



193
194
195
196
197
198
199
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 193

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

#on_scroll_finished(&block) ⇒ Object



200
201
202
203
204
205
206
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 200

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

#on_scroll_started(&block) ⇒ Object



207
208
209
210
211
212
213
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 207

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

#on_swipe_down(&block) ⇒ Object



214
215
216
217
218
219
220
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 214

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

#on_swipe_left(&block) ⇒ Object



221
222
223
224
225
226
227
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 221

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

#on_swipe_right(&block) ⇒ Object



228
229
230
231
232
233
234
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 228

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

#on_swipe_up(&block) ⇒ Object



235
236
237
238
239
240
241
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 235

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

#on_touch_moved(&block) ⇒ Object



242
243
244
245
246
247
248
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 242

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

#on_touch_pressed(&block) ⇒ Object



249
250
251
252
253
254
255
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 249

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

#on_touch_released(&block) ⇒ Object



256
257
258
259
260
261
262
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 256

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

#on_touch_stationary(&block) ⇒ Object



263
264
265
266
267
268
269
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 263

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

#on_zoom(&block) ⇒ Object



270
271
272
273
274
275
276
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 270

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

#on_zoom_finished(&block) ⇒ Object



277
278
279
280
281
282
283
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 277

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

#on_zoom_started(&block) ⇒ Object



284
285
286
287
288
289
290
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 284

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

#rotate(*args) ⇒ Object



291
292
293
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 291

def rotate(*args)
  transforms << build(Rotate, *args)
end