Statistics
| Revision:

svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / view / legend / gui / ILabelingStrategyPanel.java @ 35756

History | View | Annotate | Download (3.05 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.project.documents.view.legend.gui;
42

    
43
import com.iver.cit.gvsig.fmap.layers.FLayer;
44
import com.iver.cit.gvsig.fmap.rendering.styling.labeling.ILabelingStrategy;
45

    
46
/**
47
 * Interface to be implemented for those panels whose purpose is to
48
 * set up labeling strategies.
49
 * 
50
 * ILabelingStrategyPanel.java
51
 *
52
 * 
53
 * @author jaume dominguez faus - jaume.dominguez@iver.es Jun 13, 2008
54
 *
55
 */
56
public interface ILabelingStrategyPanel {
57
        /**
58
         * Invoked when de user accepts the settings, the returned value
59
         * is a always ready-to-work labeling strategy.
60
         * 
61
         * @return ILabelingStrategy, a labeling strategy completely set up.
62
         */
63
        public ILabelingStrategy getLabelingStrategy();
64
        
65
        /**
66
         * Sets the model of the panel. As a general contract, after invoke
67
         * this method, the panel should be filled with all the values
68
         * needed and be able to be repainted successfully.
69
         * 
70
         * @param layer, the layer to whom the labeling strategy is associated.
71
         * @param str, the current labeling strategy.
72
         */
73
        public void setModel(FLayer layer, ILabelingStrategy str);
74
        
75
        /**
76
         * A human-readable localized text to make this strategy easily
77
         * recognizable among all the available strategies.
78
         * @return
79
         */
80
        public String getLabelingStrategyName();
81
        
82
        /**
83
         * <p>
84
         * The panel shown in the layer properties dialog is selected through
85
         * the class of the labeling strategy. This method returns such class.
86
         * <br>
87
         * </p>
88
         * <p>
89
         * <b>Note</b> that, as a collateral effect, the panel that sets up a labeling strategy
90
         * can be substituted programatically by other of your wish if
91
         * you return the same labeling strategy class than the one to
92
         * be replaced with your new one. The last panel installed, will
93
         * be the one to be shown.
94
         * </p>
95
         * @return Class, the labeling strategy's Class
96
         */
97
        public Class<? extends ILabelingStrategy> getLabelingStrategyClass();
98
}