# File tk/lib/tkextlib/tcllib/plotchart.rb, line 1372
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 1383
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 1401
def dataconfig(key, value=None)
@chart_obj.dataconfig(@series, key, value)
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.