- A
- B
- C
- D
- E
- I
- N
- T
| MarkerTypeName | = | nil |
| MarkerTypeToClass | = | {} |
| MarkerID_TBL | = | TkCore::INTERP.create_table |
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1275 def self.create(chart, keys={}) unless self::MarkerTypeName fail RuntimeError, "#{self} is an abstract class" end args, fontkeys, methodkeys = _parse_create_args(keys) idnum = tk_call_without_enc(chart.path, 'marker', 'create', self::MarkerTypeName, *args) chart.marker_configure(idnum, fontkeys) unless fontkeys.empty? chart.marker_configure(idnum, methodkeys) unless methodkeys.empty? idnum.to_i # 'item id' is an integer number end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1287 def self.create_type(chart, type, keys={}) args, fontkeys, methodkeys = _parse_create_args(keys) idnum = tk_call_without_enc(chart.path, 'marker', 'create', type, *args) chart.marker_configure(idnum, fontkeys) unless fontkeys.empty? chart.marker_configure(idnum, methodkeys) unless methodkeys.empty? id = idnum.to_i # 'item id' is an integer number obj = self.allocate obj.instance_eval{ @parent = @chart = chart @cpath = chart.path @id = id Tk::BLT::PlotComponent::Marker::MarkerID_TBL.mutex.synchronize{ Tk::BLT::PlotComponent::Marker::MarkerID_TBL[@cpath] ||= {} Tk::BLT::PlotComponent::Marker::MarkerID_TBL[@cpath][@id] = self } } obj end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1218 def Marker.id2obj(chart, id) cpath = chart.path MarkerID_TBL.mutex.synchronize{ if MarkerID_TBL[cpath] MarkerID_TBL[cpath][id]? MarkerID_TBL[cpath][id]: id else id end } end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1307 def initialize(parent, *args) @parent = @chart = parent @cpath = parent.path @path = @id = create_self(*args) # an integer number as 'item id' Tk::BLT::PlotComponent::Marker::MarkerID_TBL.mutex.synchronize{ Tk::BLT::PlotComponent::Marker::MarkerID_TBL[@cpath] ||= {} Tk::BLT::PlotComponent::Marker::MarkerID_TBL[@cpath][@id] = self } end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1214 def Marker.type2class(type) MarkerTypeToClass[type] end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1350 def after(target=None) @chart.marker_after(@id, target) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1354 def before(target=None) @chart.marker_before(@id, target) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1333 def cget(option) @chart.marker_cget(@id, option) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1336 def cget_strict(option) @chart.marker_cget_strict(@id, option) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1330 def cget_tkstring(option) @chart.marker_cget_tkstring(@id, option) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1343 def configinfo(key=nil) @chart.marker_configinfo(@id, key) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1339 def configure(key, value=None) @chart.marker_configure(@id, key, value) self end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1346 def current_configinfo(key=nil) @chart.current_marker_configinfo(@id, key) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1358 def delete @chart.marker_delete(@id) end
Source: show
# File ext/tk/lib/tkextlib/blt/component.rb, line 1362 def exist? @chart.marker_exist(@id) end