Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / symbols / IMultiLayerSymbol.java @ 13100

History | View | Annotate | Download (3.39 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: IMultiLayerSymbol.java 13100 2007-08-16 06:55:30Z jvidal $
45
 * $Log$
46
 * Revision 1.5  2007-08-16 06:55:19  jvidal
47
 * javadoc updated
48
 *
49
 * Revision 1.4  2007/08/09 08:04:36  jvidal
50
 * javadoc
51
 *
52
 * Revision 1.3  2007/08/09 07:57:42  jvidal
53
 * javadoc
54
 *
55
 * Revision 1.2  2007/03/09 11:20:56  jaume
56
 * Advanced symbology (start committing)
57
 *
58
 * Revision 1.1.2.1  2007/02/16 10:54:12  jaume
59
 * multilayer splitted to multilayerline, multilayermarker,and  multilayerfill
60
 *
61
 *
62
 */
63
package com.iver.cit.gvsig.fmap.core.symbols;
64

    
65
/**
66
 * Allows to create multi layer symbols using the composition of
67
 * several symbols of the same type.Depending on the type of the symbols that are
68
 * used to compose the final symbol, the user will have MultiLayerMarkerSymbol,
69
 * MultiLayerLineSymbol,...
70
 *
71
 */
72

    
73
public interface IMultiLayerSymbol extends ISymbol {
74

    
75
        /**
76
         * Establishes a concret symbol for a layer
77
         *
78
         * @param index, index of the layer
79
         * @param layer, symbol to be "applied" to the layer
80
         * @throws IndexOutOfBoundsException
81
         */
82
        public abstract void setLayer(int index, ISymbol layer)
83
        throws IndexOutOfBoundsException;
84
        /**
85
         * Changes the position of two layers in a multilayersymbol
86
         * @param index1, index of the layer
87
         * @param index2, index of the layer
88
         */
89
        public abstract void swapLayers(int index1, int index2);
90
        /**
91
         * Obtains  the symbol that "contains" a layer whose index is the argument of the method.
92
         * @param layerIndex
93
         * @return
94
         */
95
        public abstract ISymbol getLayer(int layerIndex);
96
        /**
97
         * Returns the number of layers
98
         * @return int
99
         */
100
        public abstract int getLayerCount();
101

    
102
        /**
103
         * Stacks a new symbol to the symbol list. The symbol is appended to the
104
         * list and, in terms of use, it will be the last symbol to be processed.
105
         * @param ISymbol newLayer
106
         */
107
        public abstract void addLayer(ISymbol newLayer);
108
        /**
109
         * Stacks a new symbol to the symbol list. The symbol is appended to the
110
         * list in the specified position.
111
         * @param ISymbol newLayer
112
         */
113
        public abstract void addLayer(ISymbol newLayer, int layerIndex)
114
        throws IndexOutOfBoundsException;
115

    
116
        /**
117
         * TODO maybe push it up to ISymbol
118
         * @param layer
119
         * @return true if this symbol contains the removed one
120
         */
121
        public abstract boolean removeLayer(ISymbol layer);
122

    
123
}