Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / trunk / org.gvsig.raster.wmts / org.gvsig.raster.wmts.swing / org.gvsig.raster.wmts.swing.api / src / main / java / org / gvsig / raster / wmts / swing / WmtsGUI.java @ 2609

History | View | Annotate | Download (2 KB)

1
package org.gvsig.raster.wmts.swing;
2

    
3
import java.awt.event.MouseAdapter;
4
import java.util.HashMap;
5

    
6
import javax.swing.JPanel;
7

    
8
import org.gvsig.fmap.dal.coverage.store.parameter.RasterDataParameters;
9
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
10
import org.gvsig.raster.wmts.io.WMTSServerExplorer;
11

    
12
public abstract class WmtsGUI extends JPanel {
13
        private static final long serialVersionUID = 1L;
14
        
15
        /**
16
         * Gets the list of <code>RasterDataParameters</code> once the 
17
         * dialog has been loaded
18
         * @return
19
         * @throws LoadLayerException
20
         */
21
        public abstract RasterDataParameters[] getDataParameters() throws LoadLayerException;
22

    
23
        /**
24
         * Returns the index of the current tab.
25
         * @return
26
         */
27
        public abstract int currentPage();
28
        
29
        /**
30
         * Returns the tab amount that the WMTSParamsPanel currently have
31
         * @return int
32
         */
33
        public abstract int getNumTabs();
34
        
35
        /**
36
         * Sets the focus to the tab previous to the current one.
37
         */
38
        public abstract void setPreviousTab();
39
        
40
        /**
41
         * Sets the focus to the tab next to the current one.
42
         */
43
        public abstract void setNextTab();
44
        
45
        /**
46
         * <p>
47
         * Returns the previous of the previous enabled tab.
48
         * </p>
49
         * @return The index, or -1 if there is no one.
50
         */
51
        public abstract int nextEnabledPage();
52
        
53
        /**
54
         * This method checks for the options selected within the configuration
55
         * dialog are correct and enough to perform a GetMap request.
56
         *
57
         * @return true if you're done, false if not.
58
         */
59
        public abstract boolean isCorrectlyConfigured();
60
        
61
        public abstract void setDeleteCache(boolean deleteCache);
62
        
63
        /**
64
         * Sets the explorer
65
         * @param data
66
         */
67
        public abstract void setWizardData(WMTSServerExplorer data);
68
        
69
        public abstract boolean getDeleteCache();
70
        
71
        public abstract void addChangeTabListener(MouseAdapter eventMouse);
72
        
73
        /**
74
         * Listener to report when the wizard is completely configured
75
         * @param support
76
         */
77
        public abstract void setListenerSupport(WMTSWizardListener support);
78
        
79
        public abstract void updateSelectedInfo(HashMap<String, Object> info);
80

    
81
}