A Cell object used to represent all but the topmost cell in a span group.
# File lib/prawn/table/cell/span_dummy.rb, line 15 def initialize(pdf, master_cell) super(pdf, [0, pdf.cursor]) @master_cell = master_cell @padding = [0, 0, 0, 0] end
# File lib/prawn/table/cell/span_dummy.rb, line 33 def avg_spanned_min_width @master_cell.avg_spanned_min_width end
# File lib/prawn/table/cell/span_dummy.rb, line 59 def border_bottom_color=(val) @master_cell.border_bottom_color = val if bottommost? end
# File lib/prawn/table/cell/span_dummy.rb, line 67 def border_bottom_width=(val) @master_cell.border_bottom_width = val if bottommost? end
# File lib/prawn/table/cell/span_dummy.rb, line 55 def border_right_color=(val) @master_cell.border_right_color = val if rightmost? end
# File lib/prawn/table/cell/span_dummy.rb, line 63 def border_right_width=(val) @master_cell.border_right_width = val if rightmost? end
Dummy cells have nothing to draw.
# File lib/prawn/table/cell/span_dummy.rb, line 39 def draw_borders(pt) end
Dummy cells have nothing to draw.
# File lib/prawn/table/cell/span_dummy.rb, line 44 def draw_bounded_content(pt) end
By default, a span dummy will never increase the height demand.
# File lib/prawn/table/cell/span_dummy.rb, line 23 def natural_content_height 0 end
By default, a span dummy will never increase the width demand.
# File lib/prawn/table/cell/span_dummy.rb, line 29 def natural_content_width 0 end
# File lib/prawn/table/cell/span_dummy.rb, line 51 def padding_bottom=(val) @master_cell.padding_bottom = val if bottommost? end
# File lib/prawn/table/cell/span_dummy.rb, line 47 def padding_right=(val) @master_cell.padding_right = val if rightmost? end
Are we on the bottom border of the span?
# File lib/prawn/table/cell/span_dummy.rb, line 81 def bottommost? @row == @master_cell.row + @master_cell.rowspan - 1 end
Are we on the right border of the span?
# File lib/prawn/table/cell/span_dummy.rb, line 75 def rightmost? @column == @master_cell.column + @master_cell.colspan - 1 end