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 / ILineStyle.java @ 40560
History | View | Annotate | Download (3.37 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: ILineStyle.java 20989 2008-05-28 11:05:57Z jmvivo $
|
27 |
* $Log$
|
28 |
* Revision 1.7 2007-08-13 11:36:30 jvidal
|
29 |
* javadoc
|
30 |
*
|
31 |
* Revision 1.6 2007/07/26 12:36:52 jaume
|
32 |
* character encoding mispell
|
33 |
*
|
34 |
* Revision 1.5 2007/07/23 06:53:56 jaume
|
35 |
* Added support for arrow line decorator (start commiting)
|
36 |
*
|
37 |
* Revision 1.4 2007/05/09 16:07:26 jaume
|
38 |
* *** empty log message ***
|
39 |
*
|
40 |
* Revision 1.3 2007/05/08 08:47:39 jaume
|
41 |
* *** empty log message ***
|
42 |
*
|
43 |
* Revision 1.2 2007/03/09 11:20:56 jaume
|
44 |
* Advanced symbology (start committing)
|
45 |
*
|
46 |
* Revision 1.1.2.3 2007/02/15 16:23:44 jaume
|
47 |
* *** empty log message ***
|
48 |
*
|
49 |
* Revision 1.1.2.2 2007/02/12 15:15:20 jaume
|
50 |
* refactored interval legend and added graduated symbol legend
|
51 |
*
|
52 |
* Revision 1.1.2.1 2007/02/09 07:47:04 jaume
|
53 |
* Isymbol moved
|
54 |
*
|
55 |
*
|
56 |
*/
|
57 |
|
58 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
59 |
|
60 |
import java.awt.Stroke; |
61 |
|
62 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
/**
|
68 |
* Interface that controls the properties that define the style of a line.This
|
69 |
* properties are the width, stroke, offset and arrow decorator style( for example
|
70 |
* if the line includes markers as an arrow to specify an orientation).
|
71 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
72 |
*/
|
73 |
public interface ILineStyle extends IStyle { |
74 |
/**
|
75 |
* Returns the width of the line
|
76 |
* @return
|
77 |
*/
|
78 |
public abstract float getLineWidth(); |
79 |
/**
|
80 |
* Establishes the width of the line
|
81 |
* @param width of the line
|
82 |
*/
|
83 |
public abstract void setLineWidth(float width); |
84 |
/**
|
85 |
* Returns the stroke of the line
|
86 |
* @return Stroke of the line
|
87 |
*/
|
88 |
public abstract Stroke getStroke(); |
89 |
/**
|
90 |
* Sets the stroke of the line
|
91 |
* @param stroke,stroke to be established
|
92 |
*/
|
93 |
public abstract void setStroke(Stroke stroke); |
94 |
/**
|
95 |
* Gets the arrow decorator style that has the line
|
96 |
* @return ArrowDecoratorStyle
|
97 |
*/
|
98 |
public abstract IArrowDecoratorStyle getArrowDecorator(); |
99 |
/**
|
100 |
* Sets the arrow decorator style of the line
|
101 |
* @param arrowDecoratorStyle, ArrowDecoratorStyle
|
102 |
*/
|
103 |
public abstract void setArrowDecorator(IArrowDecoratorStyle arrowDecoratorStyle); |
104 |
/**
|
105 |
* Returns the offset of the line
|
106 |
* @return
|
107 |
*/
|
108 |
public abstract double getOffset(); |
109 |
/**
|
110 |
* Establishes the offset of the line
|
111 |
* @param offset
|
112 |
*/
|
113 |
public abstract void setOffset(double offset); |
114 |
|
115 |
} |