Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / styling / labeling / IZoomConstraints.java @ 18622

History | View | Annotate | Download (3.22 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: IZoomConstraints.java 10815 2007-03-20 16:16:20Z jaume $
45
 * $Log$
46
 * Revision 1.3  2007-03-20 16:16:20  jaume
47
 * refactored to use ISymbol instead of FSymbol
48
 *
49
 * Revision 1.2  2007/03/09 08:33:43  jaume
50
 * *** empty log message ***
51
 *
52
 * Revision 1.1.2.2  2007/02/15 16:23:44  jaume
53
 * *** empty log message ***
54
 *
55
 * Revision 1.1.2.1  2007/02/09 07:47:05  jaume
56
 * Isymbol moved
57
 *
58
 *
59
 */
60

    
61
package com.iver.cit.gvsig.fmap.rendering.styling.labeling;
62

    
63
import com.iver.utiles.IPersistence;
64

    
65
/**
66
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
67
 */
68
public interface IZoomConstraints extends IPersistence{
69
        /**
70
         * Uses the same constraints than the layer. Which is the same than no constraints.
71
         */
72
        public static final int DEFINED_BY_THE_LAYER = 0;
73

    
74
        /**
75
         * The user defines when the labes will be drawn.
76
         * Notice that if the layer is not drawn it does not take effect.
77
         */
78
        public static final int DEFINED_BY_THE_USER = 1;
79

    
80
        /**
81
         * Sets the mode of the zoom constraints.
82
         * @param mode, int one of DEFINED_BY_THE_LAYER or DEFINED_BY_THE_USER.
83
         */
84
        public abstract void setMode(int mode);
85

    
86
        /**
87
         * Returns the max scale limit of the constraints.
88
         * @return   float, max limit
89
         * @uml.property  name="maxScale"
90
         */
91
        public abstract float getMaxScale();
92

    
93
        /**
94
         * Sets the max scale limit of the constraints
95
         * @param   maxScale, float
96
         * @uml.property  name="maxScale"
97
         */
98
        public abstract void setMaxScale(float maxScale);
99

    
100
        /**
101
         * Returns the min scale limit of the constraints.
102
         * @return   float, min limit
103
         * @uml.property  name="minScale"
104
         */
105
        public abstract float getMinScale();
106

    
107
        /**
108
         * Sets the min scale limit of the constraints
109
         * @param   minScale, float
110
         * @uml.property  name="minScale"
111
         */
112
        public abstract void setMinScale(float minScale);
113

    
114
        /**
115
         * Returns <b>true</b> if the mode is DEFINED_BY_THE_USER.
116
         * @return
117
         */
118
        public abstract boolean isUserDefined();
119

    
120
        /**
121
         * Returns <b>true</b> if the mode is DEFINED_BY_THE_USER.
122
         * @return
123
         */
124
        public abstract boolean isLayerDefined();
125

    
126
}