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 @ 47476
History | View | Annotate | Download (2.8 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2023 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 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
25 |
|
26 |
import java.awt.Stroke; |
27 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
28 |
|
29 |
/**
|
30 |
* Interface that controls the properties that define the style of a line.This
|
31 |
* properties are the width, stroke, offset and arrow decorator style( for
|
32 |
* example if the line includes markers as an arrow to specify an orientation).
|
33 |
*
|
34 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
35 |
*/
|
36 |
public interface ILineStyle extends IStyle { |
37 |
|
38 |
/**
|
39 |
* Returns the width of the line
|
40 |
*
|
41 |
* @return
|
42 |
*/
|
43 |
public abstract float getLineWidth(); |
44 |
|
45 |
/**
|
46 |
* Establishes the width of the line
|
47 |
*
|
48 |
* @param width of the line
|
49 |
*/
|
50 |
public abstract void setLineWidth(float width); |
51 |
|
52 |
/**
|
53 |
* Returns the stroke of the line
|
54 |
*
|
55 |
* @return Stroke of the line
|
56 |
*/
|
57 |
public abstract Stroke getStroke(); |
58 |
|
59 |
/**
|
60 |
* Sets the stroke of the line
|
61 |
*
|
62 |
* @param stroke,stroke to be established
|
63 |
*/
|
64 |
public abstract void setStroke(Stroke stroke); |
65 |
|
66 |
/**
|
67 |
* Gets the arrow decorator style that has the line
|
68 |
*
|
69 |
* @return ArrowDecoratorStyle
|
70 |
*/
|
71 |
public abstract IArrowDecoratorStyle getArrowDecorator(); |
72 |
|
73 |
/**
|
74 |
* Sets the arrow decorator style of the line
|
75 |
*
|
76 |
* @param arrowDecoratorStyle, ArrowDecoratorStyle
|
77 |
*/
|
78 |
public abstract void setArrowDecorator(IArrowDecoratorStyle arrowDecoratorStyle); |
79 |
|
80 |
/**
|
81 |
* Returns the offset of the line
|
82 |
*
|
83 |
* @return
|
84 |
*/
|
85 |
public abstract double getOffset(); |
86 |
|
87 |
/**
|
88 |
* Establishes the offset of the line
|
89 |
*
|
90 |
* @param offset
|
91 |
*/
|
92 |
public abstract void setOffset(double offset); |
93 |
|
94 |
public Stroke getCartographicStroke(); |
95 |
|
96 |
public double getCartographicOffset(); |
97 |
|
98 |
} |