public abstract class PRQAGraph extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected List<StatusCategory> |
categories |
protected PRQAStatusCollection |
data |
protected String |
title |
protected PRQAContext.QARReportType |
type |
Constructor and Description |
---|
PRQAGraph(String title,
PRQAContext.QARReportType type,
StatusCategory... category) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsStatus(StatusCategory cat) |
protected org.jfree.chart.JFreeChart |
createChart(org.jfree.data.category.CategoryDataset dataset,
String title,
String yaxis,
int max,
int min) |
void |
drawGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
hudson.util.DataSetBuilder<String,hudson.util.ChartUtil.NumberOnlyBuildLabel> dsb,
Double thresholdMax) |
List<StatusCategory> |
getCategories() |
PRQAStatusCollection |
getData() |
String |
getTitle() |
PRQAContext.QARReportType |
getType() |
void |
setData(PRQAStatusCollection data) |
void |
setTitle(String title) |
void |
setType(PRQAContext.QARReportType type) |
protected List<StatusCategory> categories
protected PRQAStatusCollection data
protected String title
protected PRQAContext.QARReportType type
public PRQAGraph(String title, PRQAContext.QARReportType type, StatusCategory... category)
public PRQAContext.QARReportType getType()
public void setType(PRQAContext.QARReportType type)
public List<StatusCategory> getCategories()
public String getTitle()
public void setTitle(String title)
public void setData(PRQAStatusCollection data)
public PRQAStatusCollection getData()
public boolean containsStatus(StatusCategory cat)
public void drawGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, hudson.util.DataSetBuilder<String,hudson.util.ChartUtil.NumberOnlyBuildLabel> dsb, Double thresholdMax) throws IOException
IOException
Copyright © 2016–2022. All rights reserved.