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

Method Project

Singular/LIB/surfex/Project.java:160–516  ·  view source on GitHub ↗
(surfex su, jv4surfex jv4sx, int proNr, String proName)

Source from the content-addressed store, hash-verified

158 String tmp_surfex_file = "tmp_surfex.jpg";
159
160 Project(surfex su, jv4surfex jv4sx, int proNr, String proName) {
161 surfex_ = su;
162 rayFrame = surfex_.rayFrame;
163 this.jv4sx = jv4sx;
164 ProjectNumber = proNr;
165 projectName = proName;
166
167 // create a new temporary filename: tmp_surfex_file
168 Random myRNG = new Random();
169 int myRN = myRNG.nextInt(99999999);
170 //System.out.println("rn:"+myRN);
171 tmp_surfex_file = "tmp_surfex_" + myRN + "_" + proNr + ".jpg";
172
173 savePicDialog = new SavePicDialog(projectName, rayFrame, this, surfex_);
174
175
176 // int i, String filename, RayFrame ray, surfex su,
177 // jv4surfex jv4sx
178 eqAdm = new EquationAdmin(proNr, "", surfex_.rayFrame, surfex_,
179 surfex_.jv4sx, this);
180 cuAdm = new CurveAdmin(proNr, "", surfex_, this);
181
182 setLayout(new BorderLayout());//new GridLayout(3,1));
183 JPanel toplinePanel = new JPanel(new BorderLayout());
184 JPanel toplineGridPanel = new JPanel(new GridLayout(2, 1));
185 JPanel controlpanel = new JPanel(new FlowLayout());
186 JPanel globalConfigPanel = new JPanel(new FlowLayout());
187 JPanel leftFlushGCPanel = new JPanel(new BorderLayout());
188
189
190 toplinePanel.add(toplineGridPanel, BorderLayout.WEST);
191 toplineGridPanel.add(controlpanel);
192 leftFlushGCPanel.add(globalConfigPanel, BorderLayout.WEST);
193 toplineGridPanel.add(leftFlushGCPanel);
194
195
196 add(toplinePanel, BorderLayout.NORTH);
197
198 parAdmin = new ParameterAdmin(surfex_, this);
199 JSplitPane tempPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
200 new JScrollPane(eqAdm), new JScrollPane(cuAdm));
201 tempPanel.setDividerLocation(160);
202 JSplitPane tempPanel1 = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
203 new JScrollPane(parAdmin), tempPanel);
204 tempPanel1.setDividerLocation(60);
205 //add(tempPanel1,BorderLayout.CENTER);
206 //tempPanel.add(new JScrollPane(eqAdm));
207 //tempPanel.add(new JScrollPane(cuAdm));
208
209 solPtsAdm = new SolitaryPointsAdmin(surfex_, this);
210 JSplitPane tempPanel2 = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
211 tempPanel1, new JScrollPane(solPtsAdm));
212 tempPanel2.setDividerLocation(300);
213 add(tempPanel2, BorderLayout.CENTER);
214
215 //JPanel controlpanel=new JPanel();
216
217 //this.add(controlpanel, BorderLayout.NORTH);

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
toStringMethod · 0.45
setScaleMethod · 0.45

Tested by

no test coverage detected