Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / 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 @ 40560

History | View | Annotate | Download (3.39 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill;
25

    
26
import java.io.IOException;
27
import java.net.URL;
28

    
29
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle;
30

    
31
public interface IPictureFillSymbol extends IFillSymbol{
32

    
33
        /**
34
         * Sets the URL for the image to be used as a picture fill symbol (when it is selected in the map)
35
         * @param imageFile, File
36
         * @throws IOException
37
         */
38
        public abstract void setSelImage(URL selImageUrl) throws IOException;
39

    
40
        /**
41
         * Defines the URL from where the picture to fill the polygon is taken.
42
         * @param imageFile
43
         * @throws IOException
44
         */
45
        public abstract void setImage(URL imageUrl) throws IOException;
46

    
47
        /**
48
         * Returns the IMarkerFillProperties that allows this class to treat the picture as
49
         * a marker in order to scale it, rotate it and so on.
50
         * @return markerFillProperties,IMarkerFillPropertiesStyle
51
         */
52
        public abstract IMarkerFillPropertiesStyle getMarkerFillProperties();
53

    
54
        /**
55
         * Sets the MarkerFillProperties in order to allow the user to modify the picture as
56
         * a marker (it is possible to scale it, rotate it and so on)
57
         * @param prop
58
         */
59
        public abstract void setMarkerFillProperties(IMarkerFillPropertiesStyle prop);
60

    
61
        /**
62
         * Defines the angle for the rotation of the image when it is added to create the
63
         * padding
64
         *
65
         * @return angle
66
         */
67
        public abstract double getAngle();
68

    
69
        /**
70
         * Sets the angle for the rotation of the image when it is added to create the padding
71
         * @param angle
72
         */
73
        public abstract void setAngle(double angle);
74

    
75
        /**
76
         * Defines the scale for the x axis of the image when it is added to create the
77
         * padding
78
         * @return xScale
79
         */
80
        public abstract double getXScale();
81

    
82
        /**
83
         * Returns the scale for the x axis of the image when it is added to create the
84
         * padding
85
         * @param xScale
86
         */
87
        public abstract void setXScale(double xScale);
88

    
89
        /**
90
         * Defines the scale for the y axis of the image when it is added to create the
91
         * padding
92
         * @return yScale
93
         */
94
        public abstract double getYScale();
95

    
96
        /**
97
         * Returns the scale for the y axis of the image when it is added to create the
98
         * padding
99
         * @param yScale
100
         */
101
        public abstract void setYScale(double yScale);
102

    
103
        /**
104
         * Returns the URL of the image that is used to create the padding to fill the
105
         * polygon
106
         * @return imagePath
107
         */
108
        public abstract URL getSource();
109

    
110
        /**
111
         * Returns the URL of the image used when the polygon is selected
112
         * @return
113
         */
114
        public abstract URL getSelectedSource();
115

    
116
}