In Files

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

Class/Module Index [+]

Quicksearch

Tk::BLT::PlotComponent::Legend

Constants

OBJ_TBL

Public Class Methods

new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 681
def self.new(chart, keys={})
  return OBJ_TBL[chart.path] if OBJ_TBL[chart.path]
  super(chart, keys)
end
            
new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 686
def initialize(chart, keys={})
  @parent = @chart = chart
  @cpath = @chart.path
  Crosshairs::OBJ_TBL[@cpath] = self
  @chart.crosshair_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 716
def activate(*args)
  @chart.legend_activate(*args)
end
            
cget(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 702
def cget(option)
  @chart.legend_cget(option)
end
            
configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 709
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 705
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 712
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 720
def deactivate(*args)
  @chart.legend_deactivate(*args)
end
            
get(pos, y=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 724
def get(pos, y=nil)
  @chart.legend_get(pos, y)
end
            
id() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 694
def id
  @id
end
            
to_eval() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 698
def to_eval
  @id
end