Methods
A
C
D
G
I
N
T
Constants
LegendID_TBL = TkCore::INTERP.create_table
 
Class Public methods
new(chart, keys={})
# File ext/tk/lib/tkextlib/blt/component.rb, line 923
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={})
# File ext/tk/lib/tkextlib/blt/component.rb, line 939
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
Instance Public methods
activate(*args)
# File ext/tk/lib/tkextlib/blt/component.rb, line 977
def activate(*args)
  @chart.legend_activate(*args)
end
cget(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 960
def cget(option)
  @chart.legend_cget(option)
end
cget_strict(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 963
def cget_strict(option)
  @chart.legend_cget_strict(option)
end
cget_tkstring(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 957
def cget_tkstring(option)
  @chart.legend_cget_tkstring(option)
end
configinfo(key=nil)
# File ext/tk/lib/tkextlib/blt/component.rb, line 970
def configinfo(key=nil)
  @chart.legend_configinfo(key)
end
configure(key, value=None)
# File ext/tk/lib/tkextlib/blt/component.rb, line 966
def configure(key, value=None)
  @chart.legend_configure(key, value)
  self
end
current_configinfo(key=nil)
# File ext/tk/lib/tkextlib/blt/component.rb, line 973
def current_configinfo(key=nil)
  @chart.current_legend_configinfo(key)
end
deactivate(*args)
# File ext/tk/lib/tkextlib/blt/component.rb, line 981
def deactivate(*args)
  @chart.legend_deactivate(*args)
end
get(pos, y=nil)
# File ext/tk/lib/tkextlib/blt/component.rb, line 985
def get(pos, y=nil)
  @chart.legend_get(pos, y)
end
id()
# File ext/tk/lib/tkextlib/blt/component.rb, line 949
def id
  @id
end
to_eval()
# File ext/tk/lib/tkextlib/blt/component.rb, line 953
def to_eval
  @id
end