|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.covcomplplot.CovComplPlotTaget
public class CovComplPlotTaget
Target containing coverage and complexity methods. This class y mostlhandles graph
and map generation. This class handles detailed method list generation when
the detailed view is shown.
CovComplPlotTaget is a top level information holder.
It defers the detailed method list view responsibility to CovComplPlotMethods.
| Nested Class Summary | |
|---|---|
class |
CovComplPlotTaget.GraphImpl
Implementation of scatter plot graph |
| Field Summary | |
|---|---|
java.lang.Object |
lock
Synchronization lock |
| Constructor Summary | |
|---|---|
CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner,
java.util.List<MethodInfo> methodInfoList,
Analyzer analyzer,
java.util.Calendar ownersTimeStamp)
Constructor |
|
| Method Summary | |
|---|---|
void |
doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
int cov,
int compl,
int page)
Dynamic handling of Stapler request. |
org.jfree.data.xy.DefaultXYZDataset |
generateXYDataset()
Create DefaultXYZDataset instance from methodOccurenceMatrix |
java.lang.String |
getCustomJavaScript()
Get custom java script |
java.lang.String |
getDescription()
Get the description of the graph. |
CovComplPlotTaget.GraphImpl |
getGraph()
Get graph. |
java.util.List<MethodInfo> |
getMethodInfoList()
Get all MethodInfo list. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Get the AbstractBuild instance which owns this instance. |
static CovComplPlotTaget |
loadCovComplScatterPlotTarget(hudson.model.AbstractBuild<?,?> build)
Load CovComplPlotTaget instance from datafile |
static void |
saveCovComplScatterPlotTarget(CovComplPlotTaget target)
Save CovComplPlotTaget in the datafile named. |
void |
setOwner(hudson.model.AbstractBuild<?,?> owner)
Set owner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object lock
| Constructor Detail |
|---|
public CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner,
java.util.List<MethodInfo> methodInfoList,
Analyzer analyzer,
java.util.Calendar ownersTimeStamp)
owner - AbstractBuild instance which owns this instance.methodInfoList - MethodInfo listownersTimeStamp - timestamp of owner.| Method Detail |
|---|
public hudson.model.AbstractBuild<?,?> getOwner()
AbstractBuild instance which owns this instance.
AbstractBuild instance.public CovComplPlotTaget.GraphImpl getGraph()
projectName/build/graph/map
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
CovComplPlotMethods object based on the given parameters and
redirect the StaplerRequest to the created object.
req - stapler requestrsp - stapler responsecov - coverage range start valuecompl - complexity range start valuepage - page
javax.servlet.ServletException
java.io.IOExceptionpublic java.lang.String getCustomJavaScript()
public java.lang.String getDescription()
public org.jfree.data.xy.DefaultXYZDataset generateXYDataset()
DefaultXYZDataset instance from methodOccurenceMatrix
DefaultXYZDataset instance.public void setOwner(hudson.model.AbstractBuild<?,?> owner)
owner - owner
public static CovComplPlotTaget loadCovComplScatterPlotTarget(hudson.model.AbstractBuild<?,?> build)
throws java.io.IOException
CovComplPlotTaget instance from datafile
build - the build where the datafile is located.
CovComplPlotTaget instance
java.io.IOException - occurs if there is file system failure.
public static void saveCovComplScatterPlotTarget(CovComplPlotTaget target)
throws java.io.IOException
CovComplPlotTaget in the datafile named.
target - CovComplPlotTaget instance to be saved.
java.io.IOException - occurs if there is file system failure.public java.util.List<MethodInfo> getMethodInfoList()
MethodInfo list.
MethodInfo list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||