Class TreeMapNodeConverter
java.lang.Object
io.jenkins.plugins.coverage.metrics.charts.TreeMapNodeConverter
Converts a tree of
coverage nodes
to a corresponding tree of
ECharts tree map nodes
. The value of the tree map nodes is based on a given metric.- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.hm.hafner.echarts.LabeledTreeMapNode
toTreeChartModel
(edu.hm.hafner.coverage.Node node, edu.hm.hafner.coverage.Metric metric, ColorProvider colorProvider) Converts a coverage tree ofnodes
to an ECharts tree map ofTreeMapNode
.
-
Constructor Details
-
TreeMapNodeConverter
public TreeMapNodeConverter()
-
-
Method Details
-
toTreeChartModel
public edu.hm.hafner.echarts.LabeledTreeMapNode toTreeChartModel(edu.hm.hafner.coverage.Node node, edu.hm.hafner.coverage.Metric metric, ColorProvider colorProvider) Converts a coverage tree ofnodes
to an ECharts tree map ofTreeMapNode
.- Parameters:
node
- The root node of the tree to be convertedmetric
- The coverage metric that should be represented (line and branch coverage are available)colorProvider
- Provides the colors to be used for highlighting the tree nodes- Returns:
- the converted tree map representation
-