Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • tk/lib/tkextlib/tcllib/plotchart.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Plotchart

Public Class Methods

coords_3D_to_pixel(w, x, y, z) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 109
def self.coords_3D_to_pixel(w, x, y, z)
  list(tk_call_without_enc('::Plotchart::coords3DToPixel', w.path, x, y, z))
end
            
coords_to_pixel(w, x, y) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 105
def self.coords_to_pixel(w, x, y)
  list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
            
determine_scale(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 148
def self.determine_scale(*args) # (xmin, xmax, inverted=false)
  tk_call_without_enc('::Plotchart::determineScale', *args)
end
            
package_name() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 72
def self.package_name
  PACKAGE_NAME
end
            
package_version() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 76
def self.package_version
  begin
    TkPackage.require('Plotchart')
  rescue
    ''
  end
end
            
pixel_to_coords(w, x, y) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 144
def self.pixel_to_coords(w, x, y)
  list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
            
plotconfig(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 113
def self.plotconfig(*args)
  case args.length
  when 0, 1, 2
    # 0: (no args) --> list of chat types
    # 1: charttype --> list of components
    # 2: charttype, component --> list of properties
    simplelist(tk_call('::Plotchart::plotconfig', *args))
  when 3
    # 3: charttype, component, property --> current value
    tk_call('::Plotchart::plotconfig', *args)
  else
    # 4: charttype, component, property, value : set new value
    # 5+: Error on Tcl/Tk
    tk_call('::Plotchart::plotconfig', *args)
    nil
  end
end
            
plotpack(w, dir, *plots) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 131
def self.plotpack(w, dir, *plots)
  tk_call_without_enc('::Plotchart::plotpack', w.path, dir, *plots)
  w
end
            
polar_coordinates(w, radmax) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 136
def self.polar_coordinates(w, radmax)
  tk_call_without_enc('::Plotchart::polarCoordinates', w.path, radmax)
end
            
polar_to_pixel(w, rad, phi) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 140
def self.polar_to_pixel(w, rad, phi)
  list(tk_call_without_enc('::Plotchart::polarToPixel', w.path, rad, phi))
end
            
set_zoom_pan(w) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 152
def self.set_zoom_pan(w)
  tk_call_without_enc('::Plotchart::setZoomPan', w.path)
end
            
view_port(w, *args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 90
def self.view_port(w, *args) # args := pxmin, pymin, pxmax, pymax
  tk_call_without_enc('::Plotchart::viewPort', w.path, *(args.flatten))
end
            
world_3D_coordinates(w, *args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 99
def self.world_3D_coordinates(w, *args)
  # args := xmin, ymin, zmin, xmax, ymax, zmax
  tk_call_without_enc('::Plotchart::world3DCoordinates',
                      w.path, *(args.flatten))
end
            
world_coordinates(w, *args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/plotchart.rb, line 94
def self.world_coordinates(w, *args) # args := xmin, ymin, xmax, ymax
  tk_call_without_enc('::Plotchart::worldCoordinates',
                      w.path, *(args.flatten))
end