Statistics
| Revision:

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 / style / IMarkerFillPropertiesStyle.java @ 34294

History | View | Annotate | Download (2.99 KB)

1
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style;
2

    
3
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle;
4
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol;
5
/**
6
 * IMarkerFillPropertiesStyle is an interface used by classes that are trying to fill a
7
 * polygon using marker symbols for that. In order to permit a big mount of possibilities for
8
 * the filling, this interface has the options to modify the rotation of the markers that
9
 * compose the padding, the x and y offset, the x and y separation,and the style of the fill.
10
 *
11
 * @author jaume dominguez faus - jaume.dominguez@iver.es
12
 */
13
public interface IMarkerFillPropertiesStyle extends IStyle {
14
        public static final int RANDOM_FILL = 3;
15
        public static final int GRID_FILL = 1;
16
        public static final int SINGLE_CENTERED_SYMBOL = 2;
17

    
18
        /**
19
         * <p>
20
         * Defines an utility symbol to show up a thumbnail
21
         * by default, this symbol is a SimpleMarkerSymbol.
22
         * Thus, the drawInsideRectangle will always work. But
23
         * it can be changed with setSampleSymbol(IMakerSymbol).<br>
24
         * </p>
25
         * <p>
26
         * If <b>marker</b> is null, it does nothing
27
         * </p>
28
         */
29
        public void setSampleSymbol(IMarkerSymbol marker) ;
30

    
31
        /**
32
         * Obtains the rotation of the marker symbol that compose the padding.
33
         * @return the rotation of a marker
34
         */
35
        public double getRotation();
36
        /**
37
         * Sets the rotation of the marker symbol that compose the padding.
38
         * @param rotation
39
         */
40
        public void setRotation(double rotation) ;
41
        /**
42
         * Returns the x offset of the markers that compose the padding
43
         * @return xoffset of the marker
44
         */
45
        public double getXOffset();
46
        /**
47
         * Establishes de x offset of the markers that compose the padding
48
         * @param offset
49
         */
50
        public void setXOffset(double offset) ;
51
        /**
52
         * Return the separation (x axis) between the markers that compose the padding
53
         * @return x separation
54
         */
55
        public double getXSeparation() ;
56
        /**
57
         * Sets the separation (x axis) between the markers that compose the padding
58
         * @param separation
59
         */
60
        public void setXSeparation(double separation);
61

    
62
        /**
63
         * Returns the y offset of the markers that compose the padding
64
         * @return yoffset of the marker
65
         */
66
        public double getYOffset();
67
        /**
68
         * Establishes the y offset of the markers that compose the padding
69
         * @param offset
70
         */
71
        public void setYOffset(double offset) ;
72
        /**
73
         * Return the separation (y axis) between the markers that compose the padding
74
         * @return y separation
75
         */
76
        public double getYSeparation() ;
77
        /**
78
         * Sets the separation (y axis) between the markers that compose the padding
79
         * @param separation
80
         */
81
        public void setYSeparation(double separation);
82
        /**
83
         * Sets the style for the fill that use marker symbols to do it(the filled).
84
         * @param fillStyle
85
         */
86
        public void setFillStyle(int fillStyle);
87
        /**
88
         * Returns the style of the fill that use marker symbols to do it(the filled).
89
         * @return int, fill style
90
         */
91
        public int getFillStyle();
92
}