Class: Java::JavafxSceneShape::Shape

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

#fill(*r) ⇒ Object



1278
1279
1280
1281
1282
1283
1284
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1278

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

#fill=(value) ⇒ Object



1272
1273
1274
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1272

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

#stroke=(value) ⇒ Object



1275
1276
1277
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1275

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

#stroke_line_cap=(rbenum) ⇒ Object



1269
1270
1271
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1269

def stroke_line_cap=(rbenum)
  java_send "setStrokeLineCap", [Java::JavafxSceneShape::StrokeLineCap], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeLineCap)
end

#stroke_line_join=(rbenum) ⇒ Object



1266
1267
1268
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1266

def stroke_line_join=(rbenum)
  java_send "setStrokeLineJoin", [Java::JavafxSceneShape::StrokeLineJoin], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeLineJoin)
end

#stroke_type=(rbenum) ⇒ Object



1263
1264
1265
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1263

def stroke_type=(rbenum)
  java_send "setStrokeType", [Java::JavafxSceneShape::StrokeType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeType)
end