Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / project / documents / view / legend / gui / ILabelingStrategyPanel.java @ 40558

History | View | Annotate | Download (2.75 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.app.project.documents.view.legend.gui;
25

    
26
import org.gvsig.fmap.mapcontext.layers.FLayer;
27
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy;
28

    
29

    
30
/**
31
 * Interface to be implemented for those panels whose purpose is to
32
 * set up labeling strategies.
33
 *
34
 * ILabelingStrategyPanel.java
35
 *
36
 *
37
 * @author jaume dominguez faus - jaume.dominguez@iver.es Jun 13, 2008
38
 *
39
 */
40
public interface ILabelingStrategyPanel {
41
        /**
42
         * Invoked when de user accepts the settings, the returned value
43
         * is a always ready-to-work labeling strategy.
44
         *
45
         * @return ILabelingStrategy, a labeling strategy completely set up.
46
         */
47
        public ILabelingStrategy getLabelingStrategy();
48

    
49
        /**
50
         * Sets the model of the panel. As a general contract, after invoke
51
         * this method, the panel should be filled with all the values
52
         * needed and be able to be repainted successfully.
53
         *
54
         * @param layer, the layer to whom the labeling strategy is associated.
55
         * @param str, the current labeling strategy.
56
         */
57
        public void setModel(FLayer layer, ILabelingStrategy str);
58

    
59
        /**
60
         * A human-readable localized text to make this strategy easily
61
         * recognizable among all the available strategies.
62
         * @return
63
         */
64
        public String getLabelingStrategyName();
65

    
66
        /**
67
         * <p>
68
         * The panel shown in the layer properties dialog is selected through
69
         * the class of the labeling strategy. This method returns such class.
70
         * <br>
71
         * </p>
72
         * <p>
73
         * <b>Note</b> that, as a collateral effect, the panel that sets up a labeling strategy
74
         * can be substituted programatically by other of your wish if
75
         * you return the same labeling strategy class than the one to
76
         * be replaced with your new one. The last panel installed, will
77
         * be the one to be shown.
78
         * </p>
79
         * @return Class, the labeling strategy's Class
80
         */
81
        public Class getLabelingStrategyClass();
82
}