Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extRasterTools-SE / src / org / gvsig / rastertools / saveraster / ui / properties / WriterPropertiesDialog.java @ 11549

History | View | Annotate | Download (2.43 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 */
19
package org.gvsig.rastertools.saveraster.ui.properties;
20

    
21
import java.awt.BorderLayout;
22

    
23
import javax.swing.JPanel;
24

    
25
import org.gvsig.gui.beans.propertiespanel.PropertiesPanel;
26
import org.gvsig.raster.dataset.WriterParams;
27
import org.gvsig.rastertools.saveraster.ui.listener.WriterPropertiesListener;
28

    
29
import com.iver.andami.PluginServices;
30
import com.iver.andami.ui.mdiManager.IWindow;
31
import com.iver.andami.ui.mdiManager.WindowInfo;
32

    
33
/**
34
 * Ventana para el dialogo de propiedades del driver de escritura.
35
 * 
36
 * @version 24/04/2007
37
 * @author Nacho Brodin (nachobrodin@gmail.com)
38
 *
39
 */
40
public class WriterPropertiesDialog extends JPanel implements IWindow {
41
        private static final long serialVersionUID = 1L;
42
        private PropertiesPanel pd = null;
43
        private WriterPropertiesListener listener = null;
44
        
45
        /**
46
         * Constructor. Asigna el panel de propiedades.
47
         * @param pd PropertiesDialog
48
         */
49
        public WriterPropertiesDialog(PropertiesPanel pd, WriterParams params) {
50
                this.pd = pd;
51
                listener = new WriterPropertiesListener(this, params);
52
                pd.addButtonPressedListener(listener);
53
                setSize(330, 225);
54
                this.setLayout(new BorderLayout());
55
                add(pd, BorderLayout.CENTER);
56
        }
57
        
58
        /**
59
         * Obtiene el componente panel de propiedades
60
         * @return PropertiesPanel
61
         */
62
        public PropertiesPanel getPropertiesPanel() {
63
                return pd;
64
        }
65
        
66
        /*
67
         * (non-Javadoc)
68
         * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
69
         */
70
        public WindowInfo getWindowInfo() {
71
                WindowInfo m_viewinfo=new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE);
72
                m_viewinfo.setTitle(PluginServices.getText(this, "properties"));
73
                return m_viewinfo;
74
        }
75

    
76
}