In Files

  • tk/lib/tkextlib/blt/component.rb

Class/Module Index [+]

Quicksearch

Tk::BLT::PlotComponent::Legend

Constants

LegendID_TBL

Public Class Methods

new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 876
def self.new(chart, keys={})
  obj = nil
  LegenedID_TBL.mutex.synchronize{
    unless (obj = LegenedID_TBL[chart.path])
      (obj = self.allocate).instance_eval{
        @parent = @chart = chart
        @cpath = @chart.path
        @path = @id = 'crosshairs'
        Legend::LegenedID_TBL[@cpath] = self
      }
    end
  }
  chart.legend_configure(keys) if obj && ! keys.empty?
  obj
end
            
new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 892
def initialize(chart, keys={})
  # dummy:: not called by 'new' method

  @parent = @chart = chart
  @cpath = @chart.path
  # Legend::LegendID_TBL[@cpath] = self
  @chart.legend_configure(keys) unless keys.empty?
  @path = @id = 'legend'
end
            

Public Instance Methods

activate(*args) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 927
def activate(*args)
  @chart.legend_activate(*args)
end
            
cget(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 910
def cget(option)
  @chart.legend_cget(option)
end
            
cget_strict(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 913
def cget_strict(option)
  @chart.legend_cget_strict(option)
end
            
configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 920
def configinfo(key=nil)
  @chart.legend_configinfo(key)
end
            
configure(key, value=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 916
def configure(key, value=None)
  @chart.legend_configure(key, value)
  self
end
            
current_configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 923
def current_configinfo(key=nil)
  @chart.current_legend_configinfo(key)
end
            
deactivate(*args) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 931
def deactivate(*args)
  @chart.legend_deactivate(*args)
end
            
get(pos, y=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 935
def get(pos, y=nil)
  @chart.legend_get(pos, y)
end
            
id() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 902
def id
  @id
end
            
to_eval() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 906
def to_eval
  @id
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