svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / ui / raster / SaveRasterDialogPanel.java @ 1750
History | View | Annotate | Download (1.33 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 |
//Ocultamos el bot?n de aplicar
|
31 |
|
32 |
this.getApplyButton().setVisible(false); |
33 |
} |
34 |
|
35 |
protected BandSetupPanel getBandSetupPanel() {
|
36 |
return (BandSetupPanel) getContentPanel();
|
37 |
} |
38 |
|
39 |
public JPanel getContentPanel() { |
40 |
if (contentPane == null) { |
41 |
contentPane = new SaveSetupPanel();
|
42 |
contentPane.setBounds(14, 12, 345, 174); |
43 |
((SaveSetupPanel)contentPane).setDialogPanel(this);
|
44 |
} |
45 |
return contentPane;
|
46 |
} |
47 |
/**
|
48 |
* @param files
|
49 |
*/
|
50 |
public void addFiles(GeoRasterFile[] files) { |
51 |
getBandSetupPanel().addFiles(files); |
52 |
getBandSetupPanel().repaint(); |
53 |
this.repaint();
|
54 |
} |
55 |
/**
|
56 |
* @param nBand
|
57 |
* @param flag
|
58 |
*/
|
59 |
public void assignBand(int nBand, int flag) { |
60 |
getBandSetupPanel().assignBand(nBand, flag); |
61 |
} |
62 |
|
63 |
public int getAssignedBand(int flag) { |
64 |
return getBandSetupPanel().getAssignedBand(flag);
|
65 |
} |
66 |
} |
67 |
|