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

#accessible_role=(rbenum) ⇒ Object



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

def accessible_role=(rbenum)
  java_send "setAccessibleRole", [Java::JavafxScene::AccessibleRole], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleRole)
end

#blend_mode=(rbenum) ⇒ Object



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

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



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

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



21
22
23
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 21

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

#effect(*r) ⇒ Object



303
304
305
306
307
308
309
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 303

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

#node_orientation=(rbenum) ⇒ Object



24
25
26
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 24

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

#notify_accessible_attribute_changed=(rbenum) ⇒ Object



18
19
20
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 18

def notify_accessible_attribute_changed=(rbenum)
  java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
end

#on_context_menu_requested(&block) ⇒ Object



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

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

#on_drag_detected(&block) ⇒ Object



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

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

#on_drag_done(&block) ⇒ Object



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

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

#on_drag_dropped(&block) ⇒ Object



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

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

#on_drag_entered(&block) ⇒ Object



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

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

#on_drag_exited(&block) ⇒ Object



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

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

#on_drag_over(&block) ⇒ Object



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

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

#on_input_method_text_changed(&block) ⇒ Object



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

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

#on_key_pressed(&block) ⇒ Object



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

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

#on_key_released(&block) ⇒ Object



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

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

#on_key_typed(&block) ⇒ Object



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

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

#on_mouse_clicked(&block) ⇒ Object



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

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

#on_mouse_drag_entered(&block) ⇒ Object



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

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

#on_mouse_drag_exited(&block) ⇒ Object



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

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

#on_mouse_drag_over(&block) ⇒ Object



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

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

#on_mouse_drag_released(&block) ⇒ Object



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

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

#on_mouse_dragged(&block) ⇒ Object



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

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

#on_mouse_entered(&block) ⇒ Object



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

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

#on_mouse_exited(&block) ⇒ Object



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

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

#on_mouse_moved(&block) ⇒ Object



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

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

#on_mouse_pressed(&block) ⇒ Object



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

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

#on_mouse_released(&block) ⇒ Object



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

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

#on_rotate(&block) ⇒ Object



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

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

#on_rotation_finished(&block) ⇒ Object



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

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

#on_rotation_started(&block) ⇒ Object



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

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

#on_scroll(&block) ⇒ Object



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

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

#on_scroll_finished(&block) ⇒ Object



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

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

#on_scroll_started(&block) ⇒ Object



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

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

#on_swipe_down(&block) ⇒ Object



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

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

#on_swipe_left(&block) ⇒ Object



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

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

#on_swipe_right(&block) ⇒ Object



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

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

#on_swipe_up(&block) ⇒ Object



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

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

#on_touch_moved(&block) ⇒ Object



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

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

#on_touch_pressed(&block) ⇒ Object



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

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

#on_touch_released(&block) ⇒ Object



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

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

#on_touch_stationary(&block) ⇒ Object



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

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

#on_zoom(&block) ⇒ Object



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

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

#on_zoom_finished(&block) ⇒ Object



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

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

#on_zoom_started(&block) ⇒ Object



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

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

#rotate(*args) ⇒ Object



300
301
302
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 300

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