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 / IVectorialIntervalLegend.java @ 42858

History | View | Annotate | Download (2.72 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.fmap.mapcontext.rendering.legend;
25

    
26
import java.awt.Color;
27
import java.util.Map;
28

    
29
import org.gvsig.fmap.dal.exception.DataException;
30
import org.gvsig.fmap.dal.feature.FeatureStore;
31
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
32

    
33

    
34
/**
35
 * Interface that allows the methods to classify the legend through intervals.
36
 *
37
 */
38
public interface IVectorialIntervalLegend extends IClassifiedVectorLegend {
39
        
40
        public static final String LEGEND_NAME = "VectorialInterval";
41

    
42
    public void setDefaultSymbol(ISymbol s);
43

    
44
    public IInterval getInterval(Object v) ;
45
    public int getIntervalType();
46

    
47
        /**
48
         *
49
         * Returns the symbol starting from an interval
50
         *
51
         * @param key interval.
52
         *
53
         * @return symbol.
54
         */
55
    public ISymbol getSymbolByInterval(IInterval key);
56

    
57

    
58
    /**
59
     * Inserts the type of the classification of the intervals.
60
         *
61
         * @param tipoClasificacion type of the classification.
62
         */
63
    public void setIntervalType(int tipoClasificacion);
64

    
65
    /**
66
         * Inserts the initial color
67
         * @param startColor initial color.
68
         */
69
        public void setStartColor(Color startColor);
70

    
71
    /**
72
         * Inserts the final color.
73
         * @param endColor final color.
74
         */
75
        public void setEndColor(Color endColor);
76

    
77
    /**
78
         * Returns the initial color.
79
         * @return  Color initial color.
80
         */
81
        public Color getStartColor();
82

    
83
    /**
84
         * Returns the final color
85
         * @return Color  final color.
86
         */
87
        public Color getEndColor();
88

    
89
        public IInterval[] calculateIntervals(FeatureStore featureStore,
90
                        String selectedItem, int intervalCount, int shapeType)
91
                        throws DataException;
92

    
93
        public void setIntervals(IInterval[] intervals);
94

    
95
        public Map<IInterval,ISymbol> createSymbols(IInterval[] intervals);
96

    
97
}
98