root / trunk / extensions / extRasterTools-SE / src / org / gvsig / rastertools / raw / ui / main / OpenRawFileDefaultView.java @ 20646
History | View | Annotate | Download (2.27 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.raw.ui.main; |
20 |
|
21 |
import java.io.File; |
22 |
|
23 |
import org.gvsig.raster.util.RasterToolsUtil; |
24 |
import org.gvsig.rastertools.raw.ui.listener.OpenRawFileDefaultViewListener; |
25 |
|
26 |
import com.iver.andami.ui.mdiManager.IWindow; |
27 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
28 |
/**
|
29 |
* This class implemens the View interface to add the open raw panel in gvSIG
|
30 |
*
|
31 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
32 |
*/
|
33 |
public class OpenRawFileDefaultView extends OpenRawFileDefaultPanel implements IWindow{ |
34 |
private static final long serialVersionUID = -686663312171728878L; |
35 |
private File imageFile = null; |
36 |
|
37 |
/**
|
38 |
* Constructor. It create and sets the listener for the window buttons.
|
39 |
* @param rawFile Raw file name
|
40 |
*/
|
41 |
public OpenRawFileDefaultView(String rawFileName){ |
42 |
super(rawFileName);
|
43 |
setActionListener(new OpenRawFileDefaultViewListener(this)); |
44 |
RasterToolsUtil.addWindow(this);
|
45 |
} |
46 |
|
47 |
/*
|
48 |
* (non-Javadoc)
|
49 |
* @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
|
50 |
*/
|
51 |
public WindowInfo getWindowInfo() {
|
52 |
WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG);
|
53 |
m_viewinfo.setTitle(RasterToolsUtil.getText(this, "open_raw_file")); |
54 |
m_viewinfo.setHeight(270);
|
55 |
m_viewinfo.setWidth(540);
|
56 |
return m_viewinfo;
|
57 |
} |
58 |
|
59 |
/**
|
60 |
* @return Returns the imageFile.
|
61 |
*/
|
62 |
public File getImageFile() { |
63 |
return imageFile;
|
64 |
} |
65 |
|
66 |
/**
|
67 |
* @param imageFile The imageFile to set.
|
68 |
*/
|
69 |
public void setImageFile(File imageFile) { |
70 |
this.imageFile = imageFile;
|
71 |
} |
72 |
} |