# File tk/lib/tkextlib/blt/component.rb, line 551 def self.new(chart, keys={}) obj = nil CrosshairsID_TBL.mutex.synchronize{ unless (obj = CrosshairsID_TBL[chart.path]) (obj = self.allocate).instance_eval{ @parent = @chart = chart @cpath = @chart.path @path = @id = 'crosshairs' Crosshairs::CrosshairsID_TBL[@cpath] = self } end } chart.crosshair_configure(keys) if obj && ! keys.empty? obj end
# File tk/lib/tkextlib/blt/component.rb, line 567 def initialize(chart, keys={}) # dummy:: not called by 'new' method @parent = @chart = chart @cpath = @chart.path # Crosshairs::CrosshairsID_TBL[@cpath] = self @chart.crosshair_configure(keys) unless keys.empty? @path = @id = 'crosshairs' end
# File tk/lib/tkextlib/blt/component.rb, line 585 def cget(option) @chart.crosshair_cget(option) end
# File tk/lib/tkextlib/blt/component.rb, line 588 def cget_strict(option) @chart.crosshair_cget_strict(option) end
# File tk/lib/tkextlib/blt/component.rb, line 595 def configinfo(key=nil) @chart.crosshair_configinfo(key) end
# File tk/lib/tkextlib/blt/component.rb, line 591 def configure(key, value=None) @chart.crosshair_configure(key, value) self end
# File tk/lib/tkextlib/blt/component.rb, line 598 def current_configinfo(key=nil) @chart.current_crosshair_configinfo(key) end
# File tk/lib/tkextlib/blt/component.rb, line 602 def off @chart.crosshair_off self end
# File tk/lib/tkextlib/blt/component.rb, line 606 def on @chart.crosshair_on self end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.