# File tk/lib/tkextlib/blt/component.rb, line 846
def self.new(chart, keys={})
obj = nil
GridLineID_TBL.mutex.synchronize{
unless (obj = GridLineID_TBL[chart.path])
(obj = self.allocate).instance_eval{
@parent = @chart = chart
@cpath = @chart.path
@path = @id = 'grid'
GridLine::GridLineID_TBL[@cpath] = self
}
end
}
chart.gridline_configure(keys) if obj && ! keys.empty?
obj
end
# File tk/lib/tkextlib/blt/component.rb, line 862
def initialize(chart, keys={})
# dummy:: not called by 'new' method
@parent = @chart = chart
@cpath = @chart.path
# GridLine::GridLineID_TBL[@cpath] = self
@chart.gridline_configure(keys) unless keys.empty?
@path = @id = 'grid'
end
# File tk/lib/tkextlib/blt/component.rb, line 883
def cget(option)
@chart.gridline_cget(option)
end
# File tk/lib/tkextlib/blt/component.rb, line 886
def cget_strict(option)
@chart.gridline_cget_strict(option)
end
# File tk/lib/tkextlib/blt/component.rb, line 880
def cget_tkstring(option)
@chart.gridline_cget_tkstring(option)
end
# File tk/lib/tkextlib/blt/component.rb, line 893
def configinfo(key=nil)
@chart.gridline_configinfo(key)
end
# File tk/lib/tkextlib/blt/component.rb, line 889
def configure(key, value=None)
@chart.gridline_configure(key, value)
self
end
# File tk/lib/tkextlib/blt/component.rb, line 896
def current_configinfo(key=nil)
@chart.current_gridline_configinfo(key)
end
# File tk/lib/tkextlib/blt/component.rb, line 900
def off
@chart.gridline_off
self
end
# File tk/lib/tkextlib/blt/component.rb, line 904
def on
@chart.gridline_on
self
end
Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.