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

Method LampAdmin

Singular/LIB/surfex/LampAdmin.java:121–317  ·  view source on GitHub ↗
(surfex su, Project pro)

Source from the content-addressed store, hash-verified

119 UpdateRayframeImmediatlyThread updateRayframeImmediatlyThread;
120
121 LampAdmin(surfex su, Project pro) {
122
123 super("Configure lamps of " + pro.filename);
124 surfex = su;
125
126 makeDarkLamp();
127 this.pro = pro;
128 // create a new temporary filename: tmp_surfex_file
129 Random myRNG = new Random();
130 int myRN = myRNG.nextInt(99999999);
131 //System.out.println("rn:"+myRN);
132 tmp_surfex_file = "tmp_surfex_lampPrev" + myRN + "_"
133 + pro.ProjectNumber + ".jpg";
134
135
136 if (surfex.iaa) {
137 jv4sx = new jv4surfex(true, surfex.theApplet, surfex, 624,100);
138 // surfex.theApplet = theApplet;
139 } else {
140 jv4sx = new jv4surfex(false, null, surfex,624,100);//, 624);
141 }
142 //System.out.println(vec2Str(jv4sx.getCamPos()));
143
144
145
146 //jv4sx.show();
147
148
149
150 //paramComboBox=new JComboBox();
151
152 JPanel controlPanel = new JPanel(new FlowLayout());
153 //JPanel flowPanel = new JPanel(new FlowLayout());
154 JButton saveas;
155 try {
156 if ((surfex.filePrefix).equals("")) {
157 saveas = new JButton(new ImageIcon("saveas.gif"));
158 } else {
159 saveas = new JButton(new ImageIcon(new URL(surfex.filePrefix
160 + "saveas.gif")));
161 }
162 } catch (MalformedURLException e) {
163 System.out.println(e.toString());
164 saveas = new JButton();
165 }
166 saveas.setToolTipText("save this Lamp settings" + pro.projectName
167 + " as");
168 saveas.addActionListener(this);
169 saveas.setActionCommand("saveas");
170 //if(!surfex_.inAnApplet) {
171 controlPanel.add(saveas);
172
173 getContentPane().setLayout(new BorderLayout());
174
175
176 lampPanel[0]=new JPanel(new BorderLayout());
177 for(int kkk=0;kkk<N;kkk++){
178 lampPanel[kkk+1]=new JPanel(new BorderLayout());

Callers

nothing calls this directly

Calls 12

makeDarkLampMethod · 0.95
getSelectedLampMethod · 0.95
getModifiedLampListMethod · 0.95
setVisibleMethod · 0.80
setInfoMethod · 0.80
toStringMethod · 0.45
addMethod · 0.45
isSelectedMethod · 0.45
setPosTextFields2Method · 0.45
startMethod · 0.45

Tested by

no test coverage detected