Statistics
| Revision:

svn-gvsig-desktop / 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 / marker / IMarkerSymbol.java @ 34294

History | View | Annotate | Download (3.23 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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 2
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
 */
22
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker;
23

    
24
import java.awt.Color;
25
import java.awt.geom.Point2D;
26

    
27
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport;
28
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
29
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask;
30

    
31
/**
32
 * Represents an ISymbol that draws a <b>marker symbol</b>.It has the different methods to obtain or
33
 * define the attributes of a marker such as rotation, offset, size, color and
34
 * IMask.
35
 *
36
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
37
 */
38
public interface IMarkerSymbol extends ISymbol, CartographicSupport {
39
        
40
        public static final String SYMBOL_NAME = "marker";
41

    
42
        public static final int CIRCLE_STYLE = 0;
43
        public static final int SQUARE_STYLE = 1;
44
        public static final int CROSS_STYLE = 2;
45
        public static final int DIAMOND_STYLE = 3;
46
        public static final int X_STYLE = 4;
47
        public static final int TRIANGLE_STYLE = 5;
48
        public static final int STAR_STYLE = 6;
49

    
50
        /**
51
         * Returns the rotation of the marker symbol
52
         * @return double (rotation)
53
         */
54
        public abstract double getRotation();
55
        /**
56
         * Sets the rotation of the marker symbol
57
         * @param rotation
58
         */
59
        public abstract void setRotation(double rotation);
60
        /**
61
         * Gets the offset for a marker symbol
62
         * @return Point2D
63
         */
64
        public abstract Point2D getOffset();
65
        /**
66
         * Establishes the offset currently set for the marker symbol.
67
         * @param offset
68
         */
69
        public abstract void setOffset(Point2D offset);
70
        /**
71
         * Obtains the size of a marker symbol
72
         *
73
         */
74
        public abstract double getSize();
75
        /**
76
         * Sets the size of marker symbol
77
         * @param size
78
         */
79
        public abstract void setSize(double size);
80

    
81
        /**
82
         * Returns the color of the marker symbol.
83
         * @return Color
84
         */
85
        public abstract Color getColor();
86

    
87
        /**
88
         * Establishes a color for the marker symbol
89
         * @param color
90
         */
91
        public abstract void setColor(Color color);
92
        
93
        /**
94
         * Defines the transparency of a line symbol.
95
         * 
96
         * @param outlineAlpha
97
         *            , the transparency
98
         */
99
        void setAlpha(int alpha);
100
        
101
        /**
102
         *
103
         * @return the mask of the symbol
104
         */
105
        public abstract IMask getMask();
106
        /**
107
         * Defines a mask for the symbol
108
         * @param mask,IMask
109
         */
110
        public abstract void setMask(IMask mask);
111

    
112
}