module Tk::BLT::PlotComponent - tk-0.1.2 Documentation

# module Tk::BLT::PlotComponent

### Public Instance Methods

__current_itemconfiginfo(tagOrId, slot = nil)
Alias for: current_itemconfiginfo
__destroy_hook__() click to toggle source
Calls superclass method

    # File lib/tkextlib/blt/component.rb, line 1399
    def __destroy_hook__
      Axis::AxisID_TBL.delete(@path)
      Crosshairs::CrosshairsID_TBL.delete(@path)
      Element::ElementID_TBL.delete(@path)
      GridLine::GridLineID_TBL.delete(@path)
      Legend::LegendID_TBL.delete(@path)
      Pen::PenID_TBL.delete(@path)
      Postscript::PostscriptID_TBL.delete(@path)
      Marker::MarkerID_TBL.delete(@path)
      super()
    end

__itemcget(tagOrId, option)
Alias for: itemcget
__itemcget_strict(tagOrId, option)
Alias for: itemcget_strict
__itemcget_tkstring(tagOrId, option)
Alias for: itemcget_tkstring
__itemconfiginfo(tagOrId, slot = nil)
Alias for: itemconfiginfo
axis_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1456
    def axis_bind(tag, context, *args)
      _component_bind('axis', tag, context, *args)
    end

axis_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1459
    def axis_bind_append(tag, context, *args)
      _component_bind_append('axis', tag, context, *args)
    end

axis_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1462
    def axis_bind_remove(tag, context)
      _component_bind_remove('axis', tag, context)
    end

axis_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1465
    def axis_bindinfo(tag, context=nil)
      _component_bindinfo('axis', tag, context)
    end

axis_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 89
    def axis_cget(id, option)
      ret = itemcget(['axis', tagid(id)], option)
    end

axis_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 92
    def axis_cget_strict(id, option)
      ret = itemcget_strict(['axis', tagid(id)], option)
    end

axis_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 86
    def axis_cget_tkstring(id, option)
      ret = itemcget_tkstring(['axis', tagid(id)], option)
    end

axis_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 118
    def axis_configinfo(id, slot=nil)
      itemconfiginfo(['axis', tagid(id)], slot)
    end

axis_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 95
    def axis_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
        slot = _symbolkey2str(slot)
        if cmd = slot.delete('command')
          slot['command'] = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      else
        value = slot
        slot = args.pop
        if slot == :command || slot == 'command'
          cmd = value
          value = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('axis')
      itemconfigure(id_list, slot, value)
    end

axis_create(id=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1536
    def axis_create(id=nil, keys={})
      # tk_send('axis', 'create', tagid(id), keys)
      Tk::BLT::PlotComponent::Axis.new(self, tagid(id), keys)
    end

axis_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1540
    def axis_delete(*ids)
      tk_send('axis', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

axis_invtransform(id, val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1544
    def axis_invtransform(id, val)
      list(tk_send('axis', 'invtransform', tagid(id), val))
    end

axis_limits(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1547
    def axis_limits(id)
      list(tk_send('axis', 'limits', tagid(id)))
    end

axis_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1550
    def axis_names(*pats)
      simplelist(tk_send('axis', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|axis|
        Tk::BLT::PlotComponent::Axis.id2obj(self, axis)
      }
    end

axis_transform(id, val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1556
    def axis_transform(id, val)
      list(tk_send('axis', 'transform', tagid(id), val))
    end

axis_use(id, target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1563
    def axis_use(id, target=nil)
      if target
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('axis', 'use',
                                                    tagid(id), tagid(target)))
      else
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('axis', 'use', tagid(id)))
      end
    end

axis_view(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1559
    def axis_view(id)
      tk_send('axis', 'view', tagid(id))
      self
    end

bar(id=nil, keys={})
Alias for: bar_create
bar_activate(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1652
    def bar_activate(*args)
      if args.empty?
        list(tk_send('bar', 'activate')).collect{|elem|
          Tk::BLT::PlotComponent::Element.id2obj(self, elem)
        }
      else
        # id, *indices
        id = args.shift
        tk_send('bar', 'activate', tagid(id), *args)
      end
    end

bar_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1482
    def bar_bind(tag, context, *args)
      _component_bind('bar', tag, context, *args)
    end

bar_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1485
    def bar_bind_append(tag, context, *args)
      _component_bind_append('bar', tag, context, *args)
    end

bar_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1488
    def bar_bind_remove(tag, context)
      _component_bind_remove('bar', tag, context)
    end

bar_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1491
    def bar_bindinfo(tag, context=nil)
      _component_bindinfo('bar', tag, context)
    end

bar_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 174
    def bar_cget(id, option)
      itemcget(['bar', tagid(id)], option)
    end

bar_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 177
    def bar_cget_strict(id, option)
      itemcget_strict(['bar', tagid(id)], option)
    end

bar_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 171
    def bar_cget_tkstring(id, option)
      itemcget_tkstring(['bar', tagid(id)], option)
    end

bar_closest(x, y, var, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1663
    def bar_closest(x, y, var, *args)
      if args[-1].kind_of?(Hash)
        keys = args.pop
        bool(tk_send('bar', 'closest', x, y, var,
                     *(hash_kv(keys).concat(args.collect{|id| tagid(id)}))))
      else
        bool(tk_send('bar', 'closest', x, y, var,
                     *(args.collect{|id| tagid(id)})))
      end
    end

bar_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 191
    def bar_configinfo(id, slot=nil)
      itemconfiginfo(['bar', tagid(id)], slot)
    end

bar_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 180
    def bar_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
      else
        value = slot
        slot = args.pop
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('bar')
      itemconfigure(id_list, slot, value)
    end

bar_create(id=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1647
    def bar_create(id=nil, keys={})
      # tk_send('bar', 'create', tagid(id), keys)
      Tk::BLT::PlotComponent::Bar.new(self, tagid(id), keys)
    end

Also aliased as: bar
bar_deactivate(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1673
    def bar_deactivate(*ids)
      tk_send('bar', 'deactivate', *(ids.collect{|id| tagid(id)}))
      self
    end

bar_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1677
    def bar_delete(*ids)
      tk_send('bar', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

bar_exist?(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1681
    def bar_exist?(id)
      bool(tk_send('bar', 'exists', tagid(id)))
    end

bar_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1684
    def bar_names(*pats)
      simplelist(tk_send('bar', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|elem|
        Tk::BLT::PlotComponent::Element.id2obj(self, elem)
      }
    end

bar_show(*names) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1690
    def bar_show(*names)
      if names.empty?
        simplelist(tk_send('bar', 'show'))
      else
        tk_send('bar', 'show', *(names.collect{|n| tagid(n)}))
        self
      end
    end

bar_type(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1698
    def bar_type(id)
      tk_send('bar', 'type', tagid(id))
    end

crosshairs_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 128
    def crosshairs_cget(option)
      itemcget('crosshairs', option)
    end

crosshairs_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 131
    def crosshairs_cget_strict(option)
      itemcget_strict('crosshairs', option)
    end

crosshairs_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 125
    def crosshairs_cget_tkstring(option)
      itemcget_tkstring('crosshairs', option)
    end

crosshairs_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 137
    def crosshairs_configinfo(slot=nil)
      itemconfiginfo('crosshairs', slot)
    end

crosshairs_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 134
    def crosshairs_configure(slot, value=None)
      itemconfigure('crosshairs', slot, value)
    end

crosshairs_off() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1576
    def crosshairs_off
      tk_send_without_enc('crosshairs', 'off')
      self
    end

crosshairs_on() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1580
    def crosshairs_on
      tk_send_without_enc('crosshairs', 'on')
      self
    end

crosshairs_toggle() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1584
    def crosshairs_toggle
      tk_send_without_enc('crosshairs', 'toggle')
      self
    end

current_axis_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 121
    def current_axis_configinfo(id, slot=nil)
      current_itemconfiginfo(['axis', tagid(id)], slot)
    end

current_bar_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 194
    def current_bar_configinfo(id, slot=nil)
      current_itemconfiginfo(['bar', tagid(id)], slot)
    end

current_crosshairs_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 140
    def current_crosshairs_configinfo(slot=nil)
      current_itemconfiginfo('crosshairs', slot)
    end

current_element_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 167
    def current_element_configinfo(id, slot=nil)
      current_itemconfiginfo(['element', tagid(id)], slot)
    end

current_gridline_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 240
    def current_gridline_configinfo(slot=nil)
      current_itemconfiginfo('grid', slot)
    end

current_legend_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 259
    def current_legend_configinfo(slot=nil)
      current_itemconfiginfo('legend', slot)
    end

current_line_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 221
    def current_line_configinfo(id, slot=nil)
      current_itemconfiginfo(['line', tagid(id)], slot)
    end

current_marker_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 332
    def current_marker_configinfo(id, slot=nil)
      current_itemconfiginfo(['marker', tagid(id)], slot)
    end

current_pen_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 286
    def current_pen_configinfo(id, slot=nil)
      current_itemconfiginfo(['pen', tagid(id)], slot)
    end

current_postscript_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 305
    def current_postscript_configinfo(slot=nil)
      current_itemconfiginfo('postscript', slot)
    end

current_x2axis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2022
    def current_x2axis_configinfo(slot=nil)
      current_itemconfiginfo('x2axis', slot)
    end

current_xaxis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1947
    def current_xaxis_configinfo(slot=nil)
      current_itemconfiginfo('xaxis', slot)
    end

current_y2axis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2172
    def current_y2axis_configinfo(slot=nil)
      current_itemconfiginfo('y2axis', slot)
    end

current_yaxis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2097
    def current_yaxis_configinfo(slot=nil)
      current_itemconfiginfo('yaxis', slot)
    end

element_activate(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1595
    def element_activate(*args)
      if args.empty?
        list(tk_send('element', 'activate')).collect{|elem|
          Tk::BLT::PlotComponent::Element.id2obj(self, elem)
        }
      else
        # id, *indices
        id = args.shift
        tk_send('element', 'activate', tagid(id), *args)
      end
    end

element_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1469
    def element_bind(tag, context, *args)
      _component_bind('element', tag, context, *args)
    end

element_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1472
    def element_bind_append(tag, context, *args)
      _component_bind_append('element', tag, context, *args)
    end

element_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1475
    def element_bind_remove(tag, context)
      _component_bind_remove('element', tag, context)
    end

element_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1478
    def element_bindinfo(tag, context=nil)
      _component_bindinfo('element', tag, context)
    end

element_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 147
    def element_cget(id, option)
      itemcget(['element', tagid(id)], option)
    end

element_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 150
    def element_cget_strict(id, option)
      itemcget_strict(['element', tagid(id)], option)
    end

element_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 144
    def element_cget_tkstring(id, option)
      itemcget_tkstring(['element', tagid(id)], option)
    end

element_closest(x, y, var, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1606
    def element_closest(x, y, var, *args)
      if args[-1].kind_of?(Hash)
        keys = args.pop
        bool(tk_send('element', 'closest', x, y, var,
                     *(hash_kv(keys).concat(args.collect{|id| tagid(id)}))))
      else
        bool(tk_send('element', 'closest', x, y, var,
                     *(args.collect{|id| tagid(id)})))
      end
    end

element_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 164
    def element_configinfo(id, slot=nil)
      itemconfiginfo(['element', tagid(id)], slot)
    end

element_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 153
    def element_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
      else
        value = slot
        slot = args.pop
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('element')
      itemconfigure(id_list, slot, value)
    end

element_create(id=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1591
    def element_create(id=nil, keys={})
      # tk_send('element', 'create', tagid(id), keys)
      Tk::BLT::PlotComponent::Element.new(self, tagid(id), keys)
    end

element_deactivate(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1616
    def element_deactivate(*ids)
      tk_send('element', 'deactivate', *(ids.collect{|id| tagid(id)}))
      self
    end

element_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1620
    def element_delete(*ids)
      tk_send('element', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

element_exist?(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1624
    def element_exist?(id)
      bool(tk_send('element', 'exists', tagid(id)))
    end

element_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1627
    def element_names(*pats)
      simplelist(tk_send('element', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|elem|
        Tk::BLT::PlotComponent::Element.id2obj(self, elem)
      }
    end

element_show(*names) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1633
    def element_show(*names)
      if names.empty?
        simplelist(tk_send('element', 'show'))
      else
        tk_send('element', 'show', *(names.collect{|n| tagid(n)}))
        self
      end
    end

element_type(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1641
    def element_type(id)
      tk_send('element', 'type', tagid(id))
    end

gridline_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 228
    def gridline_cget(option)
      itemcget('grid', option)
    end

gridline_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 231
    def gridline_cget_strict(option)
      itemcget_strict('grid', option)
    end

gridline_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 225
    def gridline_cget_tkstring(option)
      itemcget_tkstring('grid', option)
    end

gridline_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 237
    def gridline_configinfo(slot=nil)
      itemconfiginfo('grid', slot)
    end

gridline_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 234
    def gridline_configure(slot, value=None)
      itemconfigure('grid', slot, value)
    end

gridline_off() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1761
    def gridline_off
      tk_send_without_enc('grid', 'off')
      self
    end

gridline_on() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1765
    def gridline_on
      tk_send_without_enc('grid', 'on')
      self
    end

gridline_toggle() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1769
    def gridline_toggle
      tk_send_without_enc('grid', 'toggle')
      self
    end

legend_activate(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1804
    def legend_activate(*pats)
      list(tk_send('legend', 'activate',
                   *(pats.collect{|pat| tagid(pat)}))).collect{|elem|
        Tk::BLT::PlotComponent::Element.id2obj(self, elem)
      }
    end

legend_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1508
    def legend_bind(tag, context, *args)
      _component_bind('legend', tag, context, *args)
    end

legend_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1511
    def legend_bind_append(tag, context, *args)
      _component_bind_append('legend', tag, context, *args)
    end

legend_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1514
    def legend_bind_remove(tag, context)
      _component_bind_remove('legend', tag, context)
    end

legend_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1517
    def legend_bindinfo(tag, context=nil)
      _component_bindinfo('legend', tag, context)
    end

legend_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 247
    def legend_cget(option)
      itemcget('legend', option)
    end

legend_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 250
    def legend_cget_strict(option)
      itemcget_strict('legend', option)
    end

legend_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 244
    def legend_cget_tkstring(option)
      itemcget_tkstring('legend', option)
    end

legend_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 256
    def legend_configinfo(slot=nil)
      itemconfiginfo('legend', slot)
    end

legend_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 253
    def legend_configure(slot, value=None)
      itemconfigure('legend', slot, value)
    end

legend_deactivate(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1810
    def legend_deactivate(*pats)
      list(tk_send('legend', 'deactivate',
                   *(pats.collect{|pat| tagid(pat)}))).collect{|elem|
        Tk::BLT::PlotComponent::Element.id2obj(self, elem)
      }
    end

legend_get(pos, y=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1816
    def legend_get(pos, y=nil)
      if y
        Tk::BLT::PlotComponent::Element.id2obj(self,
                                               tk_send('legend', 'get',
                                                       _at(pos, y)))
      else
        Tk::BLT::PlotComponent::Element.id2obj(self,
                                               tk_send('legend', 'get', pos))
      end
    end

legend_window_create(parent=nil, keys=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1776
    def legend_window_create(parent=nil, keys=nil)
      if parent.kind_of?(Hash)
        keys = _symbolkey2str(parent)
        parent = keys.delete('parent')
        widgetname = keys.delete('widgetname')
        keys.delete('without_creating')
      elsif keys
        keys = _symbolkey2str(keys)
        widgetname = keys.delete('widgetname')
        keys.delete('without_creating')
      end

      legend = self.class.new(parent, :without_creating=>true,
                              :widgetname=>widgetname)
      class << legend
        def __destroy_hook__
          TkCore::INTERP.tk_windows.delete(@path)
        end
      end

      if keys
        self.legend_configure(keys.update('position'=>legend))
      else
        self.legend_configure('position'=>legend)
      end
      legend
    end

line_activate(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1709
    def line_activate(*args)
      if args.empty?
        list(tk_send('line', 'activate')).collect{|elem|
          Tk::BLT::PlotComponent::Element.id2obj(self, elem)
        }
      else
        # id, *indices
        id = args.shift
        tk_send('line', 'activate', tagid(id), *args)
      end
    end

line_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1495
    def line_bind(tag, context, *args)
      _component_bind('line', tag, context, *args)
    end

line_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1498
    def line_bind_append(tag, context, *args)
      _component_bind_append('line', tag, context, *args)
    end

line_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1501
    def line_bind_remove(tag, context)
      _component_bind_remove('line', tag, context)
    end

line_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1504
    def line_bindinfo(tag, context=nil)
      _component_bindinfo('line', tag, context)
    end

line_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 201
    def line_cget(id, option)
      itemcget(['line', tagid(id)], option)
    end

line_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 204
    def line_cget_strict(id, option)
      itemcget_strict(['line', tagid(id)], option)
    end

line_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 198
    def line_cget_tkstring(id, option)
      itemcget_tkstring(['line', tagid(id)], option)
    end

line_closest(x, y, var, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1720
    def line_closest(x, y, var, *args)
      if args[-1].kind_of?(Hash)
        keys = args.pop
        bool(tk_send('line', 'closest', x, y, var,
                     *(hash_kv(keys).concat(args.collect{|id| tagid(id)}))))
      else
        bool(tk_send('line', 'closest', x, y, var,
                     *(args.collect{|id| tagid(id)})))
      end
    end

line_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 218
    def line_configinfo(id, slot=nil)
      itemconfiginfo(['line', tagid(id)], slot)
    end

line_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 207
    def line_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
      else
        value = slot
        slot = args.pop
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('line')
      itemconfigure(id_list, slot, value)
    end

line_create(id=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1704
    def line_create(id=nil, keys={})
      # tk_send('line', 'create', tagid(id), keys)
      Tk::BLT::PlotComponent::Line.new(self, tagid(id), keys)
    end

Also aliased as: bar
line_deactivate(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1730
    def line_deactivate(*ids)
      tk_send('line', 'deactivate', *(ids.collect{|id| tagid(id)}))
      self
    end

line_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1734
    def line_delete(*ids)
      tk_send('line', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

line_exist?(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1738
    def line_exist?(id)
      bool(tk_send('line', 'exists', tagid(id)))
    end

line_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1741
    def line_names(*pats)
      simplelist(tk_send('line', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|elem|
        Tk::BLT::PlotComponent::Element.id2obj(self, elem)
      }
    end

line_show(*names) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1747
    def line_show(*names)
      if names.empty?
        simplelist(tk_send('line', 'show'))
      else
        tk_send('line', 'show', *(names.collect{|n| tagid(n)}))
        self
      end
    end

line_type(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1755
    def line_type(id)
      tk_send('line', 'type', tagid(id))
    end

marker_after(id, target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1884
    def marker_after(id, target=nil)
      if target
        tk_send_without_enc('marker', 'after', tagid(id), tagid(target))
      else
        tk_send_without_enc('marker', 'after', tagid(id))
      end
      self
    end

marker_before(id, target=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1892
    def marker_before(id, target=None)
      if target
        tk_send_without_enc('marker', 'before', tagid(id), tagid(target))
      else
        tk_send_without_enc('marker', 'before', tagid(id))
      end
      self
    end

marker_bind(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1521
    def marker_bind(tag, context, *args)
      _component_bind('marker', tag, context, *args)
    end

marker_bind_append(tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1524
    def marker_bind_append(tag, context, *args)
      _component_bind_append('marker', tag, context, *args)
    end

marker_bind_remove(tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1527
    def marker_bind_remove(tag, context)
      _component_bind_remove('marker', tag, context)
    end

marker_bindinfo(tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1530
    def marker_bindinfo(tag, context=nil)
      _component_bindinfo('marker', tag, context)
    end

marker_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 312
    def marker_cget(id, option)
      itemcget(['marker', tagid(id)], option)
    end

marker_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 315
    def marker_cget_strict(id, option)
      itemcget_strict(['marker', tagid(id)], option)
    end

marker_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 309
    def marker_cget_tkstring(id, option)
      itemcget_tkstring(['marker', tagid(id)], option)
    end

marker_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 329
    def marker_configinfo(id, slot=nil)
      itemconfiginfo(['marker', tagid(id)], slot)
    end

marker_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 318
    def marker_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
      else
        value = slot
        slot = args.pop
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('marker')
      itemconfigure(id_list, slot, value)
    end

marker_create(type, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1862
    def marker_create(type, keys={})
      case type
      when :text, 'text'
        Tk::BLT::PlotComponent::TextMarker.new(self, keys)
      when :line, 'line'
        Tk::BLT::PlotComponent::LineMarker.new(self, keys)
      when :bitmap, 'bitmap'
        Tk::BLT::PlotComponent::BitmapMarker.new(self, keys)
      when :image, 'image'
        Tk::BLT::PlotComponent::ImageMarker.new(self, keys)
      when :polygon, 'polygon'
        Tk::BLT::PlotComponent::PolygonMarker.new(self, keys)
      when :window, 'window'
        Tk::BLT::PlotComponent::WindowMarker.new(self, keys)
      else
        if type.kind_of?(Tk::BLT::PlotComponent::Marker)
          type.new(self, keys)
        else
          Tk::BLT::PlotComponent::Marker.create_type(self, type, keys)
        end
      end
    end

marker_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1900
    def marker_delete(*ids)
      tk_send('marker', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

marker_exist?(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1904
    def marker_exist?(id)
      bool(tk_send('marker', 'exists', tagid(id)))
    end

marker_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1907
    def marker_names(*pats)
      simplelist(tk_send('marker', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|id|
        Tk::BLT::PlotComponent::Marker.id2obj(self, id)
      }
    end

marker_type(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1913
    def marker_type(id)
      tk_send('marker', 'type', tagid(id))
    end

pen_cget(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 266
    def pen_cget(id, option)
      itemcget(['pen', tagid(id)], option)
    end

pen_cget_strict(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 269
    def pen_cget_strict(id, option)
      itemcget_strict(['pen', tagid(id)], option)
    end

pen_cget_tkstring(id, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 263
    def pen_cget_tkstring(id, option)
      itemcget_tkstring(['pen', tagid(id)], option)
    end

pen_configinfo(id, slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 283
    def pen_configinfo(id, slot=nil)
      itemconfiginfo(['pen', tagid(id)], slot)
    end

pen_configure(*args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 272
    def pen_configure(*args)
      slot = args.pop
      if slot.kind_of?(Hash)
        value = None
      else
        value = slot
        slot = args.pop
      end
      id_list = args.flatten.collect!{|id| tagid(id)}.unshift('pen')
      itemconfigure(id_list, slot, value)
    end

pen_create(id=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1829
    def pen_create(id=nil, keys={})
      # tk_send('pen', 'create', tagid(id), keys)
      Tk::BLT::PlotComponent::Pen.new(self, tagid(id), keys)
    end

pen_delete(*ids) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1833
    def pen_delete(*ids)
      tk_send('pen', 'delete', *(ids.collect{|id| tagid(id)}))
      self
    end

pen_names(*pats) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1837
    def pen_names(*pats)
      simplelist(tk_send('pen', 'names',
                         *(pats.collect{|pat| tagid(pat)}))).collect{|pen|
        Tk::BLT::PlotComponent::Pen.id2obj(self, pen)
      }
    end

postscript_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 293
    def postscript_cget(option)
      itemcget('postscript', option)
    end

postscript_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 296
    def postscript_cget_strict(option)
      itemcget_strict('postscript', option)
    end

postscript_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 290
    def postscript_cget_tkstring(option)
      itemcget_tkstring('postscript', option)
    end

postscript_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 302
    def postscript_configinfo(slot=nil)
      itemconfiginfo('postscript', slot)
    end

postscript_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 299
    def postscript_configure(slot, value=None)
      itemconfigure('postscript', slot, value)
    end

postscript_output(file=nil, keys={}) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1846
    def postscript_output(file=nil, keys={})
      if file.kind_of?(Hash)
        keys = file
        file = nil
      end

      if file
        tk_send('postscript', 'output', file, keys)
        self
      else
        tk_send('postscript', 'output', keys)
      end
    end

tagid(tag) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1413
    def tagid(tag)
      if tag.kind_of?(Axis) ||
          tag.kind_of?(Crosshairs) ||
          tag.kind_of?(Element) ||
          tag.kind_of?(GridLine) ||
          tag.kind_of?(Legend) ||
          tag.kind_of?(Pen) ||
          tag.kind_of?(Postscript) ||
          tag.kind_of?(Marker)
        tag.id
      else
        tag  # maybe an Array of configure parameters
      end
    end

x2axis_bind(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2025
    def x2axis_bind(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind([path, 'x2axis', 'bind'], context, cmd, *args)
      self
    end

x2axis_bind_append(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2034
    def x2axis_bind_append(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append([path, 'x2axis', 'bind'], context, cmd, *args)
      self
    end

x2axis_bind_remove(context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2043
    def x2axis_bind_remove(context)
      _bind_remove([path, 'x2axis', 'bind'], context)
      self
    end

x2axis_bindinfo(context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2047
    def x2axis_bindinfo(context=nil)
      _bindinfo([path, 'x2axis', 'bind'], context)
    end

x2axis_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1997
    def x2axis_cget(option)
      itemcget('x2axis', option)
    end

x2axis_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2000
    def x2axis_cget_strict(option)
      itemcget_strict('x2axis', option)
    end

x2axis_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1994
    def x2axis_cget_tkstring(option)
      itemcget_tkstring('x2axis', option)
    end

x2axis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2019
    def x2axis_configinfo(slot=nil)
      itemconfiginfo('x2axis', slot)
    end

x2axis_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2003
    def x2axis_configure(slot, value=None)
      if slot.kind_of?(Hash)
        slot = _symbolkey2str(slot)
        if cmd = slot.delete('command')
          slot['command'] = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      elsif slot == :command || slot == 'command'
        cmd = value
        value = proc{|w, tick|
          cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
        }
      end
      itemconfigure('x2axis', slot, value)
    end

x2axis_invtransform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2050
    def x2axis_invtransform(val)
      list(tk_send('x2axis', 'invtransform', val))
    end

x2axis_limits() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2053
    def x2axis_limits
      list(tk_send('x2axis', 'limits'))
    end

x2axis_transform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2056
    def x2axis_transform(val)
      list(tk_send('x2axis', 'transform', val))
    end

x2axis_use(target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2059
    def x2axis_use(target=nil)
      if target
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('x2axis', 'use',
                                                    tagid(target)))
      else
        Tk::BLT::PlotComponent::Axis.id2obj(self, tk_send('x2axis', 'use'))
      end
    end

xaxis_bind(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1950
    def xaxis_bind(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind([path, 'xaxis', 'bind'], context, cmd, *args)
      self
    end

xaxis_bind_append(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1959
    def xaxis_bind_append(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append([path, 'xaxis', 'bind'], context, cmd, *args)
      self
    end

xaxis_bind_remove(context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1968
    def xaxis_bind_remove(context)
      _bind_remove([path, 'xaxis', 'bind'], context)
      self
    end

xaxis_bindinfo(context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1972
    def xaxis_bindinfo(context=nil)
      _bindinfo([path, 'xaxis', 'bind'], context)
    end

xaxis_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1922
    def xaxis_cget(option)
      itemcget('xaxis', option)
    end

xaxis_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1925
    def xaxis_cget_strict(option)
      itemcget_strict('xaxis', option)
    end

xaxis_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1919
    def xaxis_cget_tkstring(option)
      itemcget_tkstring('xaxis', option)
    end

xaxis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1944
    def xaxis_configinfo(slot=nil)
      itemconfiginfo('xaxis', slot)
    end

xaxis_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1928
    def xaxis_configure(slot, value=None)
      if slot.kind_of?(Hash)
        slot = _symbolkey2str(slot)
        if cmd = slot.delete('command')
          slot['command'] = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      elsif slot == :command || slot == 'command'
        cmd = value
        value = proc{|w, tick|
          cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
        }
      end
      itemconfigure('xaxis', slot, value)
    end

xaxis_invtransform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1975
    def xaxis_invtransform(val)
      list(tk_send('xaxis', 'invtransform', val))
    end

xaxis_limits() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1978
    def xaxis_limits
      list(tk_send('xaxis', 'limits'))
    end

xaxis_transform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1981
    def xaxis_transform(val)
      list(tk_send('xaxis', 'transform', val))
    end

xaxis_use(target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1984
    def xaxis_use(target=nil)
      if target
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('xaxis', 'use',
                                                    tagid(target)))
      else
        Tk::BLT::PlotComponent::Axis.id2obj(self, tk_send('xaxis', 'use'))
      end
    end

y2axis_bind(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2175
    def y2axis_bind(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind([path, 'y2axis', 'bind'], context, cmd, *args)
      self
    end

y2axis_bind_append(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2184
    def y2axis_bind_append(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append([path, 'y2axis', 'bind'], context, cmd, *args)
      self
    end

y2axis_bind_remove(context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2193
    def y2axis_bind_remove(context)
      _bind_remove([path, 'y2axis', 'bind'], context)
      self
    end

y2axis_bindinfo(context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2197
    def y2axis_bindinfo(context=nil)
      _bindinfo([path, 'y2axis', 'bind'], context)
    end

y2axis_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2147
    def y2axis_cget(option)
      itemcget('y2axis', option)
    end

y2axis_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2150
    def y2axis_cget_strict(option)
      itemcget_strict('y2axis', option)
    end

y2axis_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2144
    def y2axis_cget_tkstring(option)
      itemcget_tkstring('y2axis', option)
    end

y2axis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2169
    def y2axis_configinfo(slot=nil)
      axis_configinfo('y2axis', slot)
    end

y2axis_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2153
    def y2axis_configure(slot, value=None)
      if slot.kind_of?(Hash)
        slot = _symbolkey2str(slot)
        if cmd = slot.delete('command')
          slot['command'] = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      elsif slot == :command || slot == 'command'
        cmd = value
        value = proc{|w, tick|
          cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
        }
      end
      itemconfigure('y2axis', slot, value)
    end

y2axis_invtransform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2200
    def y2axis_invtransform(val)
      list(tk_send('y2axis', 'invtransform', val))
    end

y2axis_limits() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2203
    def y2axis_limits
      list(tk_send('y2axis', 'limits'))
    end

y2axis_transform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2206
    def y2axis_transform(val)
      list(tk_send('y2axis', 'transform', val))
    end

y2axis_use(target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2209
    def y2axis_use(target=nil)
      if target
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('y2axis', 'use',
                                                    tagid(target)))
      else
        Tk::BLT::PlotComponent::Axis.id2obj(self, tk_send('y2axis', 'use'))
      end
    end

yaxis_bind(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2100
    def yaxis_bind(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind([path, 'yaxis', 'bind'], context, cmd, *args)
      self
    end

yaxis_bind_append(context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2109
    def yaxis_bind_append(context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append([path, 'yaxis', 'bind'], context, cmd, *args)
      self
    end

yaxis_bind_remove(context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2118
    def yaxis_bind_remove(context)
      _bind_remove([path, 'yaxis', 'bind'], context)
      self
    end

yaxis_bindinfo(context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2122
    def yaxis_bindinfo(context=nil)
      _bindinfo([path, 'yaxis', 'bind'], context)
    end

yaxis_cget(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2072
    def yaxis_cget(option)
      itemcget('yaxis', option)
    end

yaxis_cget_strict(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2075
    def yaxis_cget_strict(option)
      itemcget_strict('yaxis', option)
    end

yaxis_cget_tkstring(option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2069
    def yaxis_cget_tkstring(option)
      itemcget_tkstring('yaxis', option)
    end

yaxis_configinfo(slot=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2094
    def yaxis_configinfo(slot=nil)
      itemconfiginfo('yaxis', slot)
    end

yaxis_configure(slot, value=None) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2078
    def yaxis_configure(slot, value=None)
      if slot.kind_of?(Hash)
        slot = _symbolkey2str(slot)
        if cmd = slot.delete('command')
          slot['command'] = proc{|w, tick|
            cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
          }
        end
      elsif slot == :command || slot == 'command'
        cmd = value
        value = proc{|w, tick|
          cmd.call(TkComm.window(w), TkComm.num_or_str(tick))
        }
      end
      itemconfigure('yaxis', slot, value)
    end

yaxis_invtransform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2125
    def yaxis_invtransform(val)
      list(tk_send('yaxis', 'invtransform', val))
    end

yaxis_limits() click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2128
    def yaxis_limits
      list(tk_send('yaxis', 'limits'))
    end

yaxis_transform(val) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2131
    def yaxis_transform(val)
      list(tk_send('yaxis', 'transform', val))
    end

yaxis_use(target=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 2134
    def yaxis_use(target=nil)
      if target
        Tk::BLT::PlotComponent::Axis.id2obj(self,
                                            tk_send('yaxis', 'use',
                                                    tagid(target)))
      else
        Tk::BLT::PlotComponent::Axis.id2obj(self, tk_send('yaxis', 'use'))
      end
    end

### Private Instance Methods

__item_cget_cmd(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 57
    def __item_cget_cmd(id)
      if id.kind_of?(Array)
        # id := [ type, name ]
        [self.path, id[0], 'cget', id[1]]
      else
        [self.path, id, 'cget']
      end
    end

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 67
    def __item_config_cmd(id)
      if id.kind_of?(Array)
        # id := [ type, name, ... ]
        type, *names = id
        [self.path, type, 'configure'].concat(names)
      else
        [self.path, id, 'configure']
      end
    end

__item_pathname(id) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 78
    def __item_pathname(id)
      if id.kind_of?(Array)
        id = tagid(id[1])
      end
      [self.path, id].join(';')
    end

_component_bind(target, tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1428
    def _component_bind(target, tag, context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind([path, target, 'bind', tagid(tag)], context, cmd, *args)
      self
    end

_component_bind_append(target, tag, context, *args) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1437
    def _component_bind_append(target, tag, context, *args)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append([path, target, 'bind', tagid(tag)], context, cmd, *args)
      self
    end

_component_bind_remove(target, tag, context) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1446
    def _component_bind_remove(target, tag, context)
      _bind_remove([path, target, 'bind', tagid(tag)], context)
      self
    end

_component_bindinfo(target, tag, context=nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 1450
    def _component_bindinfo(target, tag, context=nil)
      _bindinfo([path, target, 'bind', tagid(tag)], context)
    end

current_itemconfiginfo(tagOrId, slot = nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 401
    def current_itemconfiginfo(tagOrId, slot = nil)
      ret = __current_itemconfiginfo(tagid(tagOrId), slot)

      if (val = ret['bindtags'])
        ret['bindtags'] = val.collect{|tag| TkBindTag.id2obj(tag)}
      end

      ret
    end

Also aliased as: __current_itemconfiginfo
itemcget(tagOrId, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 354
    def itemcget(tagOrId, option)
      unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
        itemcget_strict(tagOrId, option)
      else
        begin
          itemcget_strict(tagOrId, option)
        rescue => e
          begin
            if current_itemconfiginfo(tagOrId).has_key?(option.to_s)
              # error on known option
              fail e
            else
              # unknown option
              nil
            end
          rescue
            fail e  # tag error
          end
        end
      end
    end

Also aliased as: __itemcget
itemcget_strict(tagOrId, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 346
    def itemcget_strict(tagOrId, option)
      ret = __itemcget(tagid(tagOrId), option)
      if option == 'bindtags' || option == :bindtags
        ret.collect{|tag| TkBindTag.id2obj(tag)}
      else
        ret
      end
    end

Also aliased as: __itemcget_strict
itemcget_tkstring(tagOrId, option) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 343
    def itemcget_tkstring(tagOrId, option)
      __itemcget_tkstring(tagid(tagOrId), option)
    end

Also aliased as: __itemcget_tkstring
itemconfiginfo(tagOrId, slot = nil) click to toggle source

    # File lib/tkextlib/blt/component.rb, line 375
    def itemconfiginfo(tagOrId, slot = nil)
      ret = __itemconfiginfo(tagid(tagOrId), slot)

      if TkComm::GET_CONFIGINFO_AS_ARRAY
        if slot
          if slot == 'bindtags' || slot == :bindtags
            ret[-2] = ret[-2].collect{|tag| TkBindTag.id2obj(tag)}
            ret[-1] = ret[-1].collect{|tag| TkBindTag.id2obj(tag)}
          end
        else
          if (inf = ret.assoc('bindtags'))
            inf[-2] = inf[-2].collect{|tag| TkBindTag.id2obj(tag)}
            inf[-1] = inf[-1].collect{|tag| TkBindTag.id2obj(tag)}
          end
        end

      else # ! TkComm::GET_CONFIGINFO_AS_ARRAY
        if (inf = ret['bindtags'])
          inf[-2] = inf[-2].collect{|tag| TkBindTag.id2obj(tag)}
          inf[-1] = inf[-1].collect{|tag| TkBindTag.id2obj(tag)}
          ret['bindtags'] = inf
        end
      end

      ret
    end

Also aliased as: __itemconfiginfo