org.jacoco.report.html
Interface ICoverageTableColumn

All Known Implementing Classes:
BarColumn, CounterColumn, LabelColumn, PercentageColumn

public interface ICoverageTableColumn

Renderer for a single column of a coverage table. The methods are always called in the sequence init header footer item*. Implementations might be stateful.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Method Summary
 void footer(HTMLElement tr, ICoverageNode total, Resources resources, ReportOutputFolder base)
          Renders the footer for this column.
 void header(HTMLElement tr, Resources resources, ReportOutputFolder base)
          Renders the header for this column.
 void init(List<ICoverageTableItem> items, ICoverageNode total)
          Initializes the column before any output method is called.
 void item(HTMLElement tr, ICoverageTableItem item, Resources resources, ReportOutputFolder base)
          Renders a single item in this column.
 

Method Detail

init

void init(List<ICoverageTableItem> items,
          ICoverageNode total)
Initializes the column before any output method is called.

Parameters:
items - all items that will be displayed in the table
total - the summary of all coverage data items in the table

header

void header(HTMLElement tr,
            Resources resources,
            ReportOutputFolder base)
            throws IOException
Renders the header for this column.

Parameters:
tr - the parent table row
resources - static resources that might be referenced
base - base folder of the table
Throws:
IOException - in case of IO problems with the element output

footer

void footer(HTMLElement tr,
            ICoverageNode total,
            Resources resources,
            ReportOutputFolder base)
            throws IOException
Renders the footer for this column.

Parameters:
tr - the parent table row
total - the summary of all coverage data items in the table
resources - static resources that might be referenced
base - base folder of the table
Throws:
IOException - in case of IO problems with the element output

item

void item(HTMLElement tr,
          ICoverageTableItem item,
          Resources resources,
          ReportOutputFolder base)
          throws IOException
Renders a single item in this column.

Parameters:
tr - the parent table row
item - the item to display
resources - static resources that might be referenced
base - base folder of the table
Throws:
IOException - in case of IO problems with the element output