jrubyfx 0.9.2-java → 1.0.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +19 -17
- data/bin/jrubyfx-generator +28 -11
- data/lib/jrubyfx.rb +8 -4
- data/lib/jrubyfx/{fxml_application.rb → application.rb} +0 -2
- data/lib/jrubyfx/controller.rb +307 -0
- data/lib/jrubyfx/core_ext/border_pane.rb +0 -1
- data/lib/jrubyfx/core_ext/duration.rb +1 -1
- data/lib/jrubyfx/core_ext/exts.yml +53 -0
- data/lib/jrubyfx/core_ext/image_view.rb +1 -0
- data/lib/jrubyfx/core_ext/observable_value.rb +69 -2
- data/lib/jrubyfx/core_ext/path.rb +0 -6
- data/lib/jrubyfx/core_ext/precompiled.rb +501 -0
- data/lib/jrubyfx/core_ext/stage.rb +12 -0
- data/lib/jrubyfx/core_ext/table_view.rb +0 -4
- data/lib/jrubyfx/core_ext/timeline.rb +3 -7
- data/lib/jrubyfx/dsl.rb +168 -150
- data/lib/jrubyfx/dsl_map.rb +267 -0
- data/lib/jrubyfx/imports.rb +64 -0
- data/lib/jrubyfx/java_fx_impl.rb +0 -1
- data/lib/jrubyfx/module.rb +172 -0
- data/lib/jrubyfx/{jfx_imports.rb → part_imports.rb} +17 -9
- data/lib/jrubyfx/utils.rb +13 -4
- data/lib/jrubyfx/utils/common_converters.rb +45 -13
- data/lib/jrubyfx/utils/common_utils.rb +1 -1
- data/lib/jrubyfx/version.rb +1 -1
- data/lib/jrubyfx_tasks.rb +9 -1
- metadata +69 -55
- data/lib/jrubyfx/core_ext/circle.rb +0 -26
- data/lib/jrubyfx/core_ext/drag_event.rb~ +0 -32
- data/lib/jrubyfx/core_ext/image_view.rb~ +0 -24
- data/lib/jrubyfx/core_ext/labeled.rb +0 -24
- data/lib/jrubyfx/core_ext/menu.rb +0 -25
- data/lib/jrubyfx/core_ext/menu.rb~ +0 -26
- data/lib/jrubyfx/core_ext/menu_bar.rb +0 -25
- data/lib/jrubyfx/core_ext/menu_bar.rb~ +0 -24
- data/lib/jrubyfx/core_ext/menu_item.rb +0 -22
- data/lib/jrubyfx/core_ext/node.rb +0 -26
- data/lib/jrubyfx/core_ext/parallel_transition.rb +0 -28
- data/lib/jrubyfx/core_ext/parent.rb +0 -28
- data/lib/jrubyfx/core_ext/scene.rb +0 -29
- data/lib/jrubyfx/core_ext/shape.rb +0 -29
- data/lib/jrubyfx/core_ext/stop.rb +0 -31
- data/lib/jrubyfx/core_ext/tree_item.rb +0 -25
- data/lib/jrubyfx/core_ext/tree_item.rb~ +0 -25
- data/lib/jrubyfx/core_ext/tree_view.rb~ +0 -33
- data/lib/jrubyfx/fxml_controller.rb +0 -325
- data/lib/jrubyfx/fxml_module.rb +0 -98
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
|
15
15
|
limitations under the License.
|
16
16
|
=end
|
17
17
|
|
18
|
-
|
18
|
+
require_relative 'utils'
|
19
19
|
|
20
20
|
# Update load path to include the JavaFX runtime and fail nicely if we can't find it
|
21
21
|
begin
|
@@ -31,9 +31,15 @@ begin
|
|
31
31
|
jfx_path.gsub(/[\/\\][amdix345678_]+$/, "") # strip i386 or amd64 (including variants). TODO: ARM
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
35
|
-
require
|
36
|
-
|
34
|
+
|
35
|
+
# Java 8 (after ea-b75) and above has JavaFX as part of the normal distib, only require it if we are 7 or below
|
36
|
+
jre = ENV_JAVA["java.runtime.version"].match %r{^(?<version>(?<major>\d+)\.(?<minor>\d+))\.(?<patch>\d+)(_\d+)?-?(?<release>ea|u\d)?(-?b(?<build>\d+))?}
|
37
|
+
require 'jfxrt.jar' if ENV['JFX_DIR'] or
|
38
|
+
jre[:version].to_f < 1.8 or
|
39
|
+
(jre[:version].to_f == 1.8 and jre[:release] == 'ea' and jre[:build].to_i < 75)
|
40
|
+
|
41
|
+
# Attempt to load a javafx class
|
42
|
+
Java.javafx.application.Application
|
37
43
|
rescue LoadError, NameError
|
38
44
|
puts "JavaFX runtime not found. Please install Java 7u6 or newer or set environment variable JFX_DIR to the folder that contains jfxrt.jar "
|
39
45
|
puts "If you have Java 7u6 or later, this is a bug. Please report to the issue tracker on github. Include your OS version, 32/64bit, and architecture (x86, ARM, PPC, etc)"
|
@@ -47,6 +53,7 @@ module JRubyFX
|
|
47
53
|
|
48
54
|
# If something is missing, just java_import it in your code.
|
49
55
|
# And then ask us to put it in this list
|
56
|
+
###### IMPORTANT LINE ##### (see rakefile, this is a magic line, don't delete)
|
50
57
|
|
51
58
|
##
|
52
59
|
# This is the list of all classes in JavaFX that most apps should care about.
|
@@ -61,7 +68,7 @@ module JRubyFX
|
|
61
68
|
PauseTransition RotateTransition ScaleTransition SequentialTransition StrokeTransition Timeline Transition TranslateTransition],
|
62
69
|
:application => ['Platform'],
|
63
70
|
:beans => {
|
64
|
-
:property => [
|
71
|
+
:property => %w[SimpleBooleanProperty SimpleDoubleProperty SimpleFloatProperty SimpleIntegerProperty SimpleListProperty SimpleLongProperty SimpleMapProperty SimpleObjectProperty SimpleSetProperty SimpleStringProperty],
|
65
72
|
#TODO: import more
|
66
73
|
:value => ['ChangeListener']
|
67
74
|
},
|
@@ -76,7 +83,7 @@ module JRubyFX
|
|
76
83
|
PieChart ScatterChart StackedAreaChart StackedBarChart ValueAxis XYChart],
|
77
84
|
:control => %w[Accordion Button Cell CheckBox CheckBoxTreeItem CheckMenuItem ChoiceBox ColorPicker ComboBox ContextMenu Hyperlink
|
78
85
|
Label ListCell ListView Menu MenuBar MenuButton MenuItem Pagination PasswordField PopupControl ProgressBar ProgressIndicator RadioButton
|
79
|
-
RadioMenuItem ScrollBar ScrollPane Separator SeparatorMenuItem Slider SplitMenuButton SplitPane Tab TableView TableColumn TabPane TextArea
|
86
|
+
RadioMenuItem ScrollBar ScrollPane Separator SeparatorMenuItem Slider SplitMenuButton SplitPane Tab TableView TableCell TableColumn TabPane TextArea
|
80
87
|
TextField TitledPane ToggleButton ToggleGroup ToolBar Tooltip TreeCell TreeItem TreeView ContentDisplay OverrunStyle SelectionMode],
|
81
88
|
:effect => %w[Blend BlendMode Bloom BlurType BoxBlur ColorAdjust ColorInput DisplacementMap DropShadow GaussianBlur Glow ImageInput
|
82
89
|
InnerShadow Lighting MotionBlur PerspectiveTransform Reflection SepiaTone Shadow],
|
@@ -99,11 +106,12 @@ module JRubyFX
|
|
99
106
|
}
|
100
107
|
|
101
108
|
# Imports all the listed JavaFX classes
|
102
|
-
|
109
|
+
$WRITE_OUT << "java_import "
|
110
|
+
$WRITE_OUT << (JFX_CLASS_HIERARCHY.flat_tree_inject do |res, name, values|
|
103
111
|
name = "#{name.to_s}."
|
104
112
|
name = "" if name == "."
|
105
113
|
res.concat(values.map{|i| "#{name}#{i}"})
|
106
|
-
end)
|
107
|
-
|
114
|
+
end).map{|x| "'#{x}'"}.join(",")
|
115
|
+
$WRITE_OUT << "\njava_import 'java.lang.Void'"
|
108
116
|
end
|
109
117
|
end
|
data/lib/jrubyfx/utils.rb
CHANGED
@@ -23,7 +23,7 @@ class Hash
|
|
23
23
|
# call-seq:
|
24
24
|
# flat_tree_inject() {|results, key, value| block} => array
|
25
25
|
# flat_tree_inject(Hash) {|results, key, value| block} => hash
|
26
|
-
#
|
26
|
+
#
|
27
27
|
# Execute given block against all nodes in the hash tree, returning `results`.
|
28
28
|
# Similar to Hash#each except goes into all sub-Hashes
|
29
29
|
#
|
@@ -41,9 +41,9 @@ end
|
|
41
41
|
class String
|
42
42
|
# call-seq:
|
43
43
|
# snake_case() => string
|
44
|
-
#
|
44
|
+
#
|
45
45
|
# Converts a CamelCaseString to a snake_case_string
|
46
|
-
#
|
46
|
+
#
|
47
47
|
# "JavaFX".snake_case #=> "java_fx"
|
48
48
|
#
|
49
49
|
def snake_case
|
@@ -53,4 +53,13 @@ class String
|
|
53
53
|
tr("-", "_").
|
54
54
|
downcase
|
55
55
|
end
|
56
|
-
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Enumerable
|
59
|
+
def map_find(&block)
|
60
|
+
m = {}
|
61
|
+
m[self.find do |i|
|
62
|
+
m[i] = block.call(i)
|
63
|
+
end]
|
64
|
+
end
|
65
|
+
end
|
@@ -26,7 +26,7 @@ module JRubyFX
|
|
26
26
|
|
27
27
|
# argument converter method name suffix
|
28
28
|
ARG_CONVERTER_SUFFIX = '_arg_converter'
|
29
|
-
|
29
|
+
|
30
30
|
# map of snake_cased colors to JavaFX Colors
|
31
31
|
NAME_TO_COLORS = {
|
32
32
|
'darkyellow' => Color.web('0xc0c000'),
|
@@ -44,7 +44,7 @@ module JRubyFX
|
|
44
44
|
map.key?(value) ? map[value] : value
|
45
45
|
end
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
##
|
49
49
|
# Generate a converter for an enum of the given class
|
50
50
|
def enum_converter(enum_class)
|
@@ -56,14 +56,14 @@ module JRubyFX
|
|
56
56
|
##
|
57
57
|
# call-seq:
|
58
58
|
# animation_converter_for :property_name, ...
|
59
|
-
#
|
59
|
+
#
|
60
60
|
# Generates an animation adapter for the given properties so you can specify
|
61
61
|
# transformations, etc with a hashmap of from, to values
|
62
62
|
# === Examples
|
63
63
|
# animation_converter_for :value
|
64
|
-
#
|
64
|
+
#
|
65
65
|
# ...
|
66
|
-
#
|
66
|
+
#
|
67
67
|
# _my_type_(value: {0 => 360})
|
68
68
|
#
|
69
69
|
def animation_converter_for(*prop_names)
|
@@ -98,6 +98,7 @@ module JRubyFX
|
|
98
98
|
# is useful for single var_args signatures.
|
99
99
|
#
|
100
100
|
def converter_for(method_name, *converters, &default)
|
101
|
+
# puts "[converter for #{self}, #{method_name}]"
|
101
102
|
sheep = lambda do |direct, this, *values|
|
102
103
|
converter = converters.find { |e| e.length == values.length }
|
103
104
|
converter = Array.new(values.length, default) unless converter
|
@@ -157,32 +158,63 @@ module JRubyFX
|
|
157
158
|
Insets.new(value)
|
158
159
|
elsif value.is_a? Array
|
159
160
|
# top/bottom, left/right
|
160
|
-
value = [value[0], value[1], value[0], value[1]] if value.size == 2
|
161
|
+
value = [value[0], value[1], value[0], value[1]] if value.size == 2
|
161
162
|
Insets.new(*value)
|
162
163
|
else
|
163
164
|
value
|
164
165
|
end
|
165
166
|
},
|
166
167
|
}
|
167
|
-
|
168
|
+
|
169
|
+
ENUM_CACHE = {}
|
170
|
+
|
168
171
|
# Store enum mapping overrides
|
169
|
-
|
170
|
-
|
172
|
+
ENUM_OVERRIDES = {Java::javafxAnimation::PathTransition::OrientationType => {:orthogonal_to_tangent => :orthogonal},
|
173
|
+
Java::javafxSceneEffect::BlendMode => {:src_over => :over, :src_atop => :atop, :color_dodge => :dodge, :color_burn => :burn},
|
174
|
+
Java::javafxSceneControl::ContentDisplay => {:graphic_only => :graphic, :text_only => :text},
|
175
|
+
Java::javafxSceneEffect::BlurType => {:one_pass_box => [:one, :one_pass], :two_pass_box => [:two, :two_pass], :three_pass_box => [:three, :three_pass]},
|
176
|
+
Java::javafxStage::Modality => {:window_modal => :window, :application_modal => [:application, :app]}}
|
177
|
+
|
171
178
|
# sets the given overrides for the given class/enum
|
172
179
|
def self.set_overrides_for(enum_class,ovr)
|
173
|
-
|
180
|
+
ENUM_OVERRIDES[enum_class] = ovr
|
174
181
|
end
|
175
|
-
|
182
|
+
|
176
183
|
# Given a class, returns a hash of lowercase strings mapped to Java Enums
|
177
184
|
def self.map_enums(enum_class)
|
178
|
-
res = enum_class.java_class.enum_constants.
|
179
|
-
(
|
185
|
+
res = Hash[enum_class.java_class.enum_constants.map {|i| [i.to_s.downcase, i] }]
|
186
|
+
(ENUM_OVERRIDES[enum_class]||[]).each do |oldk, newks|
|
180
187
|
[newks].flatten.each do |newk|
|
181
188
|
res[newk.to_s] = res[oldk.to_s]
|
182
189
|
end
|
183
190
|
end
|
184
191
|
res
|
185
192
|
end
|
193
|
+
|
194
|
+
def self.parse_ruby_symbols(const, enum)
|
195
|
+
ENUM_CACHE[enum] = JRubyFX::Utils::CommonConverters.map_enums(enum) if ENUM_CACHE[enum] == nil
|
196
|
+
ENUM_CACHE[enum][const.to_s] || const
|
197
|
+
end
|
198
|
+
|
199
|
+
def self.convert_args(values, converters)
|
200
|
+
converter = converters.find { |e| e.length == values.length }
|
201
|
+
converter = Array.new(values.length) unless converter
|
202
|
+
|
203
|
+
# FIXME: Better error reporting on many things which can fail
|
204
|
+
i = 0
|
205
|
+
values = values.inject([]) do |s, value|
|
206
|
+
conv = converter[i]
|
207
|
+
if conv.kind_of? Proc
|
208
|
+
s << conv.call(value)
|
209
|
+
else
|
210
|
+
s << CONVERTERS[converter[i]].call(value)
|
211
|
+
end
|
212
|
+
i += 1
|
213
|
+
s
|
214
|
+
end
|
215
|
+
return values
|
216
|
+
end
|
186
217
|
end
|
218
|
+
|
187
219
|
end
|
188
220
|
end
|
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
14
|
See the License for the specific language governing permissions and
|
15
15
|
limitations under the License.
|
16
16
|
=end
|
17
|
-
|
17
|
+
require_relative 'common_converters'
|
18
18
|
|
19
19
|
module JRubyFX
|
20
20
|
# Several utilities that have no better place to go
|
data/lib/jrubyfx/version.rb
CHANGED
data/lib/jrubyfx_tasks.rb
CHANGED
@@ -19,7 +19,6 @@ limitations under the License.
|
|
19
19
|
require 'open-uri'
|
20
20
|
require 'rake'
|
21
21
|
require 'tmpdir'
|
22
|
-
require "ant"
|
23
22
|
require "pathname"
|
24
23
|
|
25
24
|
module JRubyFX
|
@@ -84,6 +83,12 @@ module JRubyFX
|
|
84
83
|
FileList["#{File.dirname(__FILE__)}/*"].each do |librb|
|
85
84
|
cp_r librb, target
|
86
85
|
end
|
86
|
+
|
87
|
+
#copy fxmlloader in
|
88
|
+
require 'jrubyfx-fxmlloader'
|
89
|
+
FileList["#{File.dirname(MAGIC_FXML_JAVAFX_JRUBYFX_FXMLLOADER__FILE__LOCATION_SUPER_SECRET)}/*"].each do |librb|
|
90
|
+
cp_r librb, target
|
91
|
+
end
|
87
92
|
|
88
93
|
# edit the jar
|
89
94
|
base_dir = Dir.pwd
|
@@ -108,6 +113,9 @@ module JRubyFX
|
|
108
113
|
if ENV_JAVA["java.runtime.version"].match(/^1\.[0-7]{1}\..*/)
|
109
114
|
raise "You must install JDK 8 to use the native-bundle packaging tools. You can still create an executable jar, though."
|
110
115
|
end
|
116
|
+
|
117
|
+
# the native bundling uses ant
|
118
|
+
require "ant"
|
111
119
|
|
112
120
|
output_jar = Pathname.new(output_jar)
|
113
121
|
dist_dir = output_jar.parent
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jrubyfx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.2
|
5
4
|
prerelease:
|
5
|
+
version: 1.0.0
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Patrick Plenefisch
|
@@ -12,26 +12,56 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - '>='
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
24
|
-
MA==
|
23
|
+
version: '0'
|
25
24
|
none: false
|
26
25
|
requirement: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - '>='
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
MA==
|
29
|
+
version: '0'
|
32
30
|
none: false
|
33
31
|
prerelease: false
|
34
32
|
type: :development
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rspec
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
none: false
|
41
|
+
requirement: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
none: false
|
47
|
+
prerelease: false
|
48
|
+
type: :development
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: jrubyfx-fxmlloader
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.2'
|
56
|
+
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.2'
|
62
|
+
none: false
|
63
|
+
prerelease: false
|
64
|
+
type: :runtime
|
35
65
|
description: Enables JavaFX with FXML controllers and application in pure ruby
|
36
66
|
email:
|
37
67
|
- simonpatp@gmail.com
|
@@ -46,56 +76,42 @@ extra_rdoc_files: []
|
|
46
76
|
files:
|
47
77
|
- lib/jrubyfx.rb
|
48
78
|
- lib/jrubyfx_tasks.rb
|
79
|
+
- lib/jrubyfx/controller.rb
|
80
|
+
- lib/jrubyfx/application.rb
|
81
|
+
- lib/jrubyfx/utils.rb
|
49
82
|
- lib/jrubyfx/dsl.rb
|
50
|
-
- lib/jrubyfx/
|
51
|
-
- lib/jrubyfx/
|
52
|
-
- lib/jrubyfx/
|
83
|
+
- lib/jrubyfx/part_imports.rb
|
84
|
+
- lib/jrubyfx/dsl_map.rb
|
85
|
+
- lib/jrubyfx/imports.rb
|
86
|
+
- lib/jrubyfx/module.rb
|
53
87
|
- lib/jrubyfx/java_fx_impl.rb
|
54
|
-
- lib/jrubyfx/jfx_imports.rb
|
55
|
-
- lib/jrubyfx/utils.rb
|
56
88
|
- lib/jrubyfx/version.rb
|
57
|
-
- lib/jrubyfx/
|
58
|
-
- lib/jrubyfx/
|
59
|
-
- lib/jrubyfx/
|
89
|
+
- lib/jrubyfx/utils/common_utils.rb
|
90
|
+
- lib/jrubyfx/utils/common_converters.rb
|
91
|
+
- lib/jrubyfx/utils/__ignore_java_stupid_rdoc.rb
|
92
|
+
- lib/jrubyfx/core_ext/observable_value.rb
|
60
93
|
- lib/jrubyfx/core_ext/drag_event.rb
|
61
|
-
- lib/jrubyfx/core_ext/
|
62
|
-
- lib/jrubyfx/core_ext/
|
94
|
+
- lib/jrubyfx/core_ext/exts.yml
|
95
|
+
- lib/jrubyfx/core_ext/progress_indicator.rb
|
63
96
|
- lib/jrubyfx/core_ext/effects.rb
|
64
|
-
- lib/jrubyfx/core_ext/
|
65
|
-
- lib/jrubyfx/core_ext/image_view.rb
|
66
|
-
- lib/jrubyfx/core_ext/image_view.rb~
|
67
|
-
- lib/jrubyfx/core_ext/labeled.rb
|
97
|
+
- lib/jrubyfx/core_ext/stage.rb
|
68
98
|
- lib/jrubyfx/core_ext/media_player.rb
|
69
|
-
- lib/jrubyfx/core_ext/menu.rb
|
70
|
-
- lib/jrubyfx/core_ext/menu.rb~
|
71
|
-
- lib/jrubyfx/core_ext/menu_bar.rb
|
72
|
-
- lib/jrubyfx/core_ext/menu_bar.rb~
|
73
|
-
- lib/jrubyfx/core_ext/menu_item.rb
|
74
|
-
- lib/jrubyfx/core_ext/node.rb
|
75
|
-
- lib/jrubyfx/core_ext/observable_value.rb
|
76
99
|
- lib/jrubyfx/core_ext/pagination.rb
|
77
|
-
- lib/jrubyfx/core_ext/
|
78
|
-
- lib/jrubyfx/core_ext/parent.rb
|
79
|
-
- lib/jrubyfx/core_ext/path.rb
|
80
|
-
- lib/jrubyfx/core_ext/progress_indicator.rb
|
81
|
-
- lib/jrubyfx/core_ext/radial_gradient.rb
|
82
|
-
- lib/jrubyfx/core_ext/region.rb
|
83
|
-
- lib/jrubyfx/core_ext/rotate.rb
|
84
|
-
- lib/jrubyfx/core_ext/scene.rb
|
85
|
-
- lib/jrubyfx/core_ext/shape.rb
|
86
|
-
- lib/jrubyfx/core_ext/stage.rb
|
87
|
-
- lib/jrubyfx/core_ext/stop.rb
|
88
|
-
- lib/jrubyfx/core_ext/table_view.rb
|
89
|
-
- lib/jrubyfx/core_ext/timeline.rb
|
100
|
+
- lib/jrubyfx/core_ext/xy_chart.rb
|
90
101
|
- lib/jrubyfx/core_ext/transition.rb
|
91
|
-
- lib/jrubyfx/core_ext/
|
92
|
-
- lib/jrubyfx/core_ext/
|
102
|
+
- lib/jrubyfx/core_ext/border_pane.rb
|
103
|
+
- lib/jrubyfx/core_ext/image_view.rb
|
93
104
|
- lib/jrubyfx/core_ext/tree_view.rb
|
94
|
-
- lib/jrubyfx/core_ext/
|
95
|
-
- lib/jrubyfx/core_ext/
|
96
|
-
- lib/jrubyfx/
|
97
|
-
- lib/jrubyfx/
|
98
|
-
- lib/jrubyfx/
|
105
|
+
- lib/jrubyfx/core_ext/table_view.rb
|
106
|
+
- lib/jrubyfx/core_ext/region.rb
|
107
|
+
- lib/jrubyfx/core_ext/timeline.rb
|
108
|
+
- lib/jrubyfx/core_ext/duration.rb
|
109
|
+
- lib/jrubyfx/core_ext/rotate.rb
|
110
|
+
- lib/jrubyfx/core_ext/column_constraints.rb
|
111
|
+
- lib/jrubyfx/core_ext/precompiled.rb
|
112
|
+
- lib/jrubyfx/core_ext/radial_gradient.rb
|
113
|
+
- lib/jrubyfx/core_ext/path.rb
|
114
|
+
- lib/jrubyfx/core_ext/file_chooser.rb
|
99
115
|
- LICENSE
|
100
116
|
- README.md
|
101
117
|
- bin/jrubyfx-generator
|
@@ -108,17 +124,15 @@ require_paths:
|
|
108
124
|
- lib
|
109
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
126
|
requirements:
|
111
|
-
- -
|
127
|
+
- - '>='
|
112
128
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
114
|
-
MA==
|
129
|
+
version: '0'
|
115
130
|
none: false
|
116
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
132
|
requirements:
|
118
|
-
- -
|
133
|
+
- - '>='
|
119
134
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
121
|
-
MA==
|
135
|
+
version: '0'
|
122
136
|
none: false
|
123
137
|
requirements: []
|
124
138
|
rubyforge_project: jrubyfx
|
@@ -1,26 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
JRubyFX - Write JavaFX and FXML in Ruby
|
3
|
-
Copyright (C) 2013 The JRubyFX Team
|
4
|
-
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
you may not use this file except in compliance with the License.
|
7
|
-
You may obtain a copy of the License at
|
8
|
-
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
See the License for the specific language governing permissions and
|
15
|
-
limitations under the License.
|
16
|
-
=end
|
17
|
-
require 'jrubyfx/utils/common_converters'
|
18
|
-
|
19
|
-
# JRubyFX DSL extensions for JavaFX Circles
|
20
|
-
class Java::javafx::scene::shape::Circle
|
21
|
-
class << self
|
22
|
-
extend JRubyFX::Utils::CommonConverters
|
23
|
-
|
24
|
-
converter_for :new, [], [:none], [:none, :color], [:none, :none, :none], [:none, :none, :none, :color]
|
25
|
-
end
|
26
|
-
end
|