Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.app / org.gvsig.raster.app.common / src / main / java / org / gvsig / raster / mainplugin / toolbar / IGenericToolBarMenuItem.java @ 2861

History | View | Annotate | Download (2.4 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.mainplugin.toolbar;
23

    
24
import javax.swing.Icon;
25

    
26
import org.gvsig.app.project.documents.view.toc.ITocItem;
27
import org.gvsig.fmap.mapcontext.layers.FLayer;
28

    
29
/**
30
 * Interfaz que debe implementar quien quiera aparecer en la barra de
31
 * herramientas gen?rica.
32
 * 
33
 * @version 06/02/2008
34
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
35
 */
36
public interface IGenericToolBarMenuItem {
37
        /**
38
         * Devuelve el nombre del grupo al que pertenece el item de menu
39
         * @return
40
         */
41
        public String getGroup();
42
        
43
        /**
44
         * Devuelve el orden en el que aparecer? en el men?
45
         * @return
46
         */
47
        public int getOrder();
48

    
49
        /**
50
         * Devuelve el orden en el que aparecer? en el men?
51
         * @return
52
         */
53
        public int getGroupOrder();
54
        
55
        /**
56
         * Devuelve el texto que se ver? en el men?
57
         * @return
58
         */
59
        public String getText();
60
        
61
        /**
62
         * Devuelve el icono del item del menu
63
         * @return
64
         */
65
        public Icon getIcon();
66

    
67
        /**
68
         * Dice si es visible el item de menu para dicha entrada
69
         * @param item
70
         * @param selectedItems
71
         * @return
72
         */
73
        public boolean isVisible(ITocItem item, FLayer[] selectedItems);
74
        
75
        /**
76
         * Dice si el item actual esta habilitado
77
         * @param item
78
         * @param selectedItems
79
         * @return
80
         */
81
        public boolean isEnabled(ITocItem item, FLayer[] selectedItems);
82
        
83
        /**
84
         * Metodo que sera invocado cuando el item del menu sea presionado
85
         * @param item
86
         * @param selectedItems
87
         */
88
        public void execute(ITocItem item, FLayer[] selectedItems);
89
}