MCPcopy Create free account
hub / github.com/Singular/Singular / ConfigFrame

Method ConfigFrame

Singular/LIB/surfex/ConfigFrame.java:193–315  ·  view source on GitHub ↗
(String pPath, String sPath, String imPath, String ivPath,
			int iConst, String svPath, UpdateRayframeImmediatlyThread uT,
			surfex su)

Source from the content-addressed store, hash-verified

191 }
192
193 ConfigFrame(String pPath, String sPath, String imPath, String ivPath,
194 int iConst, String svPath, UpdateRayframeImmediatlyThread uT,
195 surfex su) {
196 super("Config surfex");
197 surfex_ = su;
198 //updateRayframeImmediatlyThread = uT;
199 setSize(300, 350);
200 interpolConst = new JTextField((new Integer(iConst)).toString(), 1);
201 setLocation(100, 100);
202 Container cp = getContentPane();
203 cp.setLayout(new BorderLayout());
204 panel = new JPanel(new GridLayout(5, 1));
205
206 // panel.add(rayImme);
207 rayImme.addChangeListener(CL);
208
209 panel2 = new JPanel(new GridLayout(1, 2));
210 panel2.add(new JLabel(" interpolation const."));
211 panel2.add(interpolConst);
212 panel.add(panel2);
213
214 panel3 = new JPanel(new GridLayout(1, 3));
215 panel3.add(new JLabel(" raytracer"));
216 surf = new JRadioButton("surf", true);
217 surf.addChangeListener(CL);
218 pov = new JRadioButton("POVray");
219 pov.addChangeListener(CL);
220 ButtonGroup group = new ButtonGroup();
221 group.add(surf);
222 panel3.add(surf);
223 if (!(surfex_.inAnApplet)) {
224 group.add(pov);
225 panel3.add(pov);
226 }
227 panel.add(panel3);
228
229 ButtonGroup group2 = new ButtonGroup();
230
231 if (surfex_.inAnApplet) {
232 webPro = new JRadioButton("use web Programs", true);
233 localPro = new JRadioButton("use local Programs");
234 localPro.setEnabled(false);
235 } else {
236 webPro = new JRadioButton("use web Programs");
237 localPro = new JRadioButton("use local Programs", true);
238 }
239 localPro.addChangeListener(CL);
240 group2.add(localPro);
241 group2.add(webPro);
242 panel.add(webPro);
243 panel.add(localPro);
244
245 panel4 = new JPanel(new BorderLayout());
246 panel5 = new JPanel(new GridLayout(6, 1));
247 panel6 = new JPanel(new GridLayout(6, 1));
248 panel7 = new JPanel(new GridLayout(6, 1));
249
250 panel5.add(new JLabel("POV:"));

Callers

nothing calls this directly

Calls 8

povAvailableMethod · 0.95
surfAvailableMethod · 0.95
impsurfAvailableMethod · 0.95
iviewAvailableMethod · 0.95
serverAvailableMethod · 0.95
setVisibleMethod · 0.80
toStringMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected