Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_mapcontext / src / org / gvsig / fmap / mapcontext / rendering / legend / styling / ILabelingMethod.java @ 30011

History | View | Annotate | Download (3.63 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

    
42
/* CVS MESSAGES:
43
*
44
* $Id: ILabelingMethod.java 13913 2007-09-20 09:36:02Z jaume $
45
* $Log$
46
* Revision 1.4  2007-09-20 09:33:15  jaume
47
* Refactored: fixed name of IPersistAnce to IPersistence
48
*
49
* Revision 1.3  2007/03/21 11:01:28  jaume
50
* javadoc
51
*
52
* Revision 1.2  2007/03/09 08:33:43  jaume
53
* *** empty log message ***
54
*
55
* Revision 1.1.2.2  2007/02/01 11:42:47  jaume
56
* *** empty log message ***
57
*
58
* Revision 1.1.2.1  2007/01/30 18:10:45  jaume
59
* start commiting labeling stuff
60
*
61
*
62
*/
63
package org.gvsig.fmap.mapcontext.rendering.legend.styling;
64

    
65
import org.gvsig.fmap.dal.exception.DataException;
66
import org.gvsig.fmap.dal.feature.FeatureSet;
67
import org.gvsig.fmap.mapcontext.ViewPort;
68
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
69
import org.gvsig.utils.IPersistence;
70

    
71

    
72
/**
73
 * Interface that defines provides support to a ILabelingStrategy to supply
74
 * the set of <b>LabelClass</b>(es) that handle the label's style, content, etc..
75
 *
76
 * @author jaume dominguez faus - jaume.dominguez@iver.es
77
 */
78
public interface ILabelingMethod extends IPersistence{
79

    
80
        /**
81
         * Returns all the labels defined by this Labeling Method
82
         * @return all the labels in this labeling method;
83
         */
84
        public ILabelClass[] getLabelClasses();
85

    
86
        /**
87
         * Returns the LabelClass contained by this ILabelingMethod whose name matches
88
         * with the string passed in <b>labelName</b>.
89
         * @param labelName
90
         * @return
91
         */
92
        public ILabelClass getLabelClassByName(String labelName);
93

    
94
        /**
95
         * Adds a LabelClass to the set of LabelClass contained by this ILabelingMethod.
96
         * @param lbl
97
         */
98
        public void addLabelClass(ILabelClass lbl);
99

    
100
        /**
101
         * Removes the LabelClass from the set of LabelClasses contained by this
102
         * ILabelingMethod.
103
         * @param lbl, the LabelClass to be removed
104
         */
105
        public void deleteLabelClass(ILabelClass lbl);
106

    
107
        /**
108
         * Returns <b>true</b> if this ILabelingMethod allos the definition of more
109
         * LabelClasses than just the default LabelClass.
110
         * @return boolean
111
         */
112
        public boolean allowsMultipleClass();
113

    
114
        /**
115
         * Changes the mane of a given LabelClass
116
         * @param lbl, the LabelClass
117
         * @param newName, the new name
118
         */
119
        public void renameLabelClass(ILabelClass lbl, String newName);
120

    
121
        public FeatureSet getFeatureIteratorByLabelClass(FLyrVect layer, ILabelClass lc, ViewPort viewPort, String[] usedFields)
122
        throws DataException;
123

    
124
        public boolean definesPriorities();
125

    
126
        public void setDefinesPriorities(boolean flag);
127

    
128
        public void clearAllClasses();
129

    
130
        public ILabelingMethod cloneMethod();
131
}