Methods
- A
- B
- C
- D
- E
- I
- N
- T
Constants
MarkerTypeName | = | nil |
MarkerTypeToClass | = | {} |
MarkerID_TBL | = | TkCore::INTERP.create_table |
Class Public methods
create(chart, keys={})
Link
# 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
create_type(chart, type, keys={})
Link
# 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
id2obj(chart, id)
Link
new(parent, *args)
Link
# 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
type2class(type)
Link
Instance Public methods
after(target=None)
Link
before(target=None)
Link
cget(option)
Link
cget_strict(option)
Link
cget_tkstring(option)
Link
configinfo(key=nil)
Link
configure(key, value=None)
Link
current_configinfo(key=nil)
Link
delete()
Link
exist?()
Link
id()
Link
to_eval()
Link