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


913
914
915
916
917
918
919
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 913

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

#fill=(value) ⇒ Object


910
911
912
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 910

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

#stroke=(value) ⇒ Object


907
908
909
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 907

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

#stroke_line_cap=(rbenum) ⇒ Object


898
899
900
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 898

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


901
902
903
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 901

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


904
905
906
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 904

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