gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.swing / org.gvsig.raster.swing.api / src / main / java / org / gvsig / raster / swing / preview / PreviewPanel.java @ 1317
History | View | Annotate | Download (2.56 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.raster.swing.preview; |
23 |
|
24 |
import java.awt.Dimension; |
25 |
|
26 |
import javax.swing.JTabbedPane; |
27 |
|
28 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanel; |
29 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
30 |
import org.gvsig.gui.beans.imagenavigator.ImageNavigator; |
31 |
|
32 |
/**
|
33 |
* Base interface for panels with preview
|
34 |
*
|
35 |
* @author Nacho Brodin nachobrodin@gmail.com
|
36 |
*/
|
37 |
public interface PreviewPanel { |
38 |
|
39 |
/**
|
40 |
* Gets the data source of the preview
|
41 |
* @return
|
42 |
*/
|
43 |
public DataSourcePreview getDataSourcePreview();
|
44 |
|
45 |
/**
|
46 |
* Obtiene el componente con los tabs donde se a?aden las pesta?as del usuario.
|
47 |
* @return JTabbedPane
|
48 |
*/
|
49 |
public JTabbedPane getTabbedPane(); |
50 |
|
51 |
/**
|
52 |
* Obtener el objeto <code>ButtonsPanel</code> del <code>DialogPanel</code>.
|
53 |
* En caso de no estar creado, lo crear?.
|
54 |
*
|
55 |
* @return El componente bp
|
56 |
*/
|
57 |
public ButtonsPanel getButtonsPanel();
|
58 |
|
59 |
/**
|
60 |
* Devuelve el componente para la vista previa
|
61 |
* @return
|
62 |
*/
|
63 |
public ImageNavigator getImageNavigator();
|
64 |
|
65 |
/**
|
66 |
* Preview refresh
|
67 |
*/
|
68 |
public void refreshPreview(); |
69 |
|
70 |
public void addButtonPressedListener(ButtonsPanelListener listener); |
71 |
|
72 |
/**
|
73 |
* Sets the size of the preview
|
74 |
* @param dimension
|
75 |
*/
|
76 |
public void setPreviewSize(Dimension dimension); |
77 |
|
78 |
/**
|
79 |
* Sets the data source for the preview.
|
80 |
*
|
81 |
* @param layer
|
82 |
*/
|
83 |
public void setLayer(DataSourcePreview fLayer); |
84 |
|
85 |
/**
|
86 |
* Initializes the preview size and coordinates. This function should
|
87 |
* be called after the window has been opened because this call
|
88 |
* assigns the size of the preview panel.
|
89 |
*
|
90 |
* @param layer
|
91 |
*/
|
92 |
public void previewInitializeSizes(); |
93 |
|
94 |
/**
|
95 |
* Cierra la capa abierta para previsualizaci?n
|
96 |
*/
|
97 |
public void closePreviewLayer(); |
98 |
} |