Subversion Repositories bacoAlunos

Rev

Rev 1873 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1873 Rev 1912
Line 21... Line 21...
21
/**
21
/**
22
 * Created by jorgemachado on 31/10/17.
22
 * Created by jorgemachado on 31/10/17.
23
 */
23
 */
24
public class GlobalLearningResultsChartImg extends ImageComponent
24
public class GlobalLearningResultsChartImg extends ImageComponent
25
{
25
{
-
 
26
    public static final int WIDTH = 300 * 4;
-
 
27
    public static final int HEIGHT = 200 * 4;
26
    /**
28
    /**
27
     *
29
     *
28
     * @param results
30
     * @param results
29
     * @return the tmp path for generated chart
31
     * @return the tmp path for generated chart
30
     * @throws IOException
32
     * @throws IOException
Line 64... Line 66...
64
 
66
 
65
        plot.setLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font(
67
        plot.setLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font(
66
                "Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 30));
68
                "Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 30));
67
 
69
 
68
 
70
 
69
        1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage( 300*4, 200*4);
71
        1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage( WIDTH, HEIGHT);
70
        1.5.0/docs/api/java/lang/String.html">String pathGraficoTiposAlunos = Globals.TMP_DIR + java.io.1.5.0/docs/api/java/io/File.html">File.separator + tempName;
72
        1.5.0/docs/api/java/lang/String.html">String pathGraficoTiposAlunos = Globals.TMP_DIR + java.io.1.5.0/docs/api/java/io/File.html">File.separator + tempName;
71
        java.io.1.5.0/docs/api/java/io/File.html">File output = new java.io.1.5.0/docs/api/java/io/File.html">File(pathGraficoTiposAlunos);
73
        java.io.1.5.0/docs/api/java/io/File.html">File output = new java.io.1.5.0/docs/api/java/io/File.html">File(pathGraficoTiposAlunos);
72
        1.5.0/docs/api/javax/imageio/ImageIO.html">ImageIO.write(image, "png", new 1.5.0/docs/api/java/io/FileOutputStream.html">FileOutputStream(output));
74
        1.5.0/docs/api/javax/imageio/ImageIO.html">ImageIO.write(image, "png", new 1.5.0/docs/api/java/io/FileOutputStream.html">FileOutputStream(output));
73
 
75
 
74
        FileUploaded fileUploaded = new FileUploaded();
76
        FileUploaded fileUploaded = new FileUploaded();