--- a/tool/src/main/Graphs.java
+++ b/tool/src/utils/Graphs.java
@@ -4,14 +4,13 @@
* Creator: Organization: TripleCheck (contact@triplecheck.de)
* Created: 2013-09-13T00:00:00Z
* LicenseName: NOASSERTION
- * FileName: actions.java
+ * FileName: Graphs.java
* FileType: SOURCE
* FileCopyrightText: <text> Copyright 2013 Nuno Brito, TripleCheck </text>
- * FileComment: <text> A simple static class to provide default actions
- * related to SPDX handling </text>
+ * FileComment: <text> Outputs graphs as image files. </text>
*/
-package main;
+package utils;
import java.awt.Color;
import java.io.File;
@@ -33,9 +32,9 @@
public class Graphs {
public static File generate(File baseFolder, String titles[], int[] values) {
DefaultPieDataset dataset = new DefaultPieDataset();
-// dataset.setValue("No license declared", 5);
-// dataset.setValue("License declared", 3);
- int i = -1;
+
+ // add our data values
+ int i = -1;
for(String title : titles){
i++;
dataset.setValue(title, values[i]);
@@ -50,8 +49,8 @@
true, // include legend
true,
false);
-
- PiePlot3D plot = (PiePlot3D) chart.getPlot();
+
+ PiePlot3D plot = (PiePlot3D) chart.getPlot();
//plot.setStartAngle(290);
plot.setStartAngle(290);
plot.setDirection(Rotation.CLOCKWISE);