Statistics
| Revision:

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 / line / ILineSymbol.java @ 40560

History | View | Annotate | Download (3.54 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
/* CVS MESSAGES:
25
 *
26
 * $Id: ILineSymbol.java 20989 2008-05-28 11:05:57Z jmvivo $
27
 * $Log$
28
 * Revision 1.6  2007-08-14 11:17:31  jvidal
29
 * javadoc updated
30
 *
31
 * Revision 1.5  2007/08/08 12:03:13  jvidal
32
 * javadoc
33
 *
34
 * Revision 1.4  2007/05/08 08:47:39  jaume
35
 * *** empty log message ***
36
 *
37
 * Revision 1.3  2007/03/20 16:00:24  jaume
38
 * removed unuseful comments
39
 *
40
 * Revision 1.2  2007/03/09 11:20:56  jaume
41
 * Advanced symbology (start committing)
42
 *
43
 * Revision 1.1.2.5  2007/02/21 16:09:02  jaume
44
 * *** empty log message ***
45
 *
46
 * Revision 1.1.2.4  2007/02/15 16:23:44  jaume
47
 * *** empty log message ***
48
 *
49
 * Revision 1.1.2.3  2007/02/14 15:53:35  jaume
50
 * *** empty log message ***
51
 *
52
 * Revision 1.1.2.2  2007/02/13 16:19:19  jaume
53
 * graduated symbol legends (start commiting)
54
 *
55
 * Revision 1.1.2.1  2007/02/09 07:47:04  jaume
56
 * Isymbol moved
57
 *
58
 *
59
 */
60

    
61
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line;
62

    
63
import java.awt.Color;
64

    
65
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport;
66
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
67
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle;
68

    
69

    
70

    
71
/**
72
 * Interface for <b>line symbols</b>.It has the different methods to obtain or define
73
 * the attributes of a line such as color, style, width and alpha (transparency).
74
 *
75
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
76
 */
77
public interface ILineSymbol extends ISymbol, CartographicSupport{
78
        
79
        public static final String SYMBOL_NAME = "line";
80

    
81
        /**
82
         * Returns the color of the line symbol
83
         * @return Color
84
         */
85
        public abstract Color getColor();
86
        /**
87
         * Sets the color for a line symbol
88
         * @param color
89
         */
90

    
91
        public abstract void setLineColor(Color color);
92
        /**
93
         * Obtains the style of the line symbol.
94
         * @return ILineStyle, the style of the line symbol
95
         */
96
        public abstract ILineStyle getLineStyle();
97
        /**
98
         * Defines the style of the line symbol to be used.
99
         * @param lineStyle
100
         */
101
        public abstract void setLineStyle(ILineStyle lineStyle);
102
        /**
103
         * Sets the width of the line symbol.
104
         * @param width, the width of the line
105
         */
106
        public abstract void setLineWidth(double width);
107
        /**
108
         * Returns the width of the line symbol
109
         * @return
110
         */
111

    
112
        public abstract double getLineWidth();
113

    
114
        /**
115
         * Obtains the transparency of the line symbol
116
         * @return
117
         */
118
        public abstract int getAlpha();
119

    
120
        /**
121
         * Defines the transparency of a line symbol.
122
         * @param outlineAlpha, the transparency
123
         */
124
        public abstract void setAlpha(int outlineAlpha);
125
}