svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / ui / raster / SaveRasterDialogPanel.java @ 1736
History | View | Annotate | Download (1.23 KB)
1 |
/*
|
---|---|
2 |
* Creado el 3-marzo-2005
|
3 |
*/
|
4 |
package org.cresques.ui.raster; |
5 |
|
6 |
import javax.swing.JPanel; |
7 |
|
8 |
import org.cresques.io.GeoRasterFile; |
9 |
import org.cresques.ui.DefaultDialogPanel; |
10 |
|
11 |
/**
|
12 |
* @author Nacho Brodin <brodin_ign@gva.es>
|
13 |
*/
|
14 |
public class SaveRasterDialogPanel extends DefaultDialogPanel { |
15 |
|
16 |
public SaveRasterDialogPanel() {
|
17 |
super();
|
18 |
initialize(); |
19 |
} |
20 |
|
21 |
/**
|
22 |
* This method initializes this
|
23 |
*
|
24 |
* @return void
|
25 |
*/
|
26 |
protected void initialize() { |
27 |
super.initialize();
|
28 |
this.setBounds(0,0,355,230); |
29 |
} |
30 |
|
31 |
protected BandSetupPanel getBandSetupPanel() {
|
32 |
return (BandSetupPanel) getContentPanel();
|
33 |
} |
34 |
|
35 |
public JPanel getContentPanel() { |
36 |
if (contentPane == null) { |
37 |
contentPane = new SaveSetupPanel();
|
38 |
contentPane.setBounds(14, 12, 345, 174); |
39 |
((SaveSetupPanel)contentPane).setDialogPanel(this);
|
40 |
} |
41 |
return contentPane;
|
42 |
} |
43 |
/**
|
44 |
* @param files
|
45 |
*/
|
46 |
public void addFiles(GeoRasterFile[] files) { |
47 |
getBandSetupPanel().addFiles(files); |
48 |
getBandSetupPanel().repaint(); |
49 |
this.repaint();
|
50 |
} |
51 |
/**
|
52 |
* @param nBand
|
53 |
* @param flag
|
54 |
*/
|
55 |
public void assignBand(int nBand, int flag) { |
56 |
getBandSetupPanel().assignBand(nBand, flag); |
57 |
} |
58 |
|
59 |
public int getAssignedBand(int flag) { |
60 |
return getBandSetupPanel().getAssignedBand(flag);
|
61 |
} |
62 |
} |
63 |
|