In Files

  • tk/lib/tkextlib/tcllib/plotchart.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Plotchart::PlotSeries

Public Class Methods

id2obj(chart, id) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 853
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
            
new(chart, keys=nil) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 864
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
            

Public Instance Methods

dataconfig(key, value=None) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 882
def dataconfig(key, value=None)
  @chart_obj.dataconfig(@series, key, value)
end
            
mutex() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 846
def mutex; @mutex; end
            
plot(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 878
def plot(*args)
  @chart_obj.plot(@series, *args)
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.

blog comments powered by Disqus