Formatted code.
This commit is contained in:
parent
0f58eccab9
commit
8d177e5f35
1 changed files with 31 additions and 31 deletions
|
@ -38,34 +38,6 @@ public class IssueStatusChartView
|
||||||
{
|
{
|
||||||
private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class);
|
private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class);
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds the grouped.
|
|
||||||
*
|
|
||||||
* @param title
|
|
||||||
* the title
|
|
||||||
* @param project
|
|
||||||
* the project
|
|
||||||
* @return the string
|
|
||||||
* @throws AgirStatoolException
|
|
||||||
* the agir statool exception
|
|
||||||
*/
|
|
||||||
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
|
|
||||||
{
|
|
||||||
String result;
|
|
||||||
|
|
||||||
StringList labels = new StringList("Maybe", "Active", "Resolved");
|
|
||||||
StringList values = new StringList();
|
|
||||||
values.append(project.issueStats().getMaybeCount());
|
|
||||||
values.append(project.issueStats().getActiveCount());
|
|
||||||
values.append(project.issueStats().getResolvedCount());
|
|
||||||
|
|
||||||
String targetTitle = title + " – " + project.getName();
|
|
||||||
result = build(targetTitle, targetTitle, labels, values);
|
|
||||||
|
|
||||||
//
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the.
|
* Builds the.
|
||||||
*
|
*
|
||||||
|
@ -80,7 +52,7 @@ public class IssueStatusChartView
|
||||||
public static String build(final String title, final Project project) throws AgirStatoolException
|
public static String build(final String title, final Project project) throws AgirStatoolException
|
||||||
{
|
{
|
||||||
String result;
|
String result;
|
||||||
|
|
||||||
StringList labels = new StringList("Maybe", "New", "Confirmed", "Ongoing", "Waiting", "Resolved");
|
StringList labels = new StringList("Maybe", "New", "Confirmed", "Ongoing", "Waiting", "Resolved");
|
||||||
StringList values = new StringList();
|
StringList values = new StringList();
|
||||||
values.append(project.issueStats().getMaybeCount());
|
values.append(project.issueStats().getMaybeCount());
|
||||||
|
@ -89,10 +61,10 @@ public class IssueStatusChartView
|
||||||
values.append(project.issueStats().getOngoingCount());
|
values.append(project.issueStats().getOngoingCount());
|
||||||
values.append(project.issueStats().getWaitingCount());
|
values.append(project.issueStats().getWaitingCount());
|
||||||
values.append(project.issueStats().getResolvedCount());
|
values.append(project.issueStats().getResolvedCount());
|
||||||
|
|
||||||
String targetTitle = title + " – " + project.getName();
|
String targetTitle = title + " – " + project.getName();
|
||||||
result = build(targetTitle, targetTitle, labels, values);
|
result = build(targetTitle, targetTitle, labels, values);
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -136,4 +108,32 @@ public class IssueStatusChartView
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds the grouped.
|
||||||
|
*
|
||||||
|
* @param title
|
||||||
|
* the title
|
||||||
|
* @param project
|
||||||
|
* the project
|
||||||
|
* @return the string
|
||||||
|
* @throws AgirStatoolException
|
||||||
|
* the agir statool exception
|
||||||
|
*/
|
||||||
|
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
|
||||||
|
{
|
||||||
|
String result;
|
||||||
|
|
||||||
|
StringList labels = new StringList("Maybe", "Active", "Resolved");
|
||||||
|
StringList values = new StringList();
|
||||||
|
values.append(project.issueStats().getMaybeCount());
|
||||||
|
values.append(project.issueStats().getActiveCount());
|
||||||
|
values.append(project.issueStats().getResolvedCount());
|
||||||
|
|
||||||
|
String targetTitle = title + " – " + project.getName();
|
||||||
|
result = build(targetTitle, targetTitle, labels, values);
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue