In Files

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

Class/Module Index [+]

Quicksearch

Tk::BLT::PlotComponent::Postscript

Constants

PostscriptID_TBL

Public Class Methods

new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1075
def self.new(chart, keys={})
  obj = nil
  PostscriptID_TBL.mutex.synchronize{
    unless (obj = PostscriptID_TBL[chart.path])
      (obj = self.allocate).instance_eval{
        @parent = @chart = chart
        @cpath = @chart.path
        @path = @id = 'postscript'
        Postscript::PostscriptID_TBL[@cpath] = self
      }
    end
  }
  chart.postscript_configure(keys) if obj && ! keys.empty?
  obj
end
            
new(chart, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1091
def initialize(chart, keys={})
  # dummy:: not called by 'new' method

  @parent = @chart = chart
  @cpath = @chart.path
  # Postscript::PostscriptID_TBL[@cpath] = self
  @chart.postscript_configure(keys) unless keys.empty?
  @path = @id = 'postscript'
end
            

Public Instance Methods

cget(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1109
def cget(option)
  @chart.postscript_cget(option)
end
            
cget_strict(option) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1112
def cget_strict(option)
  @chart.postscript_cget_strict(option)
end
            
configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1119
def configinfo(key=nil)
  @chart.postscript_configinfo(key)
end
            
configure(key, value=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1115
def configure(key, value=None)
  @chart.postscript_configure(key, value)
  self
end
            
current_configinfo(key=nil) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1122
def current_configinfo(key=nil)
  @chart.current_postscript_configinfo(key)
end
            
id() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1101
def id
  @id
end
            
output(file=nil, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1126
def output(file=nil, keys={})
  if file.kind_of?(Hash)
    keys = file
    file = nil
  end

  ret = @chart.postscript_output(file, keys)

  if file
    self
  else
    ret
  end
end
            
to_eval() click to toggle source
 
               # File tk/lib/tkextlib/blt/component.rb, line 1105
def to_eval
  @id
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