root / branches / v2_0_0_prep / libraries / org.gvsig.symbology / org.gvsig.symbology.lib / org.gvsig.symbology.lib.api / src / main / java / org / gvsig / symbology / fmap / mapcontext / rendering / symbol / fill / IPictureFillSymbol.java @ 34294
History | View | Annotate | Download (2.46 KB)
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
---|---|
2 |
|
3 |
import java.io.IOException; |
4 |
import java.net.URL; |
5 |
|
6 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle; |
7 |
|
8 |
public interface IPictureFillSymbol extends IFillSymbol{ |
9 |
|
10 |
/**
|
11 |
* Sets the URL for the image to be used as a picture fill symbol (when it is selected in the map)
|
12 |
* @param imageFile, File
|
13 |
* @throws IOException
|
14 |
*/
|
15 |
public abstract void setSelImage(URL selImageUrl) throws IOException; |
16 |
|
17 |
/**
|
18 |
* Defines the URL from where the picture to fill the polygon is taken.
|
19 |
* @param imageFile
|
20 |
* @throws IOException
|
21 |
*/
|
22 |
public abstract void setImage(URL imageUrl) throws IOException; |
23 |
|
24 |
/**
|
25 |
* Returns the IMarkerFillProperties that allows this class to treat the picture as
|
26 |
* a marker in order to scale it, rotate it and so on.
|
27 |
* @return markerFillProperties,IMarkerFillPropertiesStyle
|
28 |
*/
|
29 |
public abstract IMarkerFillPropertiesStyle getMarkerFillProperties(); |
30 |
|
31 |
/**
|
32 |
* Sets the MarkerFillProperties in order to allow the user to modify the picture as
|
33 |
* a marker (it is possible to scale it, rotate it and so on)
|
34 |
* @param prop
|
35 |
*/
|
36 |
public abstract void setMarkerFillProperties(IMarkerFillPropertiesStyle prop); |
37 |
|
38 |
/**
|
39 |
* Defines the angle for the rotation of the image when it is added to create the
|
40 |
* padding
|
41 |
*
|
42 |
* @return angle
|
43 |
*/
|
44 |
public abstract double getAngle(); |
45 |
|
46 |
/**
|
47 |
* Sets the angle for the rotation of the image when it is added to create the padding
|
48 |
* @param angle
|
49 |
*/
|
50 |
public abstract void setAngle(double angle); |
51 |
|
52 |
/**
|
53 |
* Defines the scale for the x axis of the image when it is added to create the
|
54 |
* padding
|
55 |
* @return xScale
|
56 |
*/
|
57 |
public abstract double getXScale(); |
58 |
|
59 |
/**
|
60 |
* Returns the scale for the x axis of the image when it is added to create the
|
61 |
* padding
|
62 |
* @param xScale
|
63 |
*/
|
64 |
public abstract void setXScale(double xScale); |
65 |
|
66 |
/**
|
67 |
* Defines the scale for the y axis of the image when it is added to create the
|
68 |
* padding
|
69 |
* @return yScale
|
70 |
*/
|
71 |
public abstract double getYScale(); |
72 |
|
73 |
/**
|
74 |
* Returns the scale for the y axis of the image when it is added to create the
|
75 |
* padding
|
76 |
* @param yScale
|
77 |
*/
|
78 |
public abstract void setYScale(double yScale); |
79 |
|
80 |
/**
|
81 |
* Returns the URL of the image that is used to create the padding to fill the
|
82 |
* polygon
|
83 |
* @return imagePath
|
84 |
*/
|
85 |
public abstract URL getSource(); |
86 |
|
87 |
/**
|
88 |
* Returns the URL of the image used when the polygon is selected
|
89 |
* @return
|
90 |
*/
|
91 |
public abstract URL getSelectedSource(); |
92 |
|
93 |
} |