svn-gvsig-desktop / tags / v1_0_2_Build_908 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / layerOperations / ComposedLayer.java @ 11054
History | View | Annotate | Download (1.17 KB)
1 | 10932 | jmvivo | package com.iver.cit.gvsig.fmap.layers.layerOperations; |
---|---|---|---|
2 | |||
3 | import java.awt.Graphics2D; |
||
4 | import java.awt.image.BufferedImage; |
||
5 | |||
6 | 11030 | jmvivo | import com.iver.cit.gvsig.fmap.DriverException; |
7 | 10932 | jmvivo | import com.iver.cit.gvsig.fmap.ViewPort; |
8 | import com.iver.cit.gvsig.fmap.layers.FLayer; |
||
9 | import com.iver.utiles.swing.threads.Cancellable; |
||
10 | |||
11 | /**
|
||
12 | * Interface for the classes that make able
|
||
13 | * a single draw for a layers group
|
||
14 | *
|
||
15 | * @see com.iver.cit.gvsig.fmap.layers.FLayer#newComposedLayer()
|
||
16 | */
|
||
17 | public interface ComposedLayer { |
||
18 | |||
19 | /**
|
||
20 | * Checks if the layer can be added to this group
|
||
21 | *
|
||
22 | * @param layer
|
||
23 | * @return layer can be added or not
|
||
24 | */
|
||
25 | public boolean canAdd(FLayer layer); |
||
26 | |||
27 | /**
|
||
28 | * Adds the layer to the draw group
|
||
29 | * @see com.iver.cit.gvsig.fmap.layers.layerOperations.ComposedLayer#canAdd(FLayer)
|
||
30 | *
|
||
31 | * @param layer
|
||
32 | * @throws Exception
|
||
33 | */
|
||
34 | public void add(FLayer layer) throws Exception; |
||
35 | |||
36 | /**
|
||
37 | * Draws all the group in one pass
|
||
38 | *
|
||
39 | *
|
||
40 | * @see com.iver.cit.gvsig.fmap.layers.FLayer#draw(BufferedImage, Graphics2D, ViewPort, Cancellable, double)
|
||
41 | */
|
||
42 | public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
||
43 | 11030 | jmvivo | Cancellable cancel,double scale) throws DriverException; |
44 | 10932 | jmvivo | |
45 | |||
46 | } |