svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / ui / raster / RasterPropsDialogPanel.java @ 1750
History | View | Annotate | Download (1.26 KB)
1 | 1527 | luisw | /*
|
---|---|---|---|
2 | * Creado el 20-feb-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 | * Dialogo para configurar las propiedades del raster.
|
||
13 | * @author "Luis W. Sevilla" <sevilla_lui@gva.es>
|
||
14 | */
|
||
15 | public class RasterPropsDialogPanel extends DefaultDialogPanel { |
||
16 | //private BandSetupPanel bandSetupPanel = null;
|
||
17 | |||
18 | public RasterPropsDialogPanel() {
|
||
19 | super();
|
||
20 | initialize(); |
||
21 | } |
||
22 | |||
23 | /**
|
||
24 | * This method initializes this
|
||
25 | *
|
||
26 | * @return void
|
||
27 | */
|
||
28 | 1568 | luisw | private void initialize() { |
29 | 1527 | luisw | this.setBounds(0,0,355,230); |
30 | } |
||
31 | |||
32 | protected BandSetupPanel getBandSetupPanel() {
|
||
33 | return (BandSetupPanel) getContentPanel();
|
||
34 | } |
||
35 | |||
36 | protected JPanel getContentPanel() { |
||
37 | if (contentPane == null) { |
||
38 | contentPane = new BandSetupPanel();
|
||
39 | contentPane.setBounds(14, 12, 345, 174); |
||
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 | } |