root / org.gvsig.dxf / trunk / org.gvsig.dxf / org.gvsig.dxf.exportto / src / main / java / org / gvsig / export / dxf / swing / ExportDXFPanels.java @ 393
History | View | Annotate | Download (2.54 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.export.dxf.swing; |
7 |
|
8 |
import org.gvsig.export.ExportParameters; |
9 |
import org.gvsig.export.swing.ExportSwingLocator; |
10 |
import org.gvsig.export.swing.JExportProcessPanel; |
11 |
import org.gvsig.export.swing.spi.AbstractExportPanels; |
12 |
import org.gvsig.export.swing.spi.ExportPanels; |
13 |
import org.gvsig.export.swing.spi.ExportPanelsFactory; |
14 |
import org.gvsig.export.swing.spi.ExportPanelsManager; |
15 |
import org.gvsig.fmap.geom.Geometry; |
16 |
|
17 |
/**
|
18 |
*
|
19 |
* @author jjdelcerro
|
20 |
*/
|
21 |
public class ExportDXFPanels |
22 |
extends AbstractExportPanels
|
23 |
implements ExportPanels
|
24 |
{ |
25 |
|
26 |
ExportDXFPanels( |
27 |
ExportPanelsFactory factory, |
28 |
JExportProcessPanel processPanel, |
29 |
ExportParameters parameters |
30 |
) { |
31 |
super(factory, processPanel, parameters);
|
32 |
this.initPanels();
|
33 |
} |
34 |
|
35 |
private void initPanels() { |
36 |
ExportPanelsManager manager = ExportSwingLocator.getExportPanelsManager(); |
37 |
|
38 |
this.add( manager.createStandardPanel(
|
39 |
ExportPanelsManager.PANEL_SELECT_GEOMETRY_FIELD, |
40 |
this.getProcessPanel(),
|
41 |
this.getParameters()
|
42 |
) |
43 |
); |
44 |
// this.add( manager.createStandardPanel(
|
45 |
// ExportPanelsManager.PANEL_SELECT_GEOMETRY_TYPE,
|
46 |
// this.getProcessPanel(),
|
47 |
// this.getParameters(),
|
48 |
// new int[] {
|
49 |
// Geometry.TYPES.GEOMETRY,
|
50 |
// Geometry.TYPES.POINT,
|
51 |
// Geometry.TYPES.LINE,
|
52 |
// Geometry.TYPES.POLYGON,
|
53 |
// Geometry.TYPES.MULTIPOINT,
|
54 |
// Geometry.TYPES.MULTILINE,
|
55 |
// Geometry.TYPES.MULTIPOLYGON
|
56 |
// },
|
57 |
// new int[] {
|
58 |
// Geometry.SUBTYPES.GEOM2D,
|
59 |
// Geometry.SUBTYPES.GEOM3D,
|
60 |
// Geometry.SUBTYPES.GEOM3DM
|
61 |
// }
|
62 |
// )
|
63 |
// );
|
64 |
this.add( manager.createStandardPanel(
|
65 |
ExportPanelsManager.PANEL_CHECK_GEOMETRIES, |
66 |
this.getProcessPanel(),
|
67 |
this.getParameters()
|
68 |
) |
69 |
); |
70 |
this.add( manager.createStandardPanel(
|
71 |
ExportPanelsManager.PANEL_SELECT_OUTPUT_FILE, |
72 |
this.getProcessPanel(),
|
73 |
this.getParameters()
|
74 |
) |
75 |
); |
76 |
} |
77 |
} |