Statistics
| Revision:

root / 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 / style / ILineStyle.java @ 34294

History | View | Annotate | Download (3.64 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41

    
42
/* CVS MESSAGES:
43
 *
44
 * $Id: ILineStyle.java 20989 2008-05-28 11:05:57Z jmvivo $
45
 * $Log$
46
 * Revision 1.7  2007-08-13 11:36:30  jvidal
47
 * javadoc
48
 *
49
 * Revision 1.6  2007/07/26 12:36:52  jaume
50
 * character encoding mispell
51
 *
52
 * Revision 1.5  2007/07/23 06:53:56  jaume
53
 * Added support for arrow line decorator (start commiting)
54
 *
55
 * Revision 1.4  2007/05/09 16:07:26  jaume
56
 * *** empty log message ***
57
 *
58
 * Revision 1.3  2007/05/08 08:47:39  jaume
59
 * *** empty log message ***
60
 *
61
 * Revision 1.2  2007/03/09 11:20:56  jaume
62
 * Advanced symbology (start committing)
63
 *
64
 * Revision 1.1.2.3  2007/02/15 16:23:44  jaume
65
 * *** empty log message ***
66
 *
67
 * Revision 1.1.2.2  2007/02/12 15:15:20  jaume
68
 * refactored interval legend and added graduated symbol legend
69
 *
70
 * Revision 1.1.2.1  2007/02/09 07:47:04  jaume
71
 * Isymbol moved
72
 *
73
 *
74
 */
75

    
76
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style;
77

    
78
import java.awt.Stroke;
79

    
80
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle;
81

    
82

    
83

    
84

    
85
/**
86
 * Interface that controls the properties that define the style of a line.This
87
 * properties are the width, stroke, offset and arrow decorator style( for example
88
 * if the line includes markers as an arrow to specify an orientation).
89
 * @author   jaume dominguez faus - jaume.dominguez@iver.es
90
 */
91
public interface ILineStyle extends IStyle {
92
        /**
93
         * Returns the width of the line
94
         * @return
95
         */
96
        public abstract float getLineWidth();
97
        /**
98
         * Establishes the width of the line
99
         * @param width of the line
100
         */
101
        public abstract void setLineWidth(float width);
102
        /**
103
         * Returns the stroke of the line
104
         * @return Stroke of the line
105
         */
106
        public abstract Stroke getStroke();
107
        /**
108
         * Sets the stroke of the line
109
         * @param stroke,stroke to be established
110
         */
111
        public abstract void setStroke(Stroke stroke);
112
        /**
113
         * Gets the arrow decorator style that has the line
114
         * @return ArrowDecoratorStyle
115
         */
116
        public abstract IArrowDecoratorStyle getArrowDecorator();
117
        /**
118
         * Sets the arrow decorator style of the line
119
         * @param arrowDecoratorStyle, ArrowDecoratorStyle
120
         */
121
        public abstract void setArrowDecorator(IArrowDecoratorStyle arrowDecoratorStyle);
122
        /**
123
         * Returns the offset of the line
124
         * @return
125
         */
126
        public abstract double getOffset();
127
        /**
128
         * Establishes the offset of the line
129
         * @param offset
130
         */
131
        public abstract void setOffset(double offset);
132

    
133
}