Subversion Repositories wimsdev

Rev

Rev 3653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3653 Rev 4033
Line 47... Line 47...
47
    int total_balls=100000;
47
    int total_balls=100000;
48
    double chance=0.5;
48
    double chance=0.5;
49
    int frame_x=600;
49
    int frame_x=600;
50
    int frame_y=600;
50
    int frame_y=600;
51
    int font_size=14;
51
    int font_size=14;
-
 
52
    int bin_height=100;
52
    String title="Binomial Distribution";
53
    String title="Binomial Distribution";
53
    String click_text="CLICK ANYWHERE TO BEGIN";
54
    String click_text="CLICK ANYWHERE TO BEGIN";
54
    String start_text="START";
55
    String start_text="START";
55
    String stop_text="STOP";
56
    String stop_text="STOP";
56
    String clear_text="CLEAR";
57
    String clear_text="CLEAR";
Line 64... Line 65...
64
    String label_probability="Probability: ";    
65
    String label_probability="Probability: ";    
65
    String label_bin_count="Bin Count: ";
66
    String label_bin_count="Bin Count: ";
66
    String label_bin_probability="Bin Probability: ";
67
    String label_bin_probability="Bin Probability: ";
67
    String label_confidence="Confidence Interval: ";
68
    String label_confidence="Confidence Interval: ";
68
    String some_text=" % of the balls landed in bin ";
69
    String some_text=" % of the balls landed in bin ";
-
 
70
    String some_text2=" % of the balls landed in bins ";
69
    String through=" through ";
71
    String through=" through ";
70
    String label_controls=" Controls ";
72
    String label_controls=" Controls ";
71
    String label_statistics="Statistics";
73
    String label_statistics="Statistics";
72
     
74
     
73
    public void init(){
75
    public void init(){
Line 90... Line 92...
90
                if(s!=null && s.length()>0){frame_y = Integer.parseInt(s, 10);}
92
                if(s!=null && s.length()>0){frame_y = Integer.parseInt(s, 10);}
91
                s=getParameter("title");
93
                s=getParameter("title");
92
                if(s!=null && s.length()>0){title=s;}
94
                if(s!=null && s.length()>0){title=s;}
93
                s=getParameter("font_size");
95
                s=getParameter("font_size");
94
                if(s!=null && s.length()>0){font_size = Integer.parseInt(s, 10);}
96
                if(s!=null && s.length()>0){font_size = Integer.parseInt(s, 10);}
-
 
97
                s=getParameter("binheight");
-
 
98
                if(s!=null && s.length()>0){bin_height = Integer.parseInt(s, 10);}
95
 
99
 
96
            }
100
            }
97
        }
101
        }
98
        s=getParameter("language");
102
        s=getParameter("language");
99
        if(s!=null && s.length()>0){
103
        if(s!=null && s.length()>0){
Line 112... Line 116...
112
                label_bin_count="Ballen/bakje: ";
116
                label_bin_count="Ballen/bakje: ";
113
                label_probability="Kans: ";    
117
                label_probability="Kans: ";    
114
                label_bin_probability="Kans per bakje: ";
118
                label_bin_probability="Kans per bakje: ";
115
                label_confidence="Betrouwbaarheids interval: ";
119
                label_confidence="Betrouwbaarheids interval: ";
116
                some_text=" % van de ballen in bakje: ";
120
                some_text=" % van de ballen in bakje: ";
-
 
121
                some_text2=" % van de ballen in bakje: ";
117
                through=" t/m ";
122
                through=" t/m ";
118
                String label_controls=" Menu ";
123
                String label_controls=" Menu ";
119
                String label_statistics="Statistiek";
124
                String label_statistics="Statistiek";
120
            }
125
            }
121
            if(s.equalsIgnoreCase("fr")){
126
            if(s.equalsIgnoreCase("fr")){
Line 133... Line 138...
133
                label_bin_count="Balles dans ce panier : ";
138
                label_bin_count="Balles dans ce panier : ";
134
                label_bin_probability="% de balles dans ce panier : ";
139
                label_bin_probability="% de balles dans ce panier : ";
135
                label_probability="Probabilit\u00E9 : ";    
140
                label_probability="Probabilit\u00E9 : ";    
136
                label_confidence="Intervalle de confiance : ";
141
                label_confidence="Intervalle de confiance : ";
137
                some_text=" % de balles dans le panier ";
142
                some_text=" % de balles dans le panier ";
-
 
143
                some_text2=" % de balles dans les paniers ";
138
                through=" through ";
144
                through=" \u00E0 ";
139
                label_controls="Menu";
145
                label_controls="Menu";
140
                label_statistics="Statistiques";
146
                label_statistics="Statistiques";
141
            }
147
            }
142
            if(s.equalsIgnoreCase("de")){
148
            if(s.equalsIgnoreCase("de")){
143
                click_text="Klicken Sie hier um zu starten";
149
                click_text="Klicken Sie hier um zu starten";
Line 154... Line 160...
154
                label_bin_count="Zahl/Behälter: ";
160
                label_bin_count="Zahl/Behälter: ";
155
                label_bin_probability="Wahrscheinlichkeit in Behälter: ";
161
                label_bin_probability="Wahrscheinlichkeit in Behälter: ";
156
                label_probability="Wahrscheinlichkeit: ";    
162
                label_probability="Wahrscheinlichkeit: ";    
157
                label_confidence="Wahrscheinlichkeits Intervall: ";
163
                label_confidence="Wahrscheinlichkeits Intervall: ";
158
                some_text=" % der Kugeln fällt in Behälter ";
164
                some_text=" % der Kugeln fällt in Behälter ";
-
 
165
                some_text2=" % der Kugeln fällt in Behälter ";
159
                through=" bis ";
166
                through=" bis ";
160
                String label_controls=" Menu ";
167
                String label_controls=" Menu ";
161
                String label_statistics="Statistik";
168
                String label_statistics="Statistik";
162
            }
169
            }
163
        }
170
        }