Statistics
| Revision:

root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / project / documents / view / legend / gui / ILabelingStrategyPanel.java @ 29598

History | View | Annotate | Download (3.01 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 org.gvsig.app.project.documents.view.legend.gui;
42

    
43
import org.gvsig.fmap.mapcontext.layers.FLayer;
44
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy;
45

    
46

    
47
/**
48
 * Interface to be implemented for those panels whose purpose is to
49
 * set up labeling strategies.
50
 *
51
 * ILabelingStrategyPanel.java
52
 *
53
 *
54
 * @author jaume dominguez faus - jaume.dominguez@iver.es Jun 13, 2008
55
 *
56
 */
57
public interface ILabelingStrategyPanel {
58
        /**
59
         * Invoked when de user accepts the settings, the returned value
60
         * is a always ready-to-work labeling strategy.
61
         *
62
         * @return ILabelingStrategy, a labeling strategy completely set up.
63
         */
64
        public ILabelingStrategy getLabelingStrategy();
65

    
66
        /**
67
         * Sets the model of the panel. As a general contract, after invoke
68
         * this method, the panel should be filled with all the values
69
         * needed and be able to be repainted successfully.
70
         *
71
         * @param layer, the layer to whom the labeling strategy is associated.
72
         * @param str, the current labeling strategy.
73
         */
74
        public void setModel(FLayer layer, ILabelingStrategy str);
75

    
76
        /**
77
         * A human-readable localized text to make this strategy easily
78
         * recognizable among all the available strategies.
79
         * @return
80
         */
81
        public String getLabelingStrategyName();
82

    
83
        /**
84
         * <p>
85
         * The panel shown in the layer properties dialog is selected through
86
         * the class of the labeling strategy. This method returns such class.
87
         * <br>
88
         * </p>
89
         * <p>
90
         * <b>Note</b> that, as a collateral effect, the panel that sets up a labeling strategy
91
         * can be substituted programatically by other of your wish if
92
         * you return the same labeling strategy class than the one to
93
         * be replaced with your new one. The last panel installed, will
94
         * be the one to be shown.
95
         * </p>
96
         * @return Class, the labeling strategy's Class
97
         */
98
        public Class getLabelingStrategyClass();
99
}