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)



1254
1255
1256
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1254

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



977
978
979
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 977

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

#on_context_menu_requested(&block) ⇒ Object



980
981
982
983
984
985
986
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 980

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

#on_drag_detected(&block) ⇒ Object



987
988
989
990
991
992
993
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 987

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

#on_drag_done(&block) ⇒ Object



994
995
996
997
998
999
1000
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 994

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

#on_drag_dropped(&block) ⇒ Object



1001
1002
1003
1004
1005
1006
1007
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1001

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

#on_drag_entered(&block) ⇒ Object



1008
1009
1010
1011
1012
1013
1014
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1008

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

#on_drag_exited(&block) ⇒ Object



1015
1016
1017
1018
1019
1020
1021
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1015

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

#on_drag_over(&block) ⇒ Object



1022
1023
1024
1025
1026
1027
1028
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1022

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

#on_input_method_text_changed(&block) ⇒ Object



1029
1030
1031
1032
1033
1034
1035
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1029

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

#on_key_pressed(&block) ⇒ Object



1036
1037
1038
1039
1040
1041
1042
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1036

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

#on_key_released(&block) ⇒ Object



1043
1044
1045
1046
1047
1048
1049
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1043

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

#on_key_typed(&block) ⇒ Object



1050
1051
1052
1053
1054
1055
1056
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1050

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

#on_mouse_clicked(&block) ⇒ Object



1057
1058
1059
1060
1061
1062
1063
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1057

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

#on_mouse_drag_entered(&block) ⇒ Object



1064
1065
1066
1067
1068
1069
1070
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1064

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

#on_mouse_drag_exited(&block) ⇒ Object



1071
1072
1073
1074
1075
1076
1077
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1071

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

#on_mouse_drag_over(&block) ⇒ Object



1078
1079
1080
1081
1082
1083
1084
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1078

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

#on_mouse_drag_released(&block) ⇒ Object



1085
1086
1087
1088
1089
1090
1091
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1085

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

#on_mouse_dragged(&block) ⇒ Object



1092
1093
1094
1095
1096
1097
1098
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1092

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

#on_mouse_entered(&block) ⇒ Object



1099
1100
1101
1102
1103
1104
1105
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1099

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

#on_mouse_exited(&block) ⇒ Object



1106
1107
1108
1109
1110
1111
1112
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1106

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

#on_mouse_moved(&block) ⇒ Object



1113
1114
1115
1116
1117
1118
1119
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1113

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

#on_mouse_pressed(&block) ⇒ Object



1120
1121
1122
1123
1124
1125
1126
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1120

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

#on_mouse_released(&block) ⇒ Object



1127
1128
1129
1130
1131
1132
1133
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1127

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

#on_rotate(&block) ⇒ Object



1134
1135
1136
1137
1138
1139
1140
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1134

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

#on_rotation_finished(&block) ⇒ Object



1141
1142
1143
1144
1145
1146
1147
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1141

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

#on_rotation_started(&block) ⇒ Object



1148
1149
1150
1151
1152
1153
1154
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1148

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

#on_scroll(&block) ⇒ Object



1155
1156
1157
1158
1159
1160
1161
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1155

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

#on_scroll_finished(&block) ⇒ Object



1162
1163
1164
1165
1166
1167
1168
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1162

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

#on_scroll_started(&block) ⇒ Object



1169
1170
1171
1172
1173
1174
1175
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1169

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

#on_swipe_down(&block) ⇒ Object



1176
1177
1178
1179
1180
1181
1182
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1176

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

#on_swipe_left(&block) ⇒ Object



1183
1184
1185
1186
1187
1188
1189
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1183

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

#on_swipe_right(&block) ⇒ Object



1190
1191
1192
1193
1194
1195
1196
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1190

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

#on_swipe_up(&block) ⇒ Object



1197
1198
1199
1200
1201
1202
1203
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1197

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

#on_touch_moved(&block) ⇒ Object



1204
1205
1206
1207
1208
1209
1210
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1204

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

#on_touch_pressed(&block) ⇒ Object



1211
1212
1213
1214
1215
1216
1217
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1211

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

#on_touch_released(&block) ⇒ Object



1218
1219
1220
1221
1222
1223
1224
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1218

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

#on_touch_stationary(&block) ⇒ Object



1225
1226
1227
1228
1229
1230
1231
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1225

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

#on_zoom(&block) ⇒ Object



1232
1233
1234
1235
1236
1237
1238
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1232

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

#on_zoom_finished(&block) ⇒ Object



1239
1240
1241
1242
1243
1244
1245
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1239

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

#on_zoom_started(&block) ⇒ Object



1246
1247
1248
1249
1250
1251
1252
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1246

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