Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
157 kaklik 1
/*
2
    AVRcamVIEW: A PC application to test out the functionallity of the
3
     AVRcam real-time image processing engine.
4
    Copyright (C) 2004    Brent A. Taylor
5
 
6
    This program is free software; you can redistribute it and/or
7
    modify it under the terms of the GNU General Public
8
    License as published by the Free Software Foundation; either
9
    version 2 of the License, or (at your option) any later version.
10
 
11
    This program is distributed in the hope that it will be useful,
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
    General Public License for more details.
15
 
16
    You should have received a copy of the GNU General Public
17
    License along with this program; if not, write to the Free Software
18
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
20
   For more information on the AVRcamVIEW, please contact:
21
 
22
   taylorba@comcast.net
23
 
24
   or go to www.jrobot.net for more details regarding the system.
25
*/
26
 
27
package avr.lang;
28
 
29
import java.util.logging.*;
30
import java.util.prefs.*;
31
import javax.swing.*;
32
 
33
import avr.device.*;
34
 
35
public class AVRSystem {
36
 
37
   public static final Resource RES;
38
 
39
   public static final Logger LOG;
40
 
41
   public static final String RELEASE_MINOR;
42
   public static final String RELEASE_MAJOR;
43
 
44
   public static final String BUILD_DATE;
45
 
46
   public static final Preferences PREFS;
47
 
48
   public static final JFileChooser FILE_CHOOSER;
49
   public static final String BAYER_FILE_EXT;
50
   public static final String TRACK_FILE_EXT;
51
 
52
   public static final int IMAGE_WIDTH;
53
   public static final int IMAGE_HEIGHT;
54
 
55
   public static final int NUM_INTENSITIES;
56
 
57
   public static final Device DEVICE;
58
 
59
   static {
60
 
61
      LOG = Logger.getLogger("AVRcamVIEW");
62
      LOG.setLevel(Level.ALL);
63
 
64
      PREFS = Preferences.userRoot().node("AVRcamVIEW");
65
 
66
      RES = new Resource("avr.resource.avr");
67
 
68
      FILE_CHOOSER = new JFileChooser(".");
69
 
70
      BAYER_FILE_EXT = RES.getString("file.ext.byr");
71
      TRACK_FILE_EXT = RES.getString("file.ext.trk");
72
 
73
      IMAGE_WIDTH = RES.getInt("image.width");
74
      IMAGE_HEIGHT = RES.getInt("image.height");
75
 
76
      NUM_INTENSITIES = RES.getInt("number.intensities");
77
 
78
      BUILD_DATE = RES.getString("build.date");
79
      RELEASE_MAJOR = RES.getString("build.major");
80
      RELEASE_MINOR = RES.getString("build.minor");
81
 
82
      DEVICE = new Device();
83
 
84
   }
85
 
86
   private AVRSystem() {
87
   }
88
 
89
}