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 / style / IMarkerFillPropertiesStyle.java @ 40560
History | View | Annotate | Download (3.95 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.style; |
25 |
|
26 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
27 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
28 |
/**
|
29 |
* IMarkerFillPropertiesStyle is an interface used by classes that are trying to fill a
|
30 |
* polygon using marker symbols for that. In order to permit a big mount of possibilities for
|
31 |
* the filling, this interface has the options to modify the rotation of the markers that
|
32 |
* compose the padding, the x and y offset, the x and y separation,and the style of the fill.
|
33 |
*
|
34 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
35 |
*/
|
36 |
public interface IMarkerFillPropertiesStyle extends IStyle { |
37 |
public static final int RANDOM_FILL = 3; |
38 |
public static final int GRID_FILL = 1; |
39 |
public static final int SINGLE_CENTERED_SYMBOL = 2; |
40 |
|
41 |
/**
|
42 |
* <p>
|
43 |
* Defines an utility symbol to show up a thumbnail
|
44 |
* by default, this symbol is a SimpleMarkerSymbol.
|
45 |
* Thus, the drawInsideRectangle will always work. But
|
46 |
* it can be changed with setSampleSymbol(IMakerSymbol).<br>
|
47 |
* </p>
|
48 |
* <p>
|
49 |
* If <b>marker</b> is null, it does nothing
|
50 |
* </p>
|
51 |
*/
|
52 |
public void setSampleSymbol(IMarkerSymbol marker) ; |
53 |
|
54 |
/**
|
55 |
* Obtains the rotation of the marker symbol that compose the padding.
|
56 |
* @return the rotation of a marker
|
57 |
*/
|
58 |
public double getRotation(); |
59 |
/**
|
60 |
* Sets the rotation of the marker symbol that compose the padding.
|
61 |
* @param rotation
|
62 |
*/
|
63 |
public void setRotation(double rotation) ; |
64 |
/**
|
65 |
* Returns the x offset of the markers that compose the padding
|
66 |
* @return xoffset of the marker
|
67 |
*/
|
68 |
public double getXOffset(); |
69 |
/**
|
70 |
* Establishes de x offset of the markers that compose the padding
|
71 |
* @param offset
|
72 |
*/
|
73 |
public void setXOffset(double offset) ; |
74 |
/**
|
75 |
* Return the separation (x axis) between the markers that compose the padding
|
76 |
* @return x separation
|
77 |
*/
|
78 |
public double getXSeparation() ; |
79 |
/**
|
80 |
* Sets the separation (x axis) between the markers that compose the padding
|
81 |
* @param separation
|
82 |
*/
|
83 |
public void setXSeparation(double separation); |
84 |
|
85 |
/**
|
86 |
* Returns the y offset of the markers that compose the padding
|
87 |
* @return yoffset of the marker
|
88 |
*/
|
89 |
public double getYOffset(); |
90 |
/**
|
91 |
* Establishes the y offset of the markers that compose the padding
|
92 |
* @param offset
|
93 |
*/
|
94 |
public void setYOffset(double offset) ; |
95 |
/**
|
96 |
* Return the separation (y axis) between the markers that compose the padding
|
97 |
* @return y separation
|
98 |
*/
|
99 |
public double getYSeparation() ; |
100 |
/**
|
101 |
* Sets the separation (y axis) between the markers that compose the padding
|
102 |
* @param separation
|
103 |
*/
|
104 |
public void setYSeparation(double separation); |
105 |
/**
|
106 |
* Sets the style for the fill that use marker symbols to do it(the filled).
|
107 |
* @param fillStyle
|
108 |
*/
|
109 |
public void setFillStyle(int fillStyle); |
110 |
/**
|
111 |
* Returns the style of the fill that use marker symbols to do it(the filled).
|
112 |
* @return int, fill style
|
113 |
*/
|
114 |
public int getFillStyle(); |
115 |
} |