org.jacoco.report.html
Class CoverageTable

java.lang.Object
  extended by org.jacoco.report.html.CoverageTable

public class CoverageTable
extends Object

Renderer for a table of ICoverageTableItems.

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

Constructor Summary
CoverageTable(List<? extends ICoverageTableColumn> columns, Comparator<ICoverageNode> comparator)
          Create a new table with the given columns.
 
Method Summary
 void render(HTMLElement parent, Collection<? extends ICoverageTableItem> items, ICoverageNode total, Resources resources, ReportOutputFolder base)
          Renders a table for the given icon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverageTable

public CoverageTable(List<? extends ICoverageTableColumn> columns,
                     Comparator<ICoverageNode> comparator)
Create a new table with the given columns.

Parameters:
columns - columns for this table
comparator - comparator for sorting the table items
Method Detail

render

public void render(HTMLElement parent,
                   Collection<? extends ICoverageTableItem> items,
                   ICoverageNode total,
                   Resources resources,
                   ReportOutputFolder base)
            throws IOException
Renders a table for the given icon

Parameters:
parent - parent element in which the table is created
items - items that will make the table rows
total - the summary of all coverage data items in the table static resources that might be referenced
resources - static resources that might be referenced
base - base folder of the table
Throws:
IOException - in case of IO problems with the element output