ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/GraphMaker.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter/GraphMaker.java (file contents):
Revision 1.1 by pjm2, Mon Dec 11 16:31:58 2000 UTC vs.
Revision 1.3 by pjm2, Fri Dec 15 09:39:17 2000 UTC

# Line 42 | Line 42 | public class GraphMaker {
42  
43   //---PUBLIC METHODS---
44  
45 <    public void writeGraph(String filename, int width, int height, int grade){
45 >    public void writeGraph(String filename, int width, int height, int gradeX, int gradeY){
46    
47          //Uncomment this to find out the integer values for certain colours.
48          //int rgb = 0*256*256 + 0*256 + 0;
# Line 50 | Line 50 | public class GraphMaker {
50          
51          BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
52  
53 <        _pd.drawGraph(img, width, height, grade, _fg, _bg, _gradeColour);
53 >        _pd.drawGraph(img, width, height, gradeX, gradeY, _fg, _bg, _gradeColour);
54    
55          try {
56              FileOutputStream fos = new FileOutputStream(new File(filename));
# Line 61 | Line 61 | public class GraphMaker {
61              fos.flush();
62              fos.close();
63              
64 <            System.out.println("        - Written "+width+"x"+height+" graph file");
64 >            System.out.println("            - Written "+width+"x"+height+" graph file");
65          }
66          catch(Exception e){
67              System.out.println("Could not write the .gif file.");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines