|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.BarColumn
public class BarColumn
Column with a graphical bar that represents the total amount of items in with length, and the coverage ratio with a red/green sections. The implementation is stateful, instances must not be used in parallel.
Constructor Summary | |
---|---|
BarColumn(String header,
ICoverageNode.CounterEntity entity)
Creates a new column that is based on the ICounter for the given
entity. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarColumn(String header, ICoverageNode.CounterEntity entity)
ICounter
for the given
entity.
header
- column header captionentity
- counter entity for visualizationMethod Detail |
---|
public void init(List<ICoverageTableItem> items, ICoverageNode total)
ICoverageTableColumn
init
in interface ICoverageTableColumn
items
- all items that will be displayed in the tabletotal
- the summary of all coverage data items in the tablepublic void header(HTMLElement tr, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
header
in interface ICoverageTableColumn
tr
- the parent table rowresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element outputpublic void footer(HTMLElement tr, ICoverageNode total, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
footer
in interface ICoverageTableColumn
tr
- the parent table rowtotal
- the summary of all coverage data items in the tableresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element outputpublic void item(HTMLElement tr, ICoverageTableItem item, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
item
in interface ICoverageTableColumn
tr
- the parent table rowitem
- the item to displayresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |