|
||||||||||
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 of methods. This class mostly handles graph
and map generation. This class also handles detailed method list( CovComplPlotMethods
generation
when the detailed view is shown.
Nested Class Summary | |
---|---|
class |
CovComplPlotTaget.GraphImpl
Implementation of scatter plot graph |
Field Summary | |
---|---|
Object |
lock
Synchronization lock |
Constructor Summary | |
---|---|
CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner,
List<MethodInfo> methodInfoList,
Analyzer analyzer,
Calendar ownersTimeStamp)
Constructor |
Method Summary | |
---|---|
void |
doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String type,
int cov,
int compl,
int page)
Dynamic handling of Stapler request. |
org.jfree.data.xy.DefaultXYZDataset |
generateXYDataset()
Create DefaultXYZDataset instance from methodOccurenceMatrix |
String |
getCustomJavaScript()
Get custom java script |
String |
getDescription()
Get the description of the graph. |
CovComplPlotTaget.GraphImpl |
getGraph()
Get graph. |
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 Object lock
Constructor Detail |
---|
public CovComplPlotTaget(hudson.model.AbstractBuild<?,?> owner, List<MethodInfo> methodInfoList, Analyzer analyzer, 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, String type, @QueryParameter(value="cov") int cov, @QueryParameter(value="compl") int compl, @QueryParameter(value="page") int page) throws javax.servlet.ServletException, 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
IOException
public String getCustomJavaScript()
public String getDescription()
public org.jfree.data.xy.DefaultXYZDataset generateXYDataset()
DefaultXYZDataset
instance from methodOccurenceMatrix
DefaultXYZDataset
instance.public void setOwner(hudson.model.AbstractBuild<?,?> owner)
owner
- ownerpublic static CovComplPlotTaget loadCovComplScatterPlotTarget(hudson.model.AbstractBuild<?,?> build) throws IOException
CovComplPlotTaget
instance from datafile
build
- the build where the datafile is located.
CovComplPlotTaget
instance
IOException
- occurs if there is file system failure.public static void saveCovComplScatterPlotTarget(CovComplPlotTaget target) throws IOException
CovComplPlotTaget
in the datafile named.
target
- CovComplPlotTaget
instance to be saved.
IOException
- occurs if there is file system failure.public List<MethodInfo> getMethodInfoList()
MethodInfo
list.
MethodInfo
list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |