Methods
C
I
N
O
T
Constants
PostscriptID_TBL = TkCore::INTERP.create_table
 
Class Public methods
new(chart, keys={})
# File ext/tk/lib/tkextlib/blt/component.rb, line 1128
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={})
# File ext/tk/lib/tkextlib/blt/component.rb, line 1144
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
Instance Public methods
cget(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1165
def cget(option)
  @chart.postscript_cget(option)
end
cget_strict(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1168
def cget_strict(option)
  @chart.postscript_cget_strict(option)
end
cget_tkstring(option)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1162
def cget_tkstring(option)
  @chart.postscript_cget_tkstring(option)
end
configinfo(key=nil)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1175
def configinfo(key=nil)
  @chart.postscript_configinfo(key)
end
configure(key, value=None)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1171
def configure(key, value=None)
  @chart.postscript_configure(key, value)
  self
end
current_configinfo(key=nil)
# File ext/tk/lib/tkextlib/blt/component.rb, line 1178
def current_configinfo(key=nil)
  @chart.current_postscript_configinfo(key)
end
id()
# File ext/tk/lib/tkextlib/blt/component.rb, line 1154
def id
  @id
end
output(file=nil, keys={})
# File ext/tk/lib/tkextlib/blt/component.rb, line 1182
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()
# File ext/tk/lib/tkextlib/blt/component.rb, line 1158
def to_eval
  @id
end