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 / IArrowDecoratorStyle.java @ 40560
History | View | Annotate | Download (3.72 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 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
25 |
|
26 |
import java.awt.Graphics2D; |
27 |
import java.awt.geom.AffineTransform; |
28 |
|
29 |
import org.gvsig.fmap.dal.feature.Feature; |
30 |
import org.gvsig.fmap.geom.Geometry; |
31 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
32 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
33 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
34 |
|
35 |
/**
|
36 |
* @author gvSIG Team
|
37 |
* @version $Id$
|
38 |
*
|
39 |
*/
|
40 |
public interface IArrowDecoratorStyle extends IStyle { |
41 |
|
42 |
/**
|
43 |
* Obtains the number of arrows that the user wants to draw in the same line.
|
44 |
* @return
|
45 |
*/
|
46 |
public int getArrowMarkerCount(); |
47 |
|
48 |
/**
|
49 |
* Defines the number of arrows that the user wants to draw in the same line.
|
50 |
* @return
|
51 |
*/
|
52 |
public void setArrowMarkerCount(int arrowMarkerCount); |
53 |
|
54 |
/**
|
55 |
* Defines the flipAll attribute.If the value of this attribute is true all the
|
56 |
* arrows that we had drawn in the same line will be flipped.
|
57 |
* @return
|
58 |
*/
|
59 |
public boolean isFlipAll(); |
60 |
|
61 |
/**
|
62 |
* Obtains the flipAll attribute.If the value of this attribute is true all the
|
63 |
* arrows that we had drawn in the same line will be flipped.
|
64 |
* @return
|
65 |
*/
|
66 |
public void setFlipAll(boolean flipAll); |
67 |
|
68 |
/**
|
69 |
* Obtains the flipFirst attribute.If it is true only the first arrow of the line
|
70 |
* will be flipped.The rest will keep the same orientation.
|
71 |
* @return
|
72 |
*/
|
73 |
public boolean isFlipFirst(); |
74 |
|
75 |
/**
|
76 |
* Sets the flipFirst attribute.If it is true only the first arrow of the line
|
77 |
* will be flipped.The rest will keep the same orientation.
|
78 |
* @return
|
79 |
*/
|
80 |
public void setFlipFirst(boolean flipFirst); |
81 |
|
82 |
/**
|
83 |
* Gets the followLineAngle attribute.This attribute allows the arrow that we are
|
84 |
* going to draw to be more or less aligned with the line where it will be included (depending on the angle) .
|
85 |
* @return
|
86 |
*/
|
87 |
public boolean isFollowLineAngle(); |
88 |
|
89 |
/**
|
90 |
* Sets the followLineAngle attribute.This attribute allows the arrow that we are
|
91 |
* going to draw to be more or less aligned with the line where it will be included.
|
92 |
* (depending on the angle).
|
93 |
* @param followingLineAngle
|
94 |
* @return
|
95 |
*/
|
96 |
public void setFollowLineAngle(boolean followLineAngle); |
97 |
/**
|
98 |
* Draws an arrow(or other symbol that substitutes an arrow selected by the user)
|
99 |
* in a line.When the line is drawn, the symbol is added and takes care of the different
|
100 |
* options of the user(for example if he wants to flip the first symbol or all and
|
101 |
* the number of symbols per line to be drawn)
|
102 |
* @param g
|
103 |
* @param affineTransform
|
104 |
* @param feature
|
105 |
* @param shp
|
106 |
* @throws CreateGeometryException
|
107 |
*/
|
108 |
public void draw(Graphics2D g, AffineTransform affineTransform, |
109 |
Geometry geom, Feature feature) throws CreateGeometryException;
|
110 |
|
111 |
public IMarkerSymbol getMarker();
|
112 |
|
113 |
public void setMarker(IMarkerSymbol marker); |
114 |
} |