Revision 109 1.10/trunk/extensions/ext3Dgui/src/org/gvsig/gvsig3dgui/display/DisplayPanel.java

View differences:

DisplayPanel.java
29 29

  
30 30
	private WindowInfo 				_viewinfo;
31 31
	private int 					_width = 480;
32
	private int 					_height = 250;
32
	private int 					_height = 200;
33 33
	private View3D 					_view3D;
34 34
	private DisplaySettings 		_ds;
35 35

  
36 36
	private javax.swing.JButton 	jButton1;
37 37
	private javax.swing.JButton 	jButton2;
38 38
	private javax.swing.JComboBox 	jComboBox1;
39
	private javax.swing.JComboBox 	jComboBox2;
40 39
	private javax.swing.JComboBox 	jComboBox3;
41 40
	private javax.swing.JLabel 		jLabel1;
42
	private javax.swing.JLabel 		jLabel2;
43 41
	private javax.swing.JLabel 		jLabel3;
44 42
	private javax.swing.JLabel 		jLabel4;
45 43
	private javax.swing.JLabel 		jLabel5;
......
72 70

  
73 71
		jPanel1 = new javax.swing.JPanel();
74 72
		jComboBox1 = new javax.swing.JComboBox();
75
		jComboBox2 = new javax.swing.JComboBox();
76 73
		jButton2 = new javax.swing.JButton();
77 74
		jButton1 = new javax.swing.JButton();
78 75
		jComboBox3 = new javax.swing.JComboBox();
79 76
		jLabel1 = new javax.swing.JLabel();
80
		jLabel2 = new javax.swing.JLabel();
81 77
		jLabel3 = new javax.swing.JLabel();
82 78
		jLabel4 = new javax.swing.JLabel();
83 79
		jLabel5 = new javax.swing.JLabel();
......
146 142

  
147 143
		});
148 144

  
149
		jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
150
				PluginServices.getText(this, "None"),
151
				PluginServices.getText(this, "2X"),
152
				PluginServices.getText(this, "4X") }));
153
		gridBagConstraints = new java.awt.GridBagConstraints();
154
		gridBagConstraints.gridx = 1;
155
		gridBagConstraints.gridy = 2;
156
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
157
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
158
		jPanel1.add(jComboBox2, gridBagConstraints);
159

  
160
		jComboBox2.addItemListener(new ItemListener() {
161

  
162
			public void itemStateChanged(ItemEvent e) {
163
				jComboBox2ItemSelected(e);
164
			}
165

  
166
		});
167

  
168 145
		jButton2.setText(PluginServices.getText(this, "Cancel"));
169 146
		jButton2.addActionListener(new java.awt.event.ActionListener() {
170 147
			public void actionPerformed(java.awt.event.ActionEvent evt) {
......
218 195
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
219 196
		jPanel1.add(jLabel1, gridBagConstraints);
220 197

  
221
		jLabel2.setText(PluginServices.getText(this, "Antialiasing"));
222
		gridBagConstraints = new java.awt.GridBagConstraints();
223
		gridBagConstraints.gridx = 0;
224
		gridBagConstraints.gridy = 2;
225
		gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
226
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
227
		jPanel1.add(jLabel2, gridBagConstraints);
228

  
229 198
		jLabel3.setText(PluginServices.getText(this, "Visualizacion_estereo"));
230 199
		gridBagConstraints = new java.awt.GridBagConstraints();
231 200
		gridBagConstraints.gridx = 0;
......
313 282

  
314 283
	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
315 284

  
316
		int stereo, antialias, device;
285
		int stereo, device;
317 286

  
318 287
		_view3D = (View3D) PluginServices.getMDIManager().getActiveWindow();
319 288
		stereo = jComboBox1.getSelectedIndex();
320
		antialias = jComboBox2.getSelectedIndex();
321 289
		device = jComboBox3.getSelectedIndex();
322 290
		switch (stereo) {
323 291

  
......
370 338
			break;
371 339

  
372 340
		}
373
		switch (antialias) {
341
		/*switch (antialias) {
374 342

  
375 343
		case 0:
376 344
			break;
......
383 351
			_ds.setNumMultiSamples(4);
384 352
			break;
385 353

  
386
		}
354
		}*/
387 355

  
388 356
		switch (device) {
389 357

  
......
421 389

  
422 390
	}
423 391

  
424
	private void jComboBox2ItemSelected(ItemEvent e) {
425

  
426
	}
427

  
428 392
	private void jComboBox1ItemSelected(ItemEvent e) {
429 393
		if (e.getItem().equals(PluginServices.getText(this, "None"))) {
430 394
			jComboBox3.setEnabled(false);
......
521 485
		if (!_ds.getStereo())
522 486
			jComboBox1.setSelectedIndex(0);
523 487

  
524
		switch (antialias) {
525

  
526
		case 0:
527
			jComboBox2.setSelectedIndex(0);
528
			break;
529

  
530
		case 2:
531
			jComboBox2.setSelectedIndex(1);
532
			break;
533

  
534
		case 4:
535
			jComboBox2.setSelectedIndex(2);
536
			break;
537

  
538
		}
539

  
540 488
		switch (device) {
541 489

  
542 490
		case 0:

Also available in: Unified diff