Class: Scruffy::Renderers::Reversed
- Defined in:
- lib/scruffy/renderers/reversed.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Helpers::Canvas
Instance Method Summary collapse
Methods inherited from Base
#before_render, #initialize, #method_missing, #render
Methods included from Helpers::Canvas
#component, #remove, #reset_settings!
Constructor Details
This class inherits a constructor from Scruffy::Renderers::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Scruffy::Renderers::Base
Instance Method Details
#define_layout ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/scruffy/renderers/reversed.rb', line 5 def define_layout self.components << Scruffy::Components::Background.new(:background, :position => [0,0], :size =>[100, 100]) self.components << Scruffy::Components::Title.new(:title, :position => [98, 95], :size => [1, 3], :text_anchor => 'end') #self.components << Scruffy::Components::Grid.new(:grid, :position => [14, 12], :size => [78.5, 70]) self.components << Scruffy::Components::ValueMarkers.new(:value_markers, :position => [2, 14], :size => [10, 70]) self.components << Scruffy::Components::DataMarkers.new(:data_markers, :position => [14, 3.5], :size => [78.5, 4]) self.components << Scruffy::Components::Graphs.new(:graphs, :position => [14, 12], :size => [78.5, 70]) self.components << Scruffy::Components::Legend.new(:legend, :position => [3, 90], :size => [55, 6]) end |