Rev 1928 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1928 | Rev 1934 | ||
---|---|---|---|
1 | package pt.estgp.estgweb.services.courses.coursereport.documentmodel.learningresults.components; |
1 | package pt.estgp.estgweb.services.courses.coursereport.documentmodel.learningresults.components; |
2 | 2 | ||
3 | import jomm.utils.BytesUtils; |
3 | import jomm.utils.BytesUtils; |
4 | import jomm.utils.MimeTypeGuesser; |
4 | import jomm.utils.MimeTypeGuesser; |
5 | import org.jfree.chart.ChartFactory; |
5 | import org.jfree.chart.ChartFactory; |
6 | import org.jfree.chart.JFreeChart; |
6 | import org.jfree.chart.JFreeChart; |
7 | import org.jfree.chart.block.BlockBorder; |
7 | import org.jfree.chart.block.BlockBorder; |
8 | import org.jfree.chart.labels.StandardCategoryItemLabelGenerator; |
8 | import org.jfree.chart.labels.StandardCategoryItemLabelGenerator; |
9 | import org.jfree.chart.plot.CategoryPlot; |
9 | import org.jfree.chart.plot.CategoryPlot; |
10 | import org.jfree.chart.plot.PlotOrientation; |
10 | import org.jfree.chart.plot.PlotOrientation; |
11 | import org.jfree.chart.renderer.category.StackedBarRenderer; |
11 | import org.jfree.chart.renderer.category.StackedBarRenderer; |
12 | import org.jfree.chart.renderer.category.StandardBarPainter; |
12 | import org.jfree.chart.renderer.category.StandardBarPainter; |
13 | import org.jfree.chart.title.LegendTitle; |
13 | import org.jfree.chart.title.LegendTitle; |
14 | import org.jfree.data.category.DefaultCategoryDataset; |
14 | import org.jfree.data.category.DefaultCategoryDataset; |
15 | import org.jfree.ui.RectangleInsets; |
15 | import org.jfree.ui.RectangleInsets; |
16 | import pt.estgp.estgweb.services.courses.coursereport.documentmodel.CourseReportDocument; |
16 | import pt.estgp.estgweb.services.courses.coursereport.documentmodel.CourseReportDocument; |
17 | import pt.estgp.estgweb.utils.Globals; |
17 | import pt.estgp.estgweb.utils.Globals; |
18 | import pt.estgp.estgweb.utils.documentBuilder.ImageComponent; |
18 | import pt.estgp.estgweb.utils.documentBuilder.ImageComponent; |
19 | import pt.estgp.estgweb.web.controllers.utils.FileUploaded; |
19 | import pt.estgp.estgweb.web.controllers.utils.FileUploaded; |
20 | 20 | ||
21 | import javax.imageio.ImageIO; |
21 | import javax.imageio.ImageIO; |
22 | import java.awt.*; |
22 | import java.awt.*; |
23 | import java.awt.image.BufferedImage; |
23 | import java.awt.image.BufferedImage; |
24 | import java.io.FileNotFoundException; |
24 | import java.io.FileNotFoundException; |
25 | import java.io.FileOutputStream; |
25 | import java.io.FileOutputStream; |
26 | import java.io.IOException; |
26 | import java.io.IOException; |
27 | import java.text.DecimalFormat; |
27 | import java.text.DecimalFormat; |
28 | import java.util.List; |
28 | import java.util.List; |
29 | import java.util.Map; |
29 | import java.util.Map; |
30 | import java.util.Random; |
30 | import java.util.Random; |
31 | 31 | ||
32 | /** |
32 | /** |
33 | * Created by danielmarmelo on 13/12/17. |
33 | * Created by danielmarmelo on 13/12/17. |
34 | */ |
34 | */ |
35 | public class LearningResultsChartSem extends ImageComponent |
35 | public class LearningResultsChartSem extends ImageComponent |
36 | { |
36 | { |
37 | 1.5.0/docs/api/java/lang/String.html">String semesterCode; |
37 | 1.5.0/docs/api/java/lang/String.html">String semesterCode; |
38 | 38 | ||
39 | 39 | ||
40 | public LearningResultsChartSem() { |
40 | public LearningResultsChartSem() { |
41 | } |
41 | } |
42 | 42 | ||
43 | public LearningResultsChartSem(1.5.0/docs/api/java/lang/String.html">String semesterCode) { |
43 | public LearningResultsChartSem(1.5.0/docs/api/java/lang/String.html">String semesterCode) { |
44 | this.semesterCode = semesterCode; |
44 | this.semesterCode = semesterCode; |
45 | setInternalCode(semesterCode); |
45 | setInternalCode(semesterCode); |
- | 46 | setWidth(300); |
|
- | 47 | setHeight(400); |
|
46 | } |
48 | } |
47 | 49 | ||
48 | public 1.5.0/docs/api/java/lang/String.html">String getSemesterCode() { |
50 | public 1.5.0/docs/api/java/lang/String.html">String getSemesterCode() { |
49 | return semesterCode; |
51 | return semesterCode; |
50 | } |
52 | } |
51 | 53 | ||
52 | public void setSemesterCode(1.5.0/docs/api/java/lang/String.html">String semesterCode) { |
54 | public void setSemesterCode(1.5.0/docs/api/java/lang/String.html">String semesterCode) { |
53 | this.semesterCode = semesterCode; |
55 | this.semesterCode = semesterCode; |
54 | } |
56 | } |
55 | 57 | ||
56 | public FileUploaded generateChart2tmp(UnitsLearningResultsTable results, CourseReportDocument courseReportDocument) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
58 | public FileUploaded generateChart2tmp(UnitsLearningResultsTable results, CourseReportDocument courseReportDocument) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
57 | List<UnitsLearningResultYear> years = results.getYears(); |
59 | List<UnitsLearningResultYear> years = results.getYears(); |
58 | 60 | ||
59 | 1.5.0/docs/api/java/lang/String.html">String tempName = BytesUtils.generateHexKey() + ".png"; |
61 | 1.5.0/docs/api/java/lang/String.html">String tempName = BytesUtils.generateHexKey() + ".png"; |
60 | 62 | ||
61 | DefaultCategoryDataset data = new DefaultCategoryDataset(); |
63 | DefaultCategoryDataset data = new DefaultCategoryDataset(); |
62 | for (UnitsLearningResultYear year : years) { |
64 | for (UnitsLearningResultYear year : years) { |
63 | for (UnitsLearningResultSemester semester : year.getSemesters()) { |
65 | for (UnitsLearningResultSemester semester : year.getSemesters()) { |
64 | if (semester.getSemestre().equals(getSemesterCode())) { |
66 | if (semester.getSemestre().equals(getSemesterCode())) { |
65 | for (UnitsLearningResultUc uc : semester.getUcs()) { |
67 | for (UnitsLearningResultUc uc : semester.getUcs()) { |
66 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getSemElementosPercent()), "Sem elementos", uc.getName()); |
68 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getSemElementosPercent()), "Sem elementos", uc.getName()); |
67 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getReprovadosPercent()), "Reprovados", uc.getName()); |
69 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getReprovadosPercent()), "Reprovados", uc.getName()); |
68 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getAprovadosPercent()), "Aprovados", uc.getName()); |
70 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(uc.getAprovadosPercent()), "Aprovados", uc.getName()); |
69 | } |
71 | } |
70 | break; |
72 | break; |
71 | } |
73 | } |
72 | } |
74 | } |
73 | } |
75 | } |
74 | 76 | ||
75 | 77 | ||
76 | JFreeChart chart = ChartFactory.createStackedBarChart( |
78 | JFreeChart chart = ChartFactory.createStackedBarChart( |
77 | null, |
79 | null, |
78 | null, |
80 | null, |
79 | null, |
81 | null, |
80 | data, |
82 | data, |
81 | PlotOrientation.HORIZONTAL, |
83 | PlotOrientation.HORIZONTAL, |
82 | true, |
84 | true, |
83 | false, |
85 | false, |
84 | false); |
86 | false); |
85 | 87 | ||
86 | chart.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
88 | chart.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
87 | CategoryPlot plot = (CategoryPlot) chart.getPlot(); |
89 | CategoryPlot plot = (CategoryPlot) chart.getPlot(); |
88 | plot.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
90 | plot.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
89 | plot.setRangeGridlinePaint(1.5.0/docs/api/java/awt/Color.html">Color.GRAY); |
91 | plot.setRangeGridlinePaint(1.5.0/docs/api/java/awt/Color.html">Color.GRAY); |
90 | plot.setRangeGridlinesVisible(true); |
92 | plot.setRangeGridlinesVisible(true); |
91 | //plot.setRangeGridlineStroke(new BasicStroke(1.0f)); |
93 | //plot.setRangeGridlineStroke(new BasicStroke(1.0f)); |
92 | 94 | ||
93 | RectangleInsets chartRectangle = new RectangleInsets(0,0,30F,0); |
95 | RectangleInsets chartRectangle = new RectangleInsets(0,0,30F,0); |
94 | chart.setPadding(chartRectangle); |
96 | chart.setPadding(chartRectangle); |
95 | 97 | ||
96 | plot.getDomainAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
98 | plot.getDomainAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
97 | plot.getRangeAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
99 | plot.getRangeAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
98 | 100 | ||
99 | StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer(); |
101 | StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer(); |
100 | // Remover gradiente das barras |
102 | // Remover gradiente das barras |
101 | renderer.setBarPainter(new StandardBarPainter()); |
103 | renderer.setBarPainter(new StandardBarPainter()); |
102 | renderer.setSeriesPaint(0, new 1.5.0/docs/api/java/awt/Color.html">Color(237,127,32)); |
104 | renderer.setSeriesPaint(0, new 1.5.0/docs/api/java/awt/Color.html">Color(237,127,32)); |
103 | renderer.setSeriesPaint(1, new 1.5.0/docs/api/java/awt/Color.html">Color(255,198,0)); |
105 | renderer.setSeriesPaint(1, new 1.5.0/docs/api/java/awt/Color.html">Color(255,198,0)); |
104 | renderer.setSeriesPaint(2, new 1.5.0/docs/api/java/awt/Color.html">Color(122,173,38)); |
106 | renderer.setSeriesPaint(2, new 1.5.0/docs/api/java/awt/Color.html">Color(122,173,38)); |
105 | renderer.setMaximumBarWidth(0.1); |
107 | renderer.setMaximumBarWidth(0.1); |
106 | 108 | ||
107 | renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator("{2}", new 1.5.0/docs/api/java/text/DecimalFormat.html">DecimalFormat("#.##'%'"))); |
109 | renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator("{2}", new 1.5.0/docs/api/java/text/DecimalFormat.html">DecimalFormat("#.##'%'"))); |
108 | renderer.setBaseItemLabelsVisible(true); |
110 | renderer.setBaseItemLabelsVisible(true); |
109 | renderer.setBaseItemLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica",1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
111 | renderer.setBaseItemLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica",1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
110 | 112 | ||
111 | LegendTitle legend = chart.getLegend(); |
113 | LegendTitle legend = chart.getLegend(); |
112 | legend.setItemFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
114 | legend.setItemFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
113 | legend.setFrame(BlockBorder.NONE); |
115 | legend.setFrame(BlockBorder.NONE); |
114 | 116 | ||
115 | 117 | ||
116 | 1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage( 300*4, 400*4); |
118 | 1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage(300*4, 400*4); |
117 | 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; |
119 | 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; |
118 | 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); |
120 | 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); |
119 | 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)); |
121 | 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)); |
120 | 122 | ||
121 | FileUploaded fileUploaded = new FileUploaded(); |
123 | FileUploaded fileUploaded = new FileUploaded(); |
122 | fileUploaded.setTmpName(tempName); |
124 | fileUploaded.setTmpName(tempName); |
123 | fileUploaded.setTitle("Taxa global de aproveitamento"); |
125 | fileUploaded.setTitle("Taxa global de aproveitamento"); |
124 | fileUploaded.setDescription("Curso: " + courseReportDocument.getCourseName() + " (" + courseReportDocument.getCourseCode()+ ") ano " + courseReportDocument.getYear()); |
126 | fileUploaded.setDescription("Curso: " + courseReportDocument.getCourseName() + " (" + courseReportDocument.getCourseCode()+ ") ano " + courseReportDocument.getYear()); |
125 | fileUploaded.setContentType(MimeTypeGuesser.getInstance().guessMimeType(output)); |
127 | fileUploaded.setContentType(MimeTypeGuesser.getInstance().guessMimeType(output)); |
126 | fileUploaded.setFileSize(output.length()); |
128 | fileUploaded.setFileSize(output.length()); |
127 | fileUploaded.setExtension("png"); |
129 | fileUploaded.setExtension("png"); |
128 | 130 | ||
129 | return fileUploaded; |
131 | return fileUploaded; |
130 | } |
132 | } |
131 | 133 | ||
132 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
134 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
133 | 1.5.0/docs/api/java/lang/String.html">String tempName = "test.png"; |
135 | 1.5.0/docs/api/java/lang/String.html">String tempName = "test.png"; |
134 | 136 | ||
135 | DefaultCategoryDataset data = new DefaultCategoryDataset(); |
137 | DefaultCategoryDataset data = new DefaultCategoryDataset(); |
136 | 138 | ||
137 | for (int i = 0; i < 16; i++) { |
139 | for (int i = 0; i < 16; i++) { |
138 | int s = new 1.5.0/docs/api/java/util/Random.html">Random().nextInt(75); |
140 | int s = new 1.5.0/docs/api/java/util/Random.html">Random().nextInt(75); |
139 | int r = new 1.5.0/docs/api/java/util/Random.html">Random().nextInt((101 - s)); |
141 | int r = new 1.5.0/docs/api/java/util/Random.html">Random().nextInt((101 - s)); |
140 | int a = (100 - s - r); |
142 | int a = (100 - s - r); |
141 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(s), "Sem elementos", "Engenharia de Software " + i); |
143 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(s), "Sem elementos", "Engenharia de Software " + i); |
142 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(r), "Reprovados", "Engenharia de Software " + i); |
144 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(r), "Reprovados", "Engenharia de Software " + i); |
143 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(a), "Aprovados", "Engenharia de Software " + i); |
145 | data.addValue(new 1.5.0/docs/api/java/lang/Double.html">Double(a), "Aprovados", "Engenharia de Software " + i); |
144 | } |
146 | } |
145 | 147 | ||
146 | 148 | ||
147 | JFreeChart chart = ChartFactory.createStackedBarChart( |
149 | JFreeChart chart = ChartFactory.createStackedBarChart( |
148 | null, |
150 | null, |
149 | null, |
151 | null, |
150 | null, |
152 | null, |
151 | data, |
153 | data, |
152 | PlotOrientation.HORIZONTAL, |
154 | PlotOrientation.HORIZONTAL, |
153 | true, |
155 | true, |
154 | false, |
156 | false, |
155 | false); |
157 | false); |
156 | 158 | ||
157 | chart.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
159 | chart.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
158 | CategoryPlot plot = (CategoryPlot) chart.getPlot(); |
160 | CategoryPlot plot = (CategoryPlot) chart.getPlot(); |
159 | plot.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
161 | plot.setBackgroundPaint(1.5.0/docs/api/java/awt/Color.html">Color.WHITE); |
160 | plot.setRangeGridlinePaint(1.5.0/docs/api/java/awt/Color.html">Color.GRAY); |
162 | plot.setRangeGridlinePaint(1.5.0/docs/api/java/awt/Color.html">Color.GRAY); |
161 | plot.setRangeGridlinesVisible(true); |
163 | plot.setRangeGridlinesVisible(true); |
162 | //plot.setRangeGridlineStroke(new BasicStroke(1.0f)); |
164 | //plot.setRangeGridlineStroke(new BasicStroke(1.0f)); |
163 | 165 | ||
164 | RectangleInsets chartRectangle = new RectangleInsets(0,0,30F,0); |
166 | RectangleInsets chartRectangle = new RectangleInsets(0,0,30F,0); |
165 | chart.setPadding(chartRectangle); |
167 | chart.setPadding(chartRectangle); |
166 | 168 | ||
167 | plot.getDomainAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
169 | plot.getDomainAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
168 | plot.getRangeAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
170 | plot.getRangeAxis().setTickLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN, 25)); |
169 | 171 | ||
170 | StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer(); |
172 | StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer(); |
171 | // Remover gradiente das barras |
173 | // Remover gradiente das barras |
172 | renderer.setBarPainter(new StandardBarPainter()); |
174 | renderer.setBarPainter(new StandardBarPainter()); |
173 | renderer.setSeriesPaint(0, new 1.5.0/docs/api/java/awt/Color.html">Color(237,127,32)); |
175 | renderer.setSeriesPaint(0, new 1.5.0/docs/api/java/awt/Color.html">Color(237,127,32)); |
174 | renderer.setSeriesPaint(1, new 1.5.0/docs/api/java/awt/Color.html">Color(255,198,0)); |
176 | renderer.setSeriesPaint(1, new 1.5.0/docs/api/java/awt/Color.html">Color(255,198,0)); |
175 | renderer.setSeriesPaint(2, new 1.5.0/docs/api/java/awt/Color.html">Color(122,173,38)); |
177 | renderer.setSeriesPaint(2, new 1.5.0/docs/api/java/awt/Color.html">Color(122,173,38)); |
176 | renderer.setMaximumBarWidth(0.1); |
178 | renderer.setMaximumBarWidth(0.1); |
177 | 179 | ||
178 | renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator("{2}", new 1.5.0/docs/api/java/text/DecimalFormat.html">DecimalFormat("#.##'%'"))); |
180 | renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator("{2}", new 1.5.0/docs/api/java/text/DecimalFormat.html">DecimalFormat("#.##'%'"))); |
179 | renderer.setBaseItemLabelsVisible(true); |
181 | renderer.setBaseItemLabelsVisible(true); |
180 | renderer.setBaseItemLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica",1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
182 | renderer.setBaseItemLabelFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica",1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
181 | 183 | ||
182 | LegendTitle legend = chart.getLegend(); |
184 | LegendTitle legend = chart.getLegend(); |
183 | legend.setItemFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
185 | legend.setItemFont(new 1.5.0/docs/api/java/awt/Font.html">Font("Helvetica", 1.5.0/docs/api/java/awt/Font.html">Font.PLAIN,25)); |
184 | legend.setFrame(BlockBorder.NONE); |
186 | legend.setFrame(BlockBorder.NONE); |
185 | 187 | ||
186 | 188 | ||
187 | 189 | ||
188 | 1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage( 300*4, 400*4); |
190 | 1.5.0/docs/api/java/awt/image/BufferedImage.html">BufferedImage image = chart.createBufferedImage( 300*4, 400*4); |
189 | 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; |
191 | 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; |
190 | 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); |
192 | 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); |
191 | 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)); |
193 | 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)); |
192 | } |
194 | } |
193 | } |
195 | } |
194 | 196 |