Namespace
- 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
Methods
- #
- A
- B
- C
-
- crosshairs_cget,
- crosshairs_cget_strict,
- crosshairs_cget_tkstring,
- 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
- E
-
- element_activate,
- element_bind,
- element_bind_append,
- element_bind_remove,
- element_bindinfo,
- element_cget,
- element_cget_strict,
- element_cget_tkstring,
- element_closest,
- element_configinfo,
- element_configure,
- element_create,
- element_deactivate,
- element_delete,
- element_exist?,
- element_names,
- element_show,
- element_type
- G
- L
-
- legend_activate,
- legend_bind,
- legend_bind_append,
- legend_bind_remove,
- legend_bindinfo,
- legend_cget,
- legend_cget_strict,
- legend_cget_tkstring,
- 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_cget_strict,
- line_cget_tkstring,
- line_closest,
- line_configinfo,
- line_configure,
- line_create,
- line_deactivate,
- line_delete,
- line_exist?,
- line_names,
- line_show,
- line_type
- M
- P
- T
- X
-
- x2axis_bind,
- x2axis_bind_append,
- x2axis_bind_remove,
- x2axis_bindinfo,
- x2axis_cget,
- x2axis_cget_strict,
- x2axis_cget_tkstring,
- 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_cget_strict,
- xaxis_cget_tkstring,
- xaxis_configinfo,
- xaxis_configure,
- xaxis_invtransform,
- xaxis_limits,
- xaxis_transform,
- xaxis_use
- Y
-
- y2axis_bind,
- y2axis_bind_append,
- y2axis_bind_remove,
- y2axis_bindinfo,
- y2axis_cget,
- y2axis_cget_strict,
- y2axis_cget_tkstring,
- 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_cget_strict,
- yaxis_cget_tkstring,
- yaxis_configinfo,
- yaxis_configure,
- yaxis_invtransform,
- yaxis_limits,
- yaxis_transform,
- yaxis_use
Included Modules
Instance Public methods
__destroy_hook__()
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1398 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
axis_bind(tag, context, *args)
Link
axis_bind_append(tag, context, *args)
Link
axis_bind_remove(tag, context)
Link
axis_bindinfo(tag, context=nil)
Link
axis_cget(id, option)
Link
axis_cget_strict(id, option)
Link
axis_cget_tkstring(id, option)
Link
axis_configinfo(id, slot=nil)
Link
axis_configure(*args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 94 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={})
Link
axis_delete(*ids)
Link
axis_invtransform(id, val)
Link
axis_limits(id)
Link
axis_names(*pats)
Link
axis_transform(id, val)
Link
axis_use(id, target=nil)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1562 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)
Link
bar_activate(*args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1651 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)
Link
bar_bind_append(tag, context, *args)
Link
bar_bind_remove(tag, context)
Link
bar_bindinfo(tag, context=nil)
Link
bar_cget(id, option)
Link
bar_cget_strict(id, option)
Link
bar_cget_tkstring(id, option)
Link
bar_closest(x, y, var, *args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1662 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)
Link
bar_configure(*args)
Link
bar_deactivate(*ids)
Link
bar_delete(*ids)
Link
bar_exist?(id)
Link
bar_names(*pats)
Link
bar_show(*names)
Link
bar_type(id)
Link
crosshairs_cget(option)
Link
crosshairs_cget_strict(option)
Link
crosshairs_cget_tkstring(option)
Link
crosshairs_configinfo(slot=nil)
Link
crosshairs_configure(slot, value=None)
Link
crosshairs_off()
Link
crosshairs_on()
Link
crosshairs_toggle()
Link
current_axis_configinfo(id, slot=nil)
Link
current_bar_configinfo(id, slot=nil)
Link
current_crosshairs_configinfo(slot=nil)
Link
current_element_configinfo(id, slot=nil)
Link
current_gridline_configinfo(slot=nil)
Link
current_legend_configinfo(slot=nil)
Link
current_line_configinfo(id, slot=nil)
Link
current_marker_configinfo(id, slot=nil)
Link
current_pen_configinfo(id, slot=nil)
Link
current_postscript_configinfo(slot=nil)
Link
current_x2axis_configinfo(slot=nil)
Link
current_xaxis_configinfo(slot=nil)
Link
current_y2axis_configinfo(slot=nil)
Link
current_yaxis_configinfo(slot=nil)
Link
element_activate(*args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1594 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)
Link
element_bind_append(tag, context, *args)
Link
element_bind_remove(tag, context)
Link
element_bindinfo(tag, context=nil)
Link
element_cget(id, option)
Link
element_cget_strict(id, option)
Link
element_cget_tkstring(id, option)
Link
element_closest(x, y, var, *args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1605 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)
Link
element_configure(*args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 152 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={})
Link
element_deactivate(*ids)
Link
element_delete(*ids)
Link
element_exist?(id)
Link
element_names(*pats)
Link
element_show(*names)
Link
element_type(id)
Link
gridline_cget(option)
Link
gridline_cget_strict(option)
Link
gridline_cget_tkstring(option)
Link
gridline_configinfo(slot=nil)
Link
gridline_configure(slot, value=None)
Link
gridline_off()
Link
gridline_on()
Link
gridline_toggle()
Link
legend_activate(*pats)
Link
legend_bind(tag, context, *args)
Link
legend_bind_append(tag, context, *args)
Link
legend_bind_remove(tag, context)
Link
legend_bindinfo(tag, context=nil)
Link
legend_cget(option)
Link
legend_cget_strict(option)
Link
legend_cget_tkstring(option)
Link
legend_configinfo(slot=nil)
Link
legend_configure(slot, value=None)
Link
legend_deactivate(*pats)
Link
legend_get(pos, y=nil)
Link
legend_window_create(parent=nil, keys=nil)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1775 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)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1708 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)
Link
line_bind_append(tag, context, *args)
Link
line_bind_remove(tag, context)
Link
line_bindinfo(tag, context=nil)
Link
line_cget(id, option)
Link
line_cget_strict(id, option)
Link
line_cget_tkstring(id, option)
Link
line_closest(x, y, var, *args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1719 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)
Link
line_configure(*args)
Link
line_deactivate(*ids)
Link
line_delete(*ids)
Link
line_exist?(id)
Link
line_names(*pats)
Link
line_show(*names)
Link
line_type(id)
Link
marker_after(id, target=nil)
Link
marker_before(id, target=None)
Link
marker_bind(tag, context, *args)
Link
marker_bind_append(tag, context, *args)
Link
marker_bind_remove(tag, context)
Link
marker_bindinfo(tag, context=nil)
Link
marker_cget(id, option)
Link
marker_cget_strict(id, option)
Link
marker_cget_tkstring(id, option)
Link
marker_configinfo(id, slot=nil)
Link
marker_configure(*args)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 317 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={})
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1861 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)
Link
marker_exist?(id)
Link
marker_names(*pats)
Link
marker_type(id)
Link
pen_cget(id, option)
Link
pen_cget_strict(id, option)
Link
pen_cget_tkstring(id, option)
Link
pen_configinfo(id, slot=nil)
Link
pen_configure(*args)
Link
pen_create(id=nil, keys={})
Link
pen_delete(*ids)
Link
pen_names(*pats)
Link
postscript_cget(option)
Link
postscript_cget_strict(option)
Link
postscript_cget_tkstring(option)
Link
postscript_configinfo(slot=nil)
Link
postscript_configure(slot, value=None)
Link
postscript_output(file=nil, keys={})
Link
tagid(tag)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1412 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
x2axis_bind(context, *args)
Link
x2axis_bind_append(context, *args)
Link
x2axis_bind_remove(context)
Link
x2axis_bindinfo(context=nil)
Link
x2axis_cget(option)
Link
x2axis_cget_strict(option)
Link
x2axis_cget_tkstring(option)
Link
x2axis_configinfo(slot=nil)
Link
x2axis_configure(slot, value=None)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 2002 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)
Link
x2axis_limits()
Link
x2axis_transform(val)
Link
x2axis_use(target=nil)
Link
xaxis_bind(context, *args)
Link
xaxis_bind_append(context, *args)
Link
xaxis_bind_remove(context)
Link
xaxis_bindinfo(context=nil)
Link
xaxis_cget(option)
Link
xaxis_cget_strict(option)
Link
xaxis_cget_tkstring(option)
Link
xaxis_configinfo(slot=nil)
Link
xaxis_configure(slot, value=None)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 1927 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)
Link
xaxis_limits()
Link
xaxis_transform(val)
Link
xaxis_use(target=nil)
Link
y2axis_bind(context, *args)
Link
y2axis_bind_append(context, *args)
Link
y2axis_bind_remove(context)
Link
y2axis_bindinfo(context=nil)
Link
y2axis_cget(option)
Link
y2axis_cget_strict(option)
Link
y2axis_cget_tkstring(option)
Link
y2axis_configinfo(slot=nil)
Link
y2axis_configure(slot, value=None)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 2152 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)
Link
y2axis_limits()
Link
y2axis_transform(val)
Link
y2axis_use(target=nil)
Link
yaxis_bind(context, *args)
Link
yaxis_bind_append(context, *args)
Link
yaxis_bind_remove(context)
Link
yaxis_bindinfo(context=nil)
Link
yaxis_cget(option)
Link
yaxis_cget_strict(option)
Link
yaxis_cget_tkstring(option)
Link
yaxis_configinfo(slot=nil)
Link
yaxis_configure(slot, value=None)
Link
# File ext/tk/lib/tkextlib/blt/component.rb, line 2077 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)
Link
yaxis_limits()
Link
yaxis_transform(val)
Link
yaxis_use(target=nil)
Link