Revision 35116 branches/dal_time_support/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/operations/LayerCollection.java
LayerCollection.java | ||
---|---|---|
54 | 54 |
* <p>Interface with methods for a collection of layers.</p> |
55 | 55 |
*/ |
56 | 56 |
public interface LayerCollection extends LayersVisitable { |
57 |
|
|
57 | 58 |
/** |
59 |
* Value used to specify the insertion at the beginning. |
|
60 |
*/ |
|
61 |
public final static int BEGIN = 0; |
|
62 |
/** |
|
63 |
* Value used to specify the insertion at the end. |
|
64 |
*/ |
|
65 |
public final static int END = 1; |
|
66 |
/** |
|
67 |
* Value used to specify the insertion before an element. |
|
68 |
*/ |
|
69 |
public final static int BEFORE = 2; |
|
70 |
/** |
|
71 |
* Value used to specify the insertion after an element. |
|
72 |
*/ |
|
73 |
public final static int AFTER = 3; |
|
74 |
|
|
75 |
/** |
|
58 | 76 |
* <p>Adds a listener of events produced on a collection of layers.</p> |
59 | 77 |
* |
60 | 78 |
* @param listener a <code>LayerCollectionListener</code> |
... | ... | |
87 | 105 |
public void addLayer(FLayer layer) throws CancelationException, LoadLayerException; |
88 | 106 |
|
89 | 107 |
/** |
108 |
* <p>Adds a new layer to this collection before or after an element if supplied, |
|
109 |
* and if not at the beginning or end of the collection.</p>.</p> |
|
110 |
* |
|
111 |
* @param layer a FLayer to move |
|
112 |
* @param group a LayerCollection in which the layer has to be moved |
|
113 |
* @param where the position parameter. The valid values are:<br> |
|
114 |
* 0 = BEGIN (first position)<br> |
|
115 |
* 1 = END (last position)<br> |
|
116 |
* 2 = BEFORE (before target layer)<br> |
|
117 |
* 3 = AFTER (after target layer)<br> |
|
118 |
* |
|
119 |
* @param adjoiningLayer a FLayer a layer adjacent to where to insert the layer. |
|
120 |
* |
|
121 |
* @throws CancelationException any exception produced during the cancellation of the driver. |
|
122 |
* @throws LoadLayerException any exception produced loading the layer. |
|
123 |
* |
|
124 |
* @see #moveTo(FLayer, LayerCollection, int, FLayer) |
|
125 |
*/ |
|
126 |
public void addLayer(FLayer layer, int where, FLayer adjoiningLayer) throws LayerNotFoundInCollectionException ; |
|
127 |
|
|
128 |
/** |
|
90 | 129 |
* <p>Moves a layer of the collection to another position in internal list. It doesn't consider sub-nodes of layers.</p> |
91 | 130 |
* |
92 | 131 |
* @param from origin position |
... | ... | |
203 | 242 |
|
204 | 243 |
|
205 | 244 |
public void beginDraw(Graphics2D g, ViewPort viewPort); |
206 |
public void endDraw(Graphics2D g, ViewPort viewPort); |
|
245 |
public void endDraw(Graphics2D g, ViewPort viewPort); |
|
246 |
|
|
247 |
/** |
|
248 |
* <p>Moves a layer from this collection to another collection |
|
249 |
* before or after an element if supplied, |
|
250 |
* and if not at the beginning or end of the collection.</p> |
|
251 |
* |
|
252 |
* @param layer a FLayer to move |
|
253 |
* @param group a LayerCollection in which the layer has to be moved |
|
254 |
* @param where the position parameter. The valid values are:<br> |
|
255 |
* 0 = BEGIN (first position)<br> |
|
256 |
* 1 = END (last position)<br> |
|
257 |
* 2 = BEFORE (before target layer)<br> |
|
258 |
* 3 = AFTER (after target layer)<br> |
|
259 |
* |
|
260 |
* @param adjoiningLayer a FLayer a layer adjacent to where to insert the layer. |
|
261 |
* @throws LayerNotFoundInCollectionException |
|
262 |
* |
|
263 |
* @see #addLayer(FLayer, int, FLayer) |
|
264 |
*/ |
|
265 |
public void move(FLayer layer, LayerCollection group, int where, FLayer adjoiningLayer) throws LayerNotFoundInCollectionException; |
|
266 |
|
|
267 |
/** |
|
268 |
* <p>Moves a layer from this collection to the end of another collection.</p> |
|
269 |
* |
|
270 |
* @param layer a FLayer to move |
|
271 |
* @param group a LayerCollection in which the layer has to be moved |
|
272 |
* @throws LayerNotFoundInCollectionException |
|
273 |
* |
|
274 |
*/ |
|
275 |
public void move(FLayer layer, LayerCollection group); |
|
207 | 276 |
|
277 |
|
|
208 | 278 |
} |
Also available in: Unified diff