class Fox::Enhancement::Xtras::Charting::Graph

main charting area.

Public Class Methods

new(chart, **kv) click to toggle source
# File lib/fxruby-enhancement/xtras/charting-boxes.rb, line 239
def initialize chart, **kv
  super
  @dominance = 3
end

Public Instance Methods

calculate_dimensions() click to toggle source
# File lib/fxruby-enhancement/xtras/charting-boxes.rb, line 221
def calculate_dimensions
  super
  begin
    self.width = right_box.x \
                 - right_box.left_margin \
                 - left_box.x \
                 - left_box.width \
                 + left_box.right_margin
    self.height = bottom_box.y \
                  - bottom_box.top_margin \
                  - top_box.y \
                  - top_box.height \
                  + top_box.bottom_margin
  rescue NoMethodError, TypeError => e
    #puts "-->Graph: unresolved: #{e}"
  end
end