Class: TableTennis::Stage::Painter
- Defined in:
- lib/table_tennis/stage/painter.rb
Overview
This stage “paints” the table by calculating the style for cells, rows and columns. The styles are stuffed into ‘data.set_style`. Later, the rendering stage can apply them if color is enabled.
A “style” is either:
-
a theme symbol (like :title or :chrome)
-
hex colors, for color scaling
Other kinds of styles are theoretically possible but not tested.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Util::Inspectable
Constructor Details
This class inherits a constructor from TableTennis::Stage::Base
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/table_tennis/stage/painter.rb', line 16 def run return if !config.color paint_title if config.title paint_headers paint_row_numbers if config.row_numbers paint_rows if config.mark || config.zebra paint_columns if config.color_scales paint_placeholders end |