class Thinreports::Generator::PDF::Drawer::ListSection
Public Class Methods
new(pdf, section)
click to toggle source
@param pdf (see PDF::Drawer::Page#initialize) @param section [Thinreports::Core::Shape::List::SectionInternal] section
Calls superclass method
# File lib/thinreports/generator/pdf/drawer/list_section.rb, line 10 def initialize(pdf, section) super(pdf, section.format) @section = section @stamp_created = false end
Public Instance Methods
draw(section, at)
click to toggle source
@param [Thinreports::Core::Shape::List::SectionInternal] section @param [Array<Numeric>] at
Calls superclass method
# File lib/thinreports/generator/pdf/drawer/list_section.rb, line 18 def draw(section, at) @draw_at = at draw_section super(section) end
Private Instance Methods
draw_iblock_shape(shape)
click to toggle source
@see Thinreports::Generator::PDF::Drawer::Page#draw_iblock_shape
Calls superclass method
# File lib/thinreports/generator/pdf/drawer/list_section.rb, line 42 def draw_iblock_shape(shape) @pdf.translate(*@draw_at) { super } end
draw_section()
click to toggle source
# File lib/thinreports/generator/pdf/drawer/list_section.rb, line 26 def draw_section id = @format.identifier.to_s unless @stamp_created @pdf.create_stamp(id) { @pdf.draw_template_items(@format.attributes['items']) } @stamp_created = true end pdf_stamp(id) end
draw_tblock_shape(shape)
click to toggle source
@see Thinreports::Generator::PDF::Drawer::Page#draw_tblock_shape
Calls superclass method
# File lib/thinreports/generator/pdf/drawer/list_section.rb, line 37 def draw_tblock_shape(shape) @pdf.translate(*@draw_at) { super } end