Method: Tk::BLT::PlotComponent::Legend#initialize
- Defined in:
- lib/tkextlib/blt/component.rb
#initialize(chart, keys = {}) ⇒ Legend
Returns a new instance of Legend.
940 941 942 943 944 945 946 947 948 |
# File 'lib/tkextlib/blt/component.rb', line 940 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 |