Revision 45526 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/marker/IMarkerSymbol.java
IMarkerSymbol.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import java.awt.Color; |
27 | 27 |
import java.awt.geom.Point2D; |
28 |
|
|
28 |
import org.gvsig.fmap.dal.feature.Feature; |
|
29 | 29 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
30 | 30 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
31 | 31 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask; |
32 | 32 |
|
33 | 33 |
/** |
34 |
* Represents an ISymbol that draws a <b>marker symbol</b>.It has the different methods to obtain or
|
|
35 |
* define the attributes of a marker such as rotation, offset, size, color and
|
|
36 |
* IMask. |
|
34 |
* Represents an ISymbol that draws a <b>marker symbol</b>.It has the different |
|
35 |
* methods to obtain or define the attributes of a marker such as rotation,
|
|
36 |
* offset, size, color and IMask.
|
|
37 | 37 |
* |
38 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
|
38 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
39 | 39 |
*/ |
40 | 40 |
public interface IMarkerSymbol extends ISymbol, CartographicSupport { |
41 | 41 |
|
42 |
public static final String SYMBOL_NAME = "marker";
|
|
42 |
public static final String SYMBOL_NAME = "marker";
|
|
43 | 43 |
|
44 |
public static final int CIRCLE_STYLE = 0;
|
|
45 |
public static final int SQUARE_STYLE = 1;
|
|
46 |
public static final int CROSS_STYLE = 2;
|
|
47 |
public static final int DIAMOND_STYLE = 3;
|
|
48 |
public static final int X_STYLE = 4;
|
|
49 |
public static final int TRIANGLE_STYLE = 5;
|
|
50 |
public static final int STAR_STYLE = 6;
|
|
51 |
public static final int VERTICAL_LINE_STYLE = 7;
|
|
44 |
public static final int CIRCLE_STYLE = 0;
|
|
45 |
public static final int SQUARE_STYLE = 1;
|
|
46 |
public static final int CROSS_STYLE = 2;
|
|
47 |
public static final int DIAMOND_STYLE = 3;
|
|
48 |
public static final int X_STYLE = 4;
|
|
49 |
public static final int TRIANGLE_STYLE = 5;
|
|
50 |
public static final int STAR_STYLE = 6;
|
|
51 |
public static final int VERTICAL_LINE_STYLE = 7;
|
|
52 | 52 |
|
53 |
/** |
|
54 |
* Returns the rotation (in radians, counter-clockwise) of the marker symbol |
|
55 |
* @return double (rotation) |
|
56 |
*/ |
|
57 |
public abstract double getRotation(); |
|
58 |
/** |
|
59 |
* Sets the rotation of the marker symbol |
|
60 |
* @param rotation |
|
61 |
*/ |
|
62 |
public abstract void setRotation(double rotation); |
|
63 |
/** |
|
64 |
* Gets the offset for a marker symbol |
|
65 |
* @return Point2D |
|
66 |
*/ |
|
67 |
public abstract Point2D getOffset(); |
|
68 |
/** |
|
69 |
* Establishes the offset currently set for the marker symbol. |
|
70 |
* @param offset |
|
71 |
*/ |
|
72 |
public abstract void setOffset(Point2D offset); |
|
73 |
/** |
|
74 |
* Obtains the size of a marker symbol |
|
75 |
* |
|
76 |
*/ |
|
77 |
public abstract double getSize(); |
|
78 |
/** |
|
79 |
* Sets the size of marker symbol |
|
80 |
* @param size |
|
81 |
*/ |
|
82 |
public abstract void setSize(double size); |
|
53 |
/** |
|
54 |
* Returns the rotation (in radians, counter-clockwise) of the marker symbol |
|
55 |
* |
|
56 |
* @return double (rotation) |
|
57 |
*/ |
|
58 |
public abstract double getRotation(); |
|
83 | 59 |
|
84 |
/** |
|
85 |
* Returns the color of the marker symbol. |
|
86 |
* @return Color |
|
87 |
*/ |
|
88 |
public abstract Color getColor(); |
|
60 |
/** |
|
61 |
* Sets the rotation of the marker symbol |
|
62 |
* |
|
63 |
* @param rotation |
|
64 |
*/ |
|
65 |
public abstract void setRotation(double rotation); |
|
89 | 66 |
|
90 |
/** |
|
91 |
* Establishes a color for the marker symbol |
|
92 |
* @param color |
|
93 |
*/ |
|
94 |
public abstract void setColor(Color color); |
|
67 |
/** |
|
68 |
* Gets the offset for a marker symbol |
|
69 |
* |
|
70 |
* @return Point2D |
|
71 |
*/ |
|
72 |
public abstract Point2D getOffset(); |
|
95 | 73 |
|
96 |
/** |
|
97 |
* Defines the transparency of a line symbol. |
|
98 |
* |
|
99 |
* @param outlineAlpha |
|
100 |
* , the transparency |
|
101 |
*/ |
|
102 |
void setAlpha(int alpha); |
|
74 |
/** |
|
75 |
* Establishes the offset currently set for the marker symbol. |
|
76 |
* |
|
77 |
* @param offset |
|
78 |
*/ |
|
79 |
public abstract void setOffset(Point2D offset); |
|
103 | 80 |
|
104 |
/** |
|
105 |
* |
|
106 |
* @return the mask of the symbol |
|
107 |
*/ |
|
108 |
public abstract IMask getMask(); |
|
109 |
/** |
|
110 |
* Defines a mask for the symbol |
|
111 |
* @param mask,IMask |
|
112 |
*/ |
|
113 |
public abstract void setMask(IMask mask); |
|
81 |
/** |
|
82 |
* Obtains the size of a marker symbol |
|
83 |
* |
|
84 |
* @return |
|
85 |
*/ |
|
86 |
public abstract double getSize(); |
|
114 | 87 |
|
115 |
} |
|
88 |
/** |
|
89 |
* Sets the size of marker symbol |
|
90 |
* |
|
91 |
* @param size |
|
92 |
*/ |
|
93 |
public abstract void setSize(double size); |
|
94 |
|
|
95 |
/** |
|
96 |
* Returns the color of the marker symbol. |
|
97 |
* |
|
98 |
* @return Color |
|
99 |
*/ |
|
100 |
public abstract Color getColor(); |
|
101 |
|
|
102 |
/** |
|
103 |
* Establishes a color for the marker symbol |
|
104 |
* |
|
105 |
* @param color |
|
106 |
*/ |
|
107 |
public abstract void setColor(Color color); |
|
108 |
|
|
109 |
/** |
|
110 |
* Defines the transparency of a line symbol. |
|
111 |
* |
|
112 |
* @param outlineAlpha , the transparency |
|
113 |
*/ |
|
114 |
void setAlpha(int alpha); |
|
115 |
|
|
116 |
/** |
|
117 |
* |
|
118 |
* @return the mask of the symbol |
|
119 |
*/ |
|
120 |
public abstract IMask getMask(); |
|
121 |
|
|
122 |
/** |
|
123 |
* Defines a mask for the symbol |
|
124 |
* |
|
125 |
* @param mask,IMask |
|
126 |
*/ |
|
127 |
public abstract void setMask(IMask mask); |
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
} |
Also available in: Unified diff