hudson.plugins.covcomplplot
Class CovComplPlotTaget

java.lang.Object
  extended by hudson.plugins.covcomplplot.CovComplPlotTaget
All Implemented Interfaces:
java.io.Serializable

public class CovComplPlotTaget
extends java.lang.Object
implements java.io.Serializable

Target containing coverage and complexity methods. This class handles graph and map generation in default and This class handles method list output when it is used in the detailed view. CovComplPlotTaget is used as a top level information holder. It defers the detailed information to CovComplPlotMethods.

Author:
nhn
See Also:
Serialized Form

Nested Class Summary
 class CovComplPlotTaget.GraphImpl
           
 
Field Summary
 java.lang.Object lock
           
 
Constructor Summary
CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner, java.util.List<MethodInfo> methodInfoList, Analyzer analyzer, java.util.Calendar ownersTimeStamp)
          Constructor for detailed level information holder
 
Method Summary
 void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, int cov, int compl, int page)
           
 org.jfree.data.xy.DefaultXYZDataset generateXYDataset()
           
 java.lang.String getDescription()
           
 CovComplPlotTaget.GraphImpl getGraph()
          Get graph.
 java.util.List<MethodInfo> getMethodInfoList()
           
 java.lang.String getMethodUrlLocation(MethodInfo methodInfo)
           
 hudson.model.AbstractBuild<?,?> getOwner()
          Get the build which owns this information.
static CovComplPlotTaget loadCloverScatterPlotTarget(hudson.model.AbstractBuild<?,?> build)
           
static void saveCloverScatterPlotTarget(hudson.model.AbstractBuild<?,?> build, CovComplPlotTaget target)
           
 void setOwner(hudson.model.AbstractBuild<?,?> owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

public java.lang.Object lock
Constructor Detail

CovComplPlotTaget

public CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner,
                         java.util.List<MethodInfo> methodInfoList,
                         Analyzer analyzer,
                         java.util.Calendar ownersTimeStamp)
Constructor for detailed level information holder

Parameters:
owner -
methodInfoList -
ownersTimeStamp -
Method Detail

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Get the build which owns this information.

Returns:
build object

getMethodUrlLocation

public java.lang.String getMethodUrlLocation(MethodInfo methodInfo)

getGraph

public CovComplPlotTaget.GraphImpl getGraph()
Get graph. This will be called to show graph from jelly.

Returns:
GraphImpl object

doDynamic

public void doDynamic(org.kohsuke.stapler.StaplerRequest req,
                      org.kohsuke.stapler.StaplerResponse rsp,
                      @QueryParameter(value="cov")
                      int cov,
                      @QueryParameter(value="compl")
                      int compl,
                      @QueryParameter(value="page")
                      int page)
               throws javax.servlet.ServletException,
                      java.io.IOException
Parameters:
token -
req -
rsp -
cov -
compl -
start -
size -
Throws:
javax.servlet.ServletException
java.io.IOException

getDescription

public java.lang.String getDescription()

generateXYDataset

public org.jfree.data.xy.DefaultXYZDataset generateXYDataset()

setOwner

public void setOwner(hudson.model.AbstractBuild<?,?> owner)

loadCloverScatterPlotTarget

public static CovComplPlotTaget loadCloverScatterPlotTarget(hudson.model.AbstractBuild<?,?> build)
                                                     throws java.io.IOException
Throws:
java.io.IOException

saveCloverScatterPlotTarget

public static void saveCloverScatterPlotTarget(hudson.model.AbstractBuild<?,?> build,
                                               CovComplPlotTaget target)
                                        throws java.io.IOException
Throws:
java.io.IOException

getMethodInfoList

public java.util.List<MethodInfo> getMethodInfoList()


Copyright © 2010. All Rights Reserved.