# File tk/lib/tkextlib/tcllib/plotchart.rb, line 1371 def self.id2obj(chart, id) path = chart.path SeriesID_TBL.mutex.synchronize{ if SeriesID_TBL[path] SeriesID_TBL[path][id]? SeriesID_TBL[path][id]: id else id end } end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 1382 def initialize(chart, keys=nil) @parent = @chart_obj = chart @ppath = @chart_obj.path Series_ID.mutex.synchronize{ @path = @series = @id = Series_ID.join(TkCore::INTERP._ip_id_) Series_ID[1].succ! } SeriesID_TBL.mutex.synchronize{ SeriesID_TBL[@ppath] ||= {} SeriesID_TBL[@ppath][@id] = self } dataconfig(keys) if keys.kind_of?(Hash) end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 1400 def dataconfig(key, value=None) @chart_obj.dataconfig(@series, key, value) end