root / branches / v2_0_0_prep / libFMap_mapcontext / src / org / gvsig / fmap / mapcontext / rendering / symbols / IMultiLayerSymbol.java @ 21200
History | View | Annotate | Download (3.57 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 20989 2008-05-28 11:05:57Z jmvivo $
|
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 org.gvsig.fmap.mapcontext.rendering.symbols; |
64 |
|
65 |
|
66 |
/**
|
67 |
* Allows to create multi layer symbols using the composition of
|
68 |
* several symbols of the same type.Depending on the type of the symbols that are
|
69 |
* used to compose the final symbol, the user will have MultiLayerMarkerSymbol,
|
70 |
* MultiLayerLineSymbol,...
|
71 |
*
|
72 |
*/
|
73 |
|
74 |
public interface IMultiLayerSymbol extends ISymbol { |
75 |
|
76 |
/**
|
77 |
* Establishes a concret symbol for a layer
|
78 |
*
|
79 |
* @param index, index of the layer
|
80 |
* @param layer, symbol to be "applied" to the layer
|
81 |
* @throws IndexOutOfBoundsException
|
82 |
*/
|
83 |
public abstract void setLayer(int index, ISymbol layer) |
84 |
throws IndexOutOfBoundsException; |
85 |
/**
|
86 |
* Changes the position of two layers in a multilayersymbol
|
87 |
* @param index1, index of the layer
|
88 |
* @param index2, index of the layer
|
89 |
*/
|
90 |
public abstract void swapLayers(int index1, int index2); |
91 |
/**
|
92 |
* Obtains the symbol that "contains" a layer whose index is the argument of the method.
|
93 |
* @param layerIndex
|
94 |
* @return
|
95 |
*/
|
96 |
public abstract ISymbol getLayer(int layerIndex); |
97 |
/**
|
98 |
* Returns the number of layers
|
99 |
* @return int
|
100 |
*/
|
101 |
public abstract int getLayerCount(); |
102 |
|
103 |
/**
|
104 |
* Stacks a new symbol to the symbol list. The symbol is appended to the
|
105 |
* list and, in terms of use, it will be the last symbol to be processed.
|
106 |
* @param ISymbol newLayer
|
107 |
*/
|
108 |
public abstract void addLayer(ISymbol newLayer); |
109 |
/**
|
110 |
* Stacks a new symbol to the symbol list. The symbol is appended to the
|
111 |
* list in the specified position.
|
112 |
* @param ISymbol newLayer
|
113 |
*/
|
114 |
public abstract void addLayer(ISymbol newLayer, int layerIndex) |
115 |
throws IndexOutOfBoundsException; |
116 |
|
117 |
/**
|
118 |
* TODO maybe push it up to ISymbol
|
119 |
* @param layer
|
120 |
* @return true if this symbol contains the removed one
|
121 |
*/
|
122 |
public abstract boolean removeLayer(ISymbol layer); |
123 |
|
124 |
} |