class Fox::Enhancement::Xtras::Charting::PureText

For now, we assume that the placement of PureText boxes shall be above and below the GraphBox.

Public Instance Methods

calculate_dimensions() click to toggle source
# File lib/fxruby-enhancement/xtras/charting-boxes.rb, line 183
def calculate_dimensions
  super
  calculate_wh
  begin
    self.x = [top_box.width, bottom_box.width].max / 2 - self.width / 2
  rescue ArgumentError, NoMethodError, TypeError => e
    #puts "-->PureText unresolved: #{e}"
  end
end
calculate_wh() click to toggle source
# File lib/fxruby-enhancement/xtras/charting-boxes.rb, line 180
def calculate_wh
end