Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
# File tk/lib/tkextlib/blt/component.rb, line 1075 def self.new(chart, keys={}) obj = nil PostscriptID_TBL.mutex.synchronize{ unless (obj = PostscriptID_TBL[chart.path]) (obj = self.allocate).instance_eval{ @parent = @chart = chart @cpath = @chart.path @path = @id = 'postscript' Postscript::PostscriptID_TBL[@cpath] = self } end } chart.postscript_configure(keys) if obj && ! keys.empty? obj end
# File tk/lib/tkextlib/blt/component.rb, line 1091 def initialize(chart, keys={}) # dummy:: not called by 'new' method @parent = @chart = chart @cpath = @chart.path # Postscript::PostscriptID_TBL[@cpath] = self @chart.postscript_configure(keys) unless keys.empty? @path = @id = 'postscript' end
# File tk/lib/tkextlib/blt/component.rb, line 1109 def cget(option) @chart.postscript_cget(option) end
# File tk/lib/tkextlib/blt/component.rb, line 1112 def cget_strict(option) @chart.postscript_cget_strict(option) end
# File tk/lib/tkextlib/blt/component.rb, line 1119 def configinfo(key=nil) @chart.postscript_configinfo(key) end
# File tk/lib/tkextlib/blt/component.rb, line 1115 def configure(key, value=None) @chart.postscript_configure(key, value) self end
# File tk/lib/tkextlib/blt/component.rb, line 1122 def current_configinfo(key=nil) @chart.current_postscript_configinfo(key) end