hudson.plugins.codecover.portlet.chart
Class CodeCoverBuilderTrendChart

java.lang.Object
  extended by hudson.plugins.view.dashboard.DashboardPortlet
      extended by hudson.plugins.codecover.portlet.chart.CodeCoverBuilderTrendChart
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.plugins.view.dashboard.DashboardPortlet>, hudson.model.ModelObject

public class CodeCoverBuilderTrendChart
extends hudson.plugins.view.dashboard.DashboardPortlet

A portlet for CodeCover coverage results - Trend Chart.


Nested Class Summary
static class CodeCoverBuilderTrendChart.DescriptorImpl
          Descriptor that will be shown on Dashboard Portlets view.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
CodeCoverBuilderTrendChart(String name, String width, String height, String daysNumber)
          Constructor with chart attributes as parameters.
 
Method Summary
 int getDaysNumber()
          Getter of the number of days.
 int getHeight()
          Getter of the height.
 hudson.util.Graph getSummaryGraph()
          This method will be called by portlet.jelly to load data and create the chart.
 int getWidth()
          Getter of the width.
 
Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet
all, getComparator, getDashboard, getDescriptor, getDisplayName, getId, getJob, getName, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeCoverBuilderTrendChart

@DataBoundConstructor
public CodeCoverBuilderTrendChart(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 name
width - the chart width
height - the chart height
daysNumber - the number of days
Method Detail

getSummaryGraph

public hudson.util.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


Copyright © 2004-2011. All Rights Reserved.