Module Tk::BLT::PlotComponent
In: tk/lib/tkextlib/blt/component.rb

Methods

__destroy_hook__   axis_bind   axis_bind_append   axis_bind_remove   axis_bindinfo   axis_cget   axis_configinfo   axis_configure   axis_create   axis_delete   axis_invtransform   axis_limits   axis_names   axis_transform   axis_use   axis_view   bar   bar   bar_activate   bar_bind   bar_bind_append   bar_bind_remove   bar_bindinfo   bar_cget   bar_closest   bar_configinfo   bar_configure   bar_create   bar_deactivate   bar_delete   bar_exist?   bar_names   bar_show   bar_type   crosshairs_cget   crosshairs_configinfo   crosshairs_configure   crosshairs_off   crosshairs_on   crosshairs_toggle   current_axis_configinfo   current_bar_configinfo   current_crosshairs_configinfo   current_element_configinfo   current_gridline_configinfo   current_legend_configinfo   current_line_configinfo   current_marker_configinfo   current_pen_configinfo   current_postscript_configinfo   current_x2axis_configinfo   current_xaxis_configinfo   current_y2axis_configinfo   current_yaxis_configinfo   element_activate   element_bind   element_bind_append   element_bind_remove   element_bindinfo   element_cget   element_closest   element_configinfo   element_configure   element_create   element_deactivate   element_delete   element_exist?   element_names   element_show   element_type   gridline_cget   gridline_configinfo   gridline_configure   gridline_off   gridline_on   gridline_toggle   legend_activate   legend_bind   legend_bind_append   legend_bind_remove   legend_bindinfo   legend_cget   legend_configinfo   legend_configure   legend_deactivate   legend_get   legend_window_create   line_activate   line_bind   line_bind_append   line_bind_remove   line_bindinfo   line_cget   line_closest   line_configinfo   line_configure   line_create   line_deactivate   line_delete   line_exist?   line_names   line_show   line_type   marker_after   marker_before   marker_bind   marker_bind_append   marker_bind_remove   marker_bindinfo   marker_cget   marker_configinfo   marker_configure   marker_create   marker_delete   marker_exist?   marker_names   marker_type   pen_cget   pen_configinfo   pen_configure   pen_create   pen_delete   pen_names   postscript_cget   postscript_configinfo   postscript_configure   postscript_output   tagid   x2axis_bind   x2axis_bind_append   x2axis_bind_remove   x2axis_bindinfo   x2axis_cget   x2axis_configinfo   x2axis_configure   x2axis_invtransform   x2axis_limits   x2axis_transform   x2axis_use   xaxis_bind   xaxis_bind_append   xaxis_bind_remove   xaxis_bindinfo   xaxis_cget   xaxis_configinfo   xaxis_configure   xaxis_invtransform   xaxis_limits   xaxis_transform   xaxis_use   y2axis_bind   y2axis_bind_append   y2axis_bind_remove   y2axis_bindinfo   y2axis_cget   y2axis_configinfo   y2axis_configure   y2axis_invtransform   y2axis_limits   y2axis_transform   y2axis_use   yaxis_bind   yaxis_bind_append   yaxis_bind_remove   yaxis_bindinfo   yaxis_cget   yaxis_configinfo   yaxis_configure   yaxis_invtransform   yaxis_limits   yaxis_transform   yaxis_use  

Included Modules

TkItemConfigMethod OptKeys

Classes and Modules

Module Tk::BLT::PlotComponent::OptKeys
Class Tk::BLT::PlotComponent::Axis
Class Tk::BLT::PlotComponent::Bar
Class Tk::BLT::PlotComponent::BitmapMarker
Class Tk::BLT::PlotComponent::Crosshairs
Class Tk::BLT::PlotComponent::Element
Class Tk::BLT::PlotComponent::GridLine
Class Tk::BLT::PlotComponent::ImageMarker
Class Tk::BLT::PlotComponent::Legend
Class Tk::BLT::PlotComponent::Line
Class Tk::BLT::PlotComponent::LineMarker
Class Tk::BLT::PlotComponent::Marker
Class Tk::BLT::PlotComponent::Pen
Class Tk::BLT::PlotComponent::PolygonMarker
Class Tk::BLT::PlotComponent::Postscript
Class Tk::BLT::PlotComponent::TextMarker
Class Tk::BLT::PlotComponent::WindowMarker

External Aliases

itemcget -> __itemcget
itemconfiginfo -> __itemconfiginfo
current_itemconfiginfo -> __current_itemconfiginfo

Public Instance methods

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1039
    def __destroy_hook__
      Axis::OBJ_TBL.delete(@path)
      Crosshairs::OBJ_TBL.delete(@path)
      Element::OBJ_TBL.delete(@path)
      GridLine::OBJ_TBL.delete(@path)
      Legend::OBJ_TBL.delete(@path)
      Pen::OBJ_TBL.delete(@path)
      Postscript::OBJ_TBL.delete(@path)
      Marker::OBJ_TBL.delete(@path)
      super()
    end

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 88
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1203
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1199
    def axis_view(id)
      tk_send('axis', 'view', tagid(id))
      self
    end
bar(id=nil, keys={})

Alias for bar_create

bar(id=nil, keys={})

Alias for line_create

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1292
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1303
    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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 155
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1330
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1235
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1246
    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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 134
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1273
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1456
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1416
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1349
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1360
    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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 176
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1387
    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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1524
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1532
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 257
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1502
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 223
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1486
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1053
    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 paramters
      end
    end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1653
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1662
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1631
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1687
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1584
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1593
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1562
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1618
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1791
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1800
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1769
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1825
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1722
    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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1731
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1700
    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

[Source]

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

[Source]

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

[Source]

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

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 1756
    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

[Validate]