In Files

  • tk/lib/tkextlib/blt/component.rb

Class/Module Index [+]

Quicksearch

Tk::BLT::PlotComponent::GridLine

Constants

GridLineID_TBL

Public Class Methods

new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 802
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
            
new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 818
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
            

Public Instance Methods

cget(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 836
def cget(option)
  @chart.gridline_cget(option)
end
            
cget_strict(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 839
def cget_strict(option)
  @chart.gridline_cget_strict(option)
end
            
configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 846
def configinfo(key=nil)
  @chart.gridline_configinfo(key)
end
            
configure(key, value=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 842
def configure(key, value=None)
  @chart.gridline_configure(key, value)
  self
end
            
current_configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 849
def current_configinfo(key=nil)
  @chart.current_gridline_configinfo(key)
end
            
id() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 828
def id
  @id
end
            
off() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 853
def off
  @chart.gridline_off
  self
end
            
on() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 857
def on
  @chart.gridline_on
  self
end
            
to_eval() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 832
def to_eval
  @id
end
            
toggle() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 861
def toggle
  @chart.gridline_toggle
  self
end
            

Commenting is here to help enhance the documentation. For example, code samples, 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.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus