Class VectorCASTBuilderTrendChart
- java.lang.Object
-
- hudson.plugins.view.dashboard.DashboardPortlet
-
- com.vectorcast.plugins.vectorcastcoverage.portlet.chart.VectorCASTBuilderTrendChart
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<hudson.plugins.view.dashboard.DashboardPortlet>
,ModelObject
public class VectorCASTBuilderTrendChart extends hudson.plugins.view.dashboard.DashboardPortlet
A portlet for VecctorCAST coverage results - Trend Chart.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VectorCASTBuilderTrendChart.DescriptorImpl
Descriptor that will be shown on Dashboard Portlets view.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description VectorCASTBuilderTrendChart(String name, String width, String height, String daysNumber)
Constructor with chart attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDaysNumber()
Getter of the number of days.int
getHeight()
Getter of the height.Graph
getSummaryGraph()
This method will be called by portlet.jelly to load data and create the chart.int
getWidth()
Getter of the width.
-
-
-
Constructor Detail
-
VectorCASTBuilderTrendChart
@DataBoundConstructor public VectorCASTBuilderTrendChart(String name, String width, String height, String daysNumber)
Constructor with chart attributes as parameters. DataBoundConstructor annotation helps the Stapler class to find which constructor that should be used when automatically copying values from a web form to a class.- Parameters:
name
- chart namewidth
- the chart widthheight
- the chart heightdaysNumber
- the number of days
-
-
Method Detail
-
getSummaryGraph
public Graph getSummaryGraph()
This method will be called by portlet.jelly to load data and create the chart.- Returns:
- Graph a summary graph
-
getWidth
public int getWidth()
Getter of the width.- Returns:
- int the width
-
getHeight
public int getHeight()
Getter of the height.- Returns:
- int the height
-
getDaysNumber
public int getDaysNumber()
Getter of the number of days.- Returns:
- int the number of days
-
-