Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / rendering / legend / styling / IZoomConstraints.java @ 40559

History | View | Annotate | Download (2.97 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
/* CVS MESSAGES:
25
 *
26
 * $Id: IZoomConstraints.java 10815 2007-03-20 16:16:20Z jaume $
27
 * $Log$
28
 * Revision 1.3  2007-03-20 16:16:20  jaume
29
 * refactored to use ISymbol instead of FSymbol
30
 *
31
 * Revision 1.2  2007/03/09 08:33:43  jaume
32
 * *** empty log message ***
33
 *
34
 * Revision 1.1.2.2  2007/02/15 16:23:44  jaume
35
 * *** empty log message ***
36
 *
37
 * Revision 1.1.2.1  2007/02/09 07:47:05  jaume
38
 * Isymbol moved
39
 *
40
 *
41
 */
42

    
43
package org.gvsig.fmap.mapcontext.rendering.legend.styling;
44

    
45
import org.gvsig.tools.persistence.Persistent;
46

    
47

    
48
/**
49
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
50
 */
51
public interface IZoomConstraints extends Persistent {
52
        /**
53
         * Uses the same constraints than the layer. Which is the same than no constraints.
54
         */
55
        public static final int DEFINED_BY_THE_LAYER = 0;
56

    
57
        /**
58
         * The user defines when the labes will be drawn.
59
         * Notice that if the layer is not drawn it does not take effect.
60
         */
61
        public static final int DEFINED_BY_THE_USER = 1;
62

    
63
        /**
64
         * Sets the mode of the zoom constraints.
65
         * @param mode, int one of DEFINED_BY_THE_LAYER or DEFINED_BY_THE_USER.
66
         */
67
        public abstract void setMode(int mode);
68

    
69
        /**
70
         * Returns the max scale limit of the constraints.
71
         * @return   float, max limit
72
         * @uml.property  name="maxScale"
73
         */
74
        public abstract long getMaxScale();
75

    
76
        /**
77
         * Sets the max scale limit of the constraints
78
         * @param   maxScale, float
79
         * @uml.property  name="maxScale"
80
         */
81
        public abstract void setMaxScale(long maxScale);
82

    
83
        /**
84
         * Returns the min scale limit of the constraints.
85
         * @return   float, min limit
86
         * @uml.property  name="minScale"
87
         */
88
        public abstract long getMinScale();
89

    
90
        /**
91
         * Sets the min scale limit of the constraints
92
         * @param   minScale, float
93
         * @uml.property  name="minScale"
94
         */
95
        public abstract void setMinScale(long minScale);
96

    
97
        /**
98
         * Returns <b>true</b> if the mode is DEFINED_BY_THE_USER.
99
         * @return
100
         */
101
        public abstract boolean isUserDefined();
102

    
103
        /**
104
         * Returns <b>true</b> if the mode is DEFINED_BY_THE_USER.
105
         * @return
106
         */
107
        public abstract boolean isLayerDefined();
108

    
109
}