svn-gvsig-desktop / tags / J2ME_compat_v1_2_Build_1209 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / styles / IMarkerFillPropertiesStyle.java @ 19509
History | View | Annotate | Download (2.88 KB)
1 |
package com.iver.cit.gvsig.fmap.core.styles; |
---|---|
2 |
|
3 |
import com.iver.cit.gvsig.fmap.core.symbols.IMarkerSymbol; |
4 |
/**
|
5 |
* IMarkerFillPropertiesStyle is an interface used by classes that are trying to fill a
|
6 |
* polygon using marker symbols for that. In order to permit a big mount of possibilities for
|
7 |
* the filling, this interface has the options to modify the rotation of the markers that
|
8 |
* compose the padding, the x and y offset, the x and y separation,and the style of the fill.
|
9 |
*
|
10 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
11 |
*/
|
12 |
public interface IMarkerFillPropertiesStyle extends IStyle { |
13 |
public static final int RANDOM_FILL = 3; |
14 |
public static final int GRID_FILL = 1; |
15 |
public static final int SINGLE_CENTERED_SYMBOL = 2; |
16 |
|
17 |
/**
|
18 |
* <p>
|
19 |
* Defines an utility symbol to show up a thumbnail
|
20 |
* by default, this symbol is a SimpleMarkerSymbol.
|
21 |
* Thus, the drawInsideRectangle will always work. But
|
22 |
* it can be changed with setSampleSymbol(IMakerSymbol).<br>
|
23 |
* </p>
|
24 |
* <p>
|
25 |
* If <b>marker</b> is null, it does nothing
|
26 |
* </p>
|
27 |
*/
|
28 |
public void setSampleSymbol(IMarkerSymbol marker) ; |
29 |
|
30 |
/**
|
31 |
* Obtains the rotation of the marker symbol that compose the padding.
|
32 |
* @return the rotation of a marker
|
33 |
*/
|
34 |
public double getRotation(); |
35 |
/**
|
36 |
* Sets the rotation of the marker symbol that compose the padding.
|
37 |
* @param rotation
|
38 |
*/
|
39 |
public void setRotation(double rotation) ; |
40 |
/**
|
41 |
* Returns the x offset of the markers that compose the padding
|
42 |
* @return xoffset of the marker
|
43 |
*/
|
44 |
public double getXOffset(); |
45 |
/**
|
46 |
* Establishes de x offset of the markers that compose the padding
|
47 |
* @param offset
|
48 |
*/
|
49 |
public void setXOffset(double offset) ; |
50 |
/**
|
51 |
* Return the separation (x axis) between the markers that compose the padding
|
52 |
* @return x separation
|
53 |
*/
|
54 |
public double getXSeparation() ; |
55 |
/**
|
56 |
* Sets the separation (x axis) between the markers that compose the padding
|
57 |
* @param separation
|
58 |
*/
|
59 |
public void setXSeparation(double separation); |
60 |
|
61 |
/**
|
62 |
* Returns the y offset of the markers that compose the padding
|
63 |
* @return yoffset of the marker
|
64 |
*/
|
65 |
public double getYOffset(); |
66 |
/**
|
67 |
* Establishes the y offset of the markers that compose the padding
|
68 |
* @param offset
|
69 |
*/
|
70 |
public void setYOffset(double offset) ; |
71 |
/**
|
72 |
* Return the separation (y axis) between the markers that compose the padding
|
73 |
* @return y separation
|
74 |
*/
|
75 |
public double getYSeparation() ; |
76 |
/**
|
77 |
* Sets the separation (y axis) between the markers that compose the padding
|
78 |
* @param separation
|
79 |
*/
|
80 |
public void setYSeparation(double separation); |
81 |
/**
|
82 |
* Sets the style for the fill that use marker symbols to do it(the filled).
|
83 |
* @param fillStyle
|
84 |
*/
|
85 |
public void setFillStyle(int fillStyle); |
86 |
/**
|
87 |
* Returns the style of the fill that use marker symbols to do it(the filled).
|
88 |
* @return int, fill style
|
89 |
*/
|
90 |
public int getFillStyle(); |
91 |
} |