Revision 38760
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/test/java/org/gvsig/symbology/SymbologyManagerTest.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
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 2 |
|
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 |
*/ |
|
22 |
package org.gvsig.symbology; |
|
23 |
|
|
24 |
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase; |
|
25 |
|
|
26 |
/** |
|
27 |
* API compatibility tests for {@link SymbologyManager} implementations. |
|
28 |
* |
|
29 |
* @author gvSIG Team |
|
30 |
* @version $Id$ |
|
31 |
*/ |
|
32 |
public abstract class SymbologyManagerTest extends |
|
33 |
AbstractLibraryAutoInitTestCase { |
|
34 |
|
|
35 |
protected SymbologyManager manager; |
|
36 |
|
|
37 |
@Override |
|
38 |
protected void doSetUp() throws Exception { |
|
39 |
manager = SymbologyLocator.getSymbologyManager(); |
|
40 |
} |
|
41 |
} |
|
0 | 42 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/IMultiShapeSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol; |
|
2 |
|
|
3 |
import java.awt.Color; |
|
4 |
|
|
5 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol; |
|
6 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol; |
|
7 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
|
8 |
|
|
9 |
public interface IMultiShapeSymbol { |
|
10 |
|
|
11 |
public abstract IMarkerSymbol getMarkerSymbol(); |
|
12 |
|
|
13 |
public abstract ILineSymbol getLineSymbol(); |
|
14 |
|
|
15 |
public abstract IFillSymbol getFillSymbol(); |
|
16 |
|
|
17 |
public abstract void setMarkerSymbol(IMarkerSymbol markerSymbol); |
|
18 |
|
|
19 |
public abstract void setLineSymbol(ILineSymbol lineSymbol); |
|
20 |
|
|
21 |
public abstract void setFillSymbol(IFillSymbol fillFillSymbol); |
|
22 |
|
|
23 |
} |
|
0 | 24 |
tags/v2_0_0_Build_2051/libraries/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 | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
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 2 |
|
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 |
*/ |
|
22 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
|
23 |
|
|
24 |
import java.awt.Graphics2D; |
|
25 |
import java.awt.geom.AffineTransform; |
|
26 |
|
|
27 |
import org.gvsig.fmap.dal.feature.Feature; |
|
28 |
import org.gvsig.fmap.geom.Geometry; |
|
29 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
|
30 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
|
31 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
|
32 |
|
|
33 |
/** |
|
34 |
* @author gvSIG Team |
|
35 |
* @version $Id$ |
|
36 |
* |
|
37 |
*/ |
|
38 |
public interface IArrowDecoratorStyle extends IStyle { |
|
39 |
|
|
40 |
/** |
|
41 |
* Obtains the number of arrows that the user wants to draw in the same line. |
|
42 |
* @return |
|
43 |
*/ |
|
44 |
public int getArrowMarkerCount(); |
|
45 |
|
|
46 |
/** |
|
47 |
* Defines the number of arrows that the user wants to draw in the same line. |
|
48 |
* @return |
|
49 |
*/ |
|
50 |
public void setArrowMarkerCount(int arrowMarkerCount); |
|
51 |
|
|
52 |
/** |
|
53 |
* Defines the flipAll attribute.If the value of this attribute is true all the |
|
54 |
* arrows that we had drawn in the same line will be flipped. |
|
55 |
* @return |
|
56 |
*/ |
|
57 |
public boolean isFlipAll(); |
|
58 |
|
|
59 |
/** |
|
60 |
* Obtains the flipAll attribute.If the value of this attribute is true all the |
|
61 |
* arrows that we had drawn in the same line will be flipped. |
|
62 |
* @return |
|
63 |
*/ |
|
64 |
public void setFlipAll(boolean flipAll); |
|
65 |
|
|
66 |
/** |
|
67 |
* Obtains the flipFirst attribute.If it is true only the first arrow of the line |
|
68 |
* will be flipped.The rest will keep the same orientation. |
|
69 |
* @return |
|
70 |
*/ |
|
71 |
public boolean isFlipFirst(); |
|
72 |
|
|
73 |
/** |
|
74 |
* Sets the flipFirst attribute.If it is true only the first arrow of the line |
|
75 |
* will be flipped.The rest will keep the same orientation. |
|
76 |
* @return |
|
77 |
*/ |
|
78 |
public void setFlipFirst(boolean flipFirst); |
|
79 |
|
|
80 |
/** |
|
81 |
* Gets the followLineAngle attribute.This attribute allows the arrow that we are |
|
82 |
* going to draw to be more or less aligned with the line where it will be included (depending on the angle) . |
|
83 |
* @return |
|
84 |
*/ |
|
85 |
public boolean isFollowLineAngle(); |
|
86 |
|
|
87 |
/** |
|
88 |
* Sets the followLineAngle attribute.This attribute allows the arrow that we are |
|
89 |
* going to draw to be more or less aligned with the line where it will be included. |
|
90 |
* (depending on the angle). |
|
91 |
* @param followingLineAngle |
|
92 |
* @return |
|
93 |
*/ |
|
94 |
public void setFollowLineAngle(boolean followLineAngle); |
|
95 |
/** |
|
96 |
* Draws an arrow(or other symbol that substitutes an arrow selected by the user) |
|
97 |
* in a line.When the line is drawn, the symbol is added and takes care of the different |
|
98 |
* options of the user(for example if he wants to flip the first symbol or all and |
|
99 |
* the number of symbols per line to be drawn) |
|
100 |
* @param g |
|
101 |
* @param affineTransform |
|
102 |
* @param feature |
|
103 |
* @param shp |
|
104 |
* @throws CreateGeometryException |
|
105 |
*/ |
|
106 |
public void draw(Graphics2D g, AffineTransform affineTransform, |
|
107 |
Geometry geom, Feature feature) throws CreateGeometryException; |
|
108 |
|
|
109 |
public IMarkerSymbol getMarker(); |
|
110 |
|
|
111 |
public void setMarker(IMarkerSymbol marker); |
|
112 |
} |
|
0 | 113 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/style/ISimpleLineStyle.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
|
2 |
|
|
3 |
public interface ISimpleLineStyle extends ILineStyle{ |
|
4 |
|
|
5 |
} |
|
0 | 6 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/style/IMarkerFillPropertiesStyle.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
|
2 |
|
|
3 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
|
4 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
|
5 |
/** |
|
6 |
* IMarkerFillPropertiesStyle is an interface used by classes that are trying to fill a |
|
7 |
* polygon using marker symbols for that. In order to permit a big mount of possibilities for |
|
8 |
* the filling, this interface has the options to modify the rotation of the markers that |
|
9 |
* compose the padding, the x and y offset, the x and y separation,and the style of the fill. |
|
10 |
* |
|
11 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
12 |
*/ |
|
13 |
public interface IMarkerFillPropertiesStyle extends IStyle { |
|
14 |
public static final int RANDOM_FILL = 3; |
|
15 |
public static final int GRID_FILL = 1; |
|
16 |
public static final int SINGLE_CENTERED_SYMBOL = 2; |
|
17 |
|
|
18 |
/** |
|
19 |
* <p> |
|
20 |
* Defines an utility symbol to show up a thumbnail |
|
21 |
* by default, this symbol is a SimpleMarkerSymbol. |
|
22 |
* Thus, the drawInsideRectangle will always work. But |
|
23 |
* it can be changed with setSampleSymbol(IMakerSymbol).<br> |
|
24 |
* </p> |
|
25 |
* <p> |
|
26 |
* If <b>marker</b> is null, it does nothing |
|
27 |
* </p> |
|
28 |
*/ |
|
29 |
public void setSampleSymbol(IMarkerSymbol marker) ; |
|
30 |
|
|
31 |
/** |
|
32 |
* Obtains the rotation of the marker symbol that compose the padding. |
|
33 |
* @return the rotation of a marker |
|
34 |
*/ |
|
35 |
public double getRotation(); |
|
36 |
/** |
|
37 |
* Sets the rotation of the marker symbol that compose the padding. |
|
38 |
* @param rotation |
|
39 |
*/ |
|
40 |
public void setRotation(double rotation) ; |
|
41 |
/** |
|
42 |
* Returns the x offset of the markers that compose the padding |
|
43 |
* @return xoffset of the marker |
|
44 |
*/ |
|
45 |
public double getXOffset(); |
|
46 |
/** |
|
47 |
* Establishes de x offset of the markers that compose the padding |
|
48 |
* @param offset |
|
49 |
*/ |
|
50 |
public void setXOffset(double offset) ; |
|
51 |
/** |
|
52 |
* Return the separation (x axis) between the markers that compose the padding |
|
53 |
* @return x separation |
|
54 |
*/ |
|
55 |
public double getXSeparation() ; |
|
56 |
/** |
|
57 |
* Sets the separation (x axis) between the markers that compose the padding |
|
58 |
* @param separation |
|
59 |
*/ |
|
60 |
public void setXSeparation(double separation); |
|
61 |
|
|
62 |
/** |
|
63 |
* Returns the y offset of the markers that compose the padding |
|
64 |
* @return yoffset of the marker |
|
65 |
*/ |
|
66 |
public double getYOffset(); |
|
67 |
/** |
|
68 |
* Establishes the y offset of the markers that compose the padding |
|
69 |
* @param offset |
|
70 |
*/ |
|
71 |
public void setYOffset(double offset) ; |
|
72 |
/** |
|
73 |
* Return the separation (y axis) between the markers that compose the padding |
|
74 |
* @return y separation |
|
75 |
*/ |
|
76 |
public double getYSeparation() ; |
|
77 |
/** |
|
78 |
* Sets the separation (y axis) between the markers that compose the padding |
|
79 |
* @param separation |
|
80 |
*/ |
|
81 |
public void setYSeparation(double separation); |
|
82 |
/** |
|
83 |
* Sets the style for the fill that use marker symbols to do it(the filled). |
|
84 |
* @param fillStyle |
|
85 |
*/ |
|
86 |
public void setFillStyle(int fillStyle); |
|
87 |
/** |
|
88 |
* Returns the style of the fill that use marker symbols to do it(the filled). |
|
89 |
* @return int, fill style |
|
90 |
*/ |
|
91 |
public int getFillStyle(); |
|
92 |
} |
|
0 | 93 |
tags/v2_0_0_Build_2051/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 | ||
---|---|---|
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 |
} |
|
0 | 134 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/style/IMask.java | ||
---|---|---|
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 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style; |
|
42 |
|
|
43 |
import java.awt.Shape; |
|
44 |
|
|
45 |
import org.gvsig.fmap.geom.Geometry; |
|
46 |
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle; |
|
47 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol; |
|
48 |
|
|
49 |
/** |
|
50 |
* Interface for the style of a mask. |
|
51 |
* |
|
52 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
53 |
*/ |
|
54 |
public interface IMask extends IStyle { |
|
55 |
|
|
56 |
public double getSize(); |
|
57 |
|
|
58 |
public void setSize(double size); |
|
59 |
|
|
60 |
public IFillSymbol getFillSymbol(); |
|
61 |
|
|
62 |
public void setFillSymbol(IFillSymbol fill); |
|
63 |
|
|
64 |
public Geometry getHaloShape(Shape shp); |
|
65 |
} |
|
0 | 66 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/IMarkerSymbol.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
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 2 |
|
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 |
*/ |
|
22 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker; |
|
23 |
|
|
24 |
import java.awt.Color; |
|
25 |
import java.awt.geom.Point2D; |
|
26 |
|
|
27 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
|
28 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
|
29 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask; |
|
30 |
|
|
31 |
/** |
|
32 |
* Represents an ISymbol that draws a <b>marker symbol</b>.It has the different methods to obtain or |
|
33 |
* define the attributes of a marker such as rotation, offset, size, color and |
|
34 |
* IMask. |
|
35 |
* |
|
36 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
37 |
*/ |
|
38 |
public interface IMarkerSymbol extends ISymbol, CartographicSupport { |
|
39 |
|
|
40 |
public static final String SYMBOL_NAME = "marker"; |
|
41 |
|
|
42 |
public static final int CIRCLE_STYLE = 0; |
|
43 |
public static final int SQUARE_STYLE = 1; |
|
44 |
public static final int CROSS_STYLE = 2; |
|
45 |
public static final int DIAMOND_STYLE = 3; |
|
46 |
public static final int X_STYLE = 4; |
|
47 |
public static final int TRIANGLE_STYLE = 5; |
|
48 |
public static final int STAR_STYLE = 6; |
|
49 |
|
|
50 |
/** |
|
51 |
* Returns the rotation of the marker symbol |
|
52 |
* @return double (rotation) |
|
53 |
*/ |
|
54 |
public abstract double getRotation(); |
|
55 |
/** |
|
56 |
* Sets the rotation of the marker symbol |
|
57 |
* @param rotation |
|
58 |
*/ |
|
59 |
public abstract void setRotation(double rotation); |
|
60 |
/** |
|
61 |
* Gets the offset for a marker symbol |
|
62 |
* @return Point2D |
|
63 |
*/ |
|
64 |
public abstract Point2D getOffset(); |
|
65 |
/** |
|
66 |
* Establishes the offset currently set for the marker symbol. |
|
67 |
* @param offset |
|
68 |
*/ |
|
69 |
public abstract void setOffset(Point2D offset); |
|
70 |
/** |
|
71 |
* Obtains the size of a marker symbol |
|
72 |
* |
|
73 |
*/ |
|
74 |
public abstract double getSize(); |
|
75 |
/** |
|
76 |
* Sets the size of marker symbol |
|
77 |
* @param size |
|
78 |
*/ |
|
79 |
public abstract void setSize(double size); |
|
80 |
|
|
81 |
/** |
|
82 |
* Returns the color of the marker symbol. |
|
83 |
* @return Color |
|
84 |
*/ |
|
85 |
public abstract Color getColor(); |
|
86 |
|
|
87 |
/** |
|
88 |
* Establishes a color for the marker symbol |
|
89 |
* @param color |
|
90 |
*/ |
|
91 |
public abstract void setColor(Color color); |
|
92 |
|
|
93 |
/** |
|
94 |
* Defines the transparency of a line symbol. |
|
95 |
* |
|
96 |
* @param outlineAlpha |
|
97 |
* , the transparency |
|
98 |
*/ |
|
99 |
void setAlpha(int alpha); |
|
100 |
|
|
101 |
/** |
|
102 |
* |
|
103 |
* @return the mask of the symbol |
|
104 |
*/ |
|
105 |
public abstract IMask getMask(); |
|
106 |
/** |
|
107 |
* Defines a mask for the symbol |
|
108 |
* @param mask,IMask |
|
109 |
*/ |
|
110 |
public abstract void setMask(IMask mask); |
|
111 |
|
|
112 |
} |
|
0 | 113 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/IMultiLayerMarkerSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker; |
|
2 |
|
|
3 |
import org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol; |
|
4 |
|
|
5 |
public interface IMultiLayerMarkerSymbol extends IMarkerSymbol, IMultiLayerSymbol{ |
|
6 |
|
|
7 |
} |
|
0 | 8 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/ISimpleMarkerSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker; |
|
2 |
|
|
3 |
import java.awt.Color; |
|
4 |
|
|
5 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
|
6 |
|
|
7 |
public interface ISimpleMarkerSymbol extends IMarkerSymbol{ |
|
8 |
|
|
9 |
/** |
|
10 |
* Returns true or false depending if the simple marker symbol has an outline or not. |
|
11 |
* @return Returns the outline. |
|
12 |
*/ |
|
13 |
public abstract boolean hasOutline(); |
|
14 |
|
|
15 |
/** |
|
16 |
* Establishes the outline for the simple marker symbol. |
|
17 |
* @param outline The outline to set. |
|
18 |
*/ |
|
19 |
public abstract void setOutlined(boolean outlined); |
|
20 |
|
|
21 |
/** |
|
22 |
* Returns the outline color for the symple marker symbol |
|
23 |
* |
|
24 |
* @return Color,outlineColor. |
|
25 |
*/ |
|
26 |
public abstract Color getOutlineColor(); |
|
27 |
|
|
28 |
/** |
|
29 |
* Sets the outline color for the simple marker symbol |
|
30 |
* @param outlineColor, Color |
|
31 |
*/ |
|
32 |
public abstract void setOutlineColor(Color outlineColor); |
|
33 |
|
|
34 |
/** |
|
35 |
* Gets the size of the outline for the simple marker symbol |
|
36 |
* @return Returns the outlineSize. |
|
37 |
*/ |
|
38 |
public abstract double getOutlineSize(); |
|
39 |
|
|
40 |
/** |
|
41 |
* Establishes the size for the outline of the simple marker symbol |
|
42 |
* @param outlineSize The outlineSize to set. |
|
43 |
*/ |
|
44 |
public abstract void setOutlineSize(double outlineSize); |
|
45 |
|
|
46 |
/** |
|
47 |
* @return Returns the selectionSymbol. |
|
48 |
*/ |
|
49 |
public abstract ISymbol getSelectionSymbol(); |
|
50 |
|
|
51 |
/** |
|
52 |
* @param selectionSymbol The selectionSymbol to set. |
|
53 |
*/ |
|
54 |
public abstract void setSelectionSymbol(ISymbol selectionSymbol); |
|
55 |
|
|
56 |
/** |
|
57 |
* Sets the style for the simple marker symbol |
|
58 |
* @param style |
|
59 |
*/ |
|
60 |
public abstract void setStyle(int style); |
|
61 |
|
|
62 |
/** |
|
63 |
* Obtains the style for the simple marker symbol |
|
64 |
* @return markerStyle,int |
|
65 |
*/ |
|
66 |
public abstract int getStyle(); |
|
67 |
|
|
68 |
/** |
|
69 |
* Returns if the marker symbol should be drawn outlined. |
|
70 |
* @return if it is outlined |
|
71 |
*/ |
|
72 |
public abstract boolean isOutlined(); |
|
73 |
|
|
74 |
} |
|
0 | 75 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/IArrowMarkerSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker; |
|
2 |
|
|
3 |
public interface IArrowMarkerSymbol { |
|
4 |
|
|
5 |
/** |
|
6 |
* To get the sharpeness attribute.It will determine the final form of the arrow |
|
7 |
* @return |
|
8 |
*/ |
|
9 |
public abstract double getSharpness(); |
|
10 |
|
|
11 |
/** |
|
12 |
* To set the sharpeness.It will determine the final form of the arrow |
|
13 |
* @param sharpeness, the value of the arrow's edge angle IN RADIANS |
|
14 |
* @see #getSharpeness() |
|
15 |
*/ |
|
16 |
public abstract void setSharpness(double sharpeness); |
|
17 |
|
|
18 |
} |
|
0 | 19 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/IPictureMarkerSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
import java.net.URL; |
|
5 |
|
|
6 |
public interface IPictureMarkerSymbol extends IMarkerSymbol{ |
|
7 |
|
|
8 |
/** |
|
9 |
* Sets the file for the image to be used as a marker symbol |
|
10 |
* |
|
11 |
* @param imageFile |
|
12 |
* , File |
|
13 |
* @throws IOException |
|
14 |
*/ |
|
15 |
public abstract void setImage(URL imageUrl) throws IOException; |
|
16 |
|
|
17 |
/** |
|
18 |
* Sets the file for the image to be used as a marker symbol (when it is |
|
19 |
* selected in the map) |
|
20 |
* |
|
21 |
* @param imageFile |
|
22 |
* , File |
|
23 |
* @throws IOException |
|
24 |
*/ |
|
25 |
public abstract void setSelImage(URL imageFileUrl) throws IOException; |
|
26 |
|
|
27 |
// public void print(Graphics2D g, AffineTransform at, FShape shape) |
|
28 |
// throws ReadDriverException { |
|
29 |
// // TODO Implement it |
|
30 |
// throw new Error("Not yet implemented!"); |
|
31 |
// |
|
32 |
// } |
|
33 |
/** |
|
34 |
* Returns the URL of the image that is used as a marker symbol |
|
35 |
* @return imagePath,URL |
|
36 |
*/ |
|
37 |
public abstract URL getSource(); |
|
38 |
|
|
39 |
/** |
|
40 |
* Returns the URL of the image that is used as a marker symbol (when it |
|
41 |
is selected in the map) |
|
42 |
* @return selimagePath,URL |
|
43 |
*/ |
|
44 |
public abstract URL getSelectedSource(); |
|
45 |
|
|
46 |
} |
|
0 | 47 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/text/ISimpleTextSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.text; |
|
2 |
|
|
3 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ITextSymbol; |
|
4 |
|
|
5 |
public interface ISimpleTextSymbol extends ITextSymbol{ |
|
6 |
|
|
7 |
public abstract double getRotation(); |
|
8 |
|
|
9 |
/** |
|
10 |
* Defines the angle of rotation for the text that composes the symbol |
|
11 |
* |
|
12 |
* @param rotation |
|
13 |
*/ |
|
14 |
public abstract void setRotation(double rotation); |
|
15 |
|
|
16 |
} |
|
0 | 17 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/IFillSymbol.java | ||
---|---|---|
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: IFillSymbol.java 21071 2008-06-02 10:55:35Z vcaballero $ |
|
45 |
* $Log$ |
|
46 |
* Revision 1.3 2007-08-13 11:36:50 jvidal |
|
47 |
* javadoc |
|
48 |
* |
|
49 |
* Revision 1.2 2007/03/09 11:20:56 jaume |
|
50 |
* Advanced symbology (start committing) |
|
51 |
* |
|
52 |
* Revision 1.1.2.2 2007/02/21 16:09:02 jaume |
|
53 |
* *** empty log message *** |
|
54 |
* |
|
55 |
* Revision 1.1.2.1 2007/02/16 10:54:12 jaume |
|
56 |
* multilayer splitted to multilayerline, multilayermarker,and multilayerfill |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
|
61 |
|
|
62 |
import java.awt.Color; |
|
63 |
|
|
64 |
import org.gvsig.fmap.geom.Geometry; |
|
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.line.ILineSymbol; |
|
68 |
|
|
69 |
|
|
70 |
/** |
|
71 |
* Interface that extends ISymbol interface in order to define methods for |
|
72 |
* fill symbols which can manage specific attributes of them. |
|
73 |
* |
|
74 |
* |
|
75 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
76 |
*/ |
|
77 |
|
|
78 |
public interface IFillSymbol extends ISymbol, CartographicSupport{ |
|
79 |
|
|
80 |
public static final String SYMBOL_NAME = "fill"; |
|
81 |
|
|
82 |
public abstract boolean isSuitableFor(Geometry geom); |
|
83 |
|
|
84 |
public abstract int getOnePointRgb(); |
|
85 |
|
|
86 |
/** |
|
87 |
* Sets the color that will be used to draw the filling pattern of this symbol. |
|
88 |
* |
|
89 |
* @param Color |
|
90 |
*/ |
|
91 |
public abstract void setFillColor(Color color); |
|
92 |
|
|
93 |
/** |
|
94 |
* Sets the color of the outline. |
|
95 |
* @deprectated will be substituted by setOutline(AbstractLineSymbol); |
|
96 |
* @param color |
|
97 |
*/ |
|
98 |
public abstract void setOutline(ILineSymbol outline); |
|
99 |
|
|
100 |
/** |
|
101 |
* @return Returns the color. |
|
102 |
*/ |
|
103 |
public abstract Color getFillColor(); |
|
104 |
|
|
105 |
/** |
|
106 |
* Obtains the ILineSymbol interface of the outline |
|
107 |
* @return the outline,ILineSymbol. |
|
108 |
*/ |
|
109 |
public abstract ILineSymbol getOutline(); |
|
110 |
/** |
|
111 |
* Obtains the transparency of the fill symbol |
|
112 |
* @return the transparency of the fill symbol |
|
113 |
*/ |
|
114 |
|
|
115 |
public abstract int getFillAlpha(); |
|
116 |
|
|
117 |
public abstract boolean hasFill(); |
|
118 |
|
|
119 |
public abstract void setHasFill(boolean hasFill); |
|
120 |
|
|
121 |
public abstract boolean hasOutline(); |
|
122 |
|
|
123 |
public abstract void setHasOutline(boolean hasOutline); |
|
124 |
} |
|
0 | 125 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/IMarkerFillSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
|
2 |
|
|
3 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol; |
|
4 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle; |
|
5 |
|
|
6 |
public interface IMarkerFillSymbol extends IFillSymbol{ |
|
7 |
|
|
8 |
public abstract void setMarker(IMarkerSymbol marker); |
|
9 |
|
|
10 |
public abstract IMarkerSymbol getMarker(); |
|
11 |
|
|
12 |
/** |
|
13 |
* Sets the markerfillproperties to be used by the class |
|
14 |
* |
|
15 |
* @param markerFillStyle,IMarkerFillPropertiesStyle |
|
16 |
*/ |
|
17 |
public abstract void setMarkerFillProperties( |
|
18 |
IMarkerFillPropertiesStyle markerFillStyle); |
|
19 |
|
|
20 |
/** |
|
21 |
* Returns the markerfillproperties that are used by the class |
|
22 |
* |
|
23 |
* @return markerFillProperties,IMarkerFillPropertiesStyle |
|
24 |
*/ |
|
25 |
public abstract IMarkerFillPropertiesStyle getMarkerFillProperties(); |
|
26 |
|
|
27 |
} |
|
0 | 28 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/IMultiLayerFillSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
|
2 |
|
|
3 |
import org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol; |
|
4 |
|
|
5 |
public interface IMultiLayerFillSymbol extends IFillSymbol, IMultiLayerSymbol{ |
|
6 |
|
|
7 |
} |
|
0 | 8 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/ISimpleFillSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
|
2 |
|
|
3 |
public interface ISimpleFillSymbol extends IFillSymbol{ |
|
4 |
|
|
5 |
} |
|
0 | 6 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/IPictureFillSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
import java.net.URL; |
|
5 |
|
|
6 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle; |
|
7 |
|
|
8 |
public interface IPictureFillSymbol extends IFillSymbol{ |
|
9 |
|
|
10 |
/** |
|
11 |
* Sets the URL for the image to be used as a picture fill symbol (when it is selected in the map) |
|
12 |
* @param imageFile, File |
|
13 |
* @throws IOException |
|
14 |
*/ |
|
15 |
public abstract void setSelImage(URL selImageUrl) throws IOException; |
|
16 |
|
|
17 |
/** |
|
18 |
* Defines the URL from where the picture to fill the polygon is taken. |
|
19 |
* @param imageFile |
|
20 |
* @throws IOException |
|
21 |
*/ |
|
22 |
public abstract void setImage(URL imageUrl) throws IOException; |
|
23 |
|
|
24 |
/** |
|
25 |
* Returns the IMarkerFillProperties that allows this class to treat the picture as |
|
26 |
* a marker in order to scale it, rotate it and so on. |
|
27 |
* @return markerFillProperties,IMarkerFillPropertiesStyle |
|
28 |
*/ |
|
29 |
public abstract IMarkerFillPropertiesStyle getMarkerFillProperties(); |
|
30 |
|
|
31 |
/** |
|
32 |
* Sets the MarkerFillProperties in order to allow the user to modify the picture as |
|
33 |
* a marker (it is possible to scale it, rotate it and so on) |
|
34 |
* @param prop |
|
35 |
*/ |
|
36 |
public abstract void setMarkerFillProperties(IMarkerFillPropertiesStyle prop); |
|
37 |
|
|
38 |
/** |
|
39 |
* Defines the angle for the rotation of the image when it is added to create the |
|
40 |
* padding |
|
41 |
* |
|
42 |
* @return angle |
|
43 |
*/ |
|
44 |
public abstract double getAngle(); |
|
45 |
|
|
46 |
/** |
|
47 |
* Sets the angle for the rotation of the image when it is added to create the padding |
|
48 |
* @param angle |
|
49 |
*/ |
|
50 |
public abstract void setAngle(double angle); |
|
51 |
|
|
52 |
/** |
|
53 |
* Defines the scale for the x axis of the image when it is added to create the |
|
54 |
* padding |
|
55 |
* @return xScale |
|
56 |
*/ |
|
57 |
public abstract double getXScale(); |
|
58 |
|
|
59 |
/** |
|
60 |
* Returns the scale for the x axis of the image when it is added to create the |
|
61 |
* padding |
|
62 |
* @param xScale |
|
63 |
*/ |
|
64 |
public abstract void setXScale(double xScale); |
|
65 |
|
|
66 |
/** |
|
67 |
* Defines the scale for the y axis of the image when it is added to create the |
|
68 |
* padding |
|
69 |
* @return yScale |
|
70 |
*/ |
|
71 |
public abstract double getYScale(); |
|
72 |
|
|
73 |
/** |
|
74 |
* Returns the scale for the y axis of the image when it is added to create the |
|
75 |
* padding |
|
76 |
* @param yScale |
|
77 |
*/ |
|
78 |
public abstract void setYScale(double yScale); |
|
79 |
|
|
80 |
/** |
|
81 |
* Returns the URL of the image that is used to create the padding to fill the |
|
82 |
* polygon |
|
83 |
* @return imagePath |
|
84 |
*/ |
|
85 |
public abstract URL getSource(); |
|
86 |
|
|
87 |
/** |
|
88 |
* Returns the URL of the image used when the polygon is selected |
|
89 |
* @return |
|
90 |
*/ |
|
91 |
public abstract URL getSelectedSource(); |
|
92 |
|
|
93 |
} |
|
0 | 94 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/line/IMultiLayerLineSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line; |
|
2 |
|
|
3 |
import org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol; |
|
4 |
|
|
5 |
public interface IMultiLayerLineSymbol extends ILineSymbol, IMultiLayerSymbol{ |
|
6 |
|
|
7 |
} |
|
0 | 8 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/line/ISimpleLineSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line; |
|
2 |
|
|
3 |
public interface ISimpleLineSymbol extends ILineSymbol{ |
|
4 |
|
|
5 |
} |
|
0 | 6 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/line/IPictureLineSymbol.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
import java.net.URL; |
|
5 |
|
|
6 |
|
|
7 |
public interface IPictureLineSymbol extends ILineSymbol{ |
|
8 |
|
|
9 |
/** |
|
10 |
* Sets the URL for the image to be used as a picture line symbol |
|
11 |
* @param imageFile, File |
|
12 |
* @throws IOException |
|
13 |
*/ |
|
14 |
public abstract void setImage(URL imageUrl) throws IOException; |
|
15 |
|
|
16 |
/** |
|
17 |
* Sets the URL for the image to be used as a picture line symbol (when it is selected in the map) |
|
18 |
* @param imageFile, File |
|
19 |
* @throws IOException |
|
20 |
*/ |
|
21 |
public abstract void setSelImage(URL selImageUrl) throws IOException; |
|
22 |
|
|
23 |
/** |
|
24 |
* Sets the yscale for the picture line symbol |
|
25 |
* @param yScale |
|
26 |
*/ |
|
27 |
public abstract void setYScale(double yScale); |
|
28 |
|
|
29 |
/** |
|
30 |
* Sets the xscale for the picture line symbol |
|
31 |
* @param xScale |
|
32 |
*/ |
|
33 |
public abstract void setXScale(double xScale); |
|
34 |
|
|
35 |
/** |
|
36 |
* Returns the URL of the image that is used as a picture line symbol (when it |
|
37 |
* is selected in the map) |
|
38 |
* @return selimagePath,URL |
|
39 |
*/ |
|
40 |
public abstract URL getSelectedSource(); |
|
41 |
|
|
42 |
/** |
|
43 |
* Returns the URL of the image that is used as a picture line symbol |
|
44 |
* @return imagePath,URL |
|
45 |
*/ |
|
46 |
public abstract URL getSource(); |
|
47 |
|
|
48 |
/** |
|
49 |
* Returns the xscale for the picture line symbol |
|
50 |
* @param xScale |
|
51 |
*/ |
|
52 |
public abstract double getXScale(); |
|
53 |
|
|
54 |
/** |
|
55 |
* Returns the yscale for the picture line symbol |
|
56 |
* @param yScale |
|
57 |
*/ |
|
58 |
public abstract double getYScale(); |
|
59 |
|
|
60 |
} |
|
0 | 61 |
tags/v2_0_0_Build_2051/libraries/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 | ||
---|---|---|
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: ILineSymbol.java 20989 2008-05-28 11:05:57Z jmvivo $ |
|
45 |
* $Log$ |
|
46 |
* Revision 1.6 2007-08-14 11:17:31 jvidal |
|
47 |
* javadoc updated |
|
48 |
* |
|
49 |
* Revision 1.5 2007/08/08 12:03:13 jvidal |
|
50 |
* javadoc |
|
51 |
* |
|
52 |
* Revision 1.4 2007/05/08 08:47:39 jaume |
|
53 |
* *** empty log message *** |
|
54 |
* |
|
55 |
* Revision 1.3 2007/03/20 16:00:24 jaume |
|
56 |
* removed unuseful comments |
|
57 |
* |
|
58 |
* Revision 1.2 2007/03/09 11:20:56 jaume |
|
59 |
* Advanced symbology (start committing) |
|
60 |
* |
|
61 |
* Revision 1.1.2.5 2007/02/21 16:09:02 jaume |
|
62 |
* *** empty log message *** |
|
63 |
* |
|
64 |
* Revision 1.1.2.4 2007/02/15 16:23:44 jaume |
|
65 |
* *** empty log message *** |
|
66 |
* |
|
67 |
* Revision 1.1.2.3 2007/02/14 15:53:35 jaume |
|
68 |
* *** empty log message *** |
|
69 |
* |
|
70 |
* Revision 1.1.2.2 2007/02/13 16:19:19 jaume |
|
71 |
* graduated symbol legends (start commiting) |
|
72 |
* |
|
73 |
* Revision 1.1.2.1 2007/02/09 07:47:04 jaume |
|
74 |
* Isymbol moved |
|
75 |
* |
|
76 |
* |
|
77 |
*/ |
|
78 |
|
|
79 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line; |
|
80 |
|
|
81 |
import java.awt.Color; |
|
82 |
|
|
83 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
|
84 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
|
85 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle; |
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
/** |
|
90 |
* Interface for <b>line symbols</b>.It has the different methods to obtain or define |
|
91 |
* the attributes of a line such as color, style, width and alpha (transparency). |
|
92 |
* |
|
93 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
94 |
*/ |
|
95 |
public interface ILineSymbol extends ISymbol, CartographicSupport{ |
|
96 |
|
|
97 |
public static final String SYMBOL_NAME = "line"; |
|
98 |
|
|
99 |
/** |
|
100 |
* Returns the color of the line symbol |
|
101 |
* @return Color |
|
102 |
*/ |
|
103 |
public abstract Color getColor(); |
|
104 |
/** |
|
105 |
* Sets the color for a line symbol |
|
106 |
* @param color |
|
107 |
*/ |
|
108 |
|
|
109 |
public abstract void setLineColor(Color color); |
|
110 |
/** |
|
111 |
* Obtains the style of the line symbol. |
|
112 |
* @return ILineStyle, the style of the line symbol |
|
113 |
*/ |
|
114 |
public abstract ILineStyle getLineStyle(); |
|
115 |
/** |
|
116 |
* Defines the style of the line symbol to be used. |
|
117 |
* @param lineStyle |
|
118 |
*/ |
|
119 |
public abstract void setLineStyle(ILineStyle lineStyle); |
|
120 |
/** |
|
121 |
* Sets the width of the line symbol. |
|
122 |
* @param width, the width of the line |
|
123 |
*/ |
|
124 |
public abstract void setLineWidth(double width); |
|
125 |
/** |
|
126 |
* Returns the width of the line symbol |
|
127 |
* @return |
|
128 |
*/ |
|
129 |
|
|
130 |
public abstract double getLineWidth(); |
|
131 |
|
|
132 |
/** |
|
133 |
* Obtains the transparency of the line symbol |
|
134 |
* @return |
|
135 |
*/ |
|
136 |
public abstract int getAlpha(); |
|
137 |
|
|
138 |
/** |
|
139 |
* Defines the transparency of a line symbol. |
|
140 |
* @param outlineAlpha, the transparency |
|
141 |
*/ |
|
142 |
public abstract void setAlpha(int outlineAlpha); |
|
143 |
} |
|
0 | 144 |
tags/v2_0_0_Build_2051/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.api/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/styling/IAttrInTableLabelingStrategy.java | ||
---|---|---|
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling; |
|
2 |
|
|
3 |
import java.awt.Color; |
|
4 |
import java.awt.Font; |
|
5 |
|
|
6 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy; |
|
7 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
|
8 |
|
|
9 |
public interface IAttrInTableLabelingStrategy extends ILabelingStrategy, CartographicSupport{ |
|
10 |
|
|
11 |
public abstract String getRotationField(); |
|
12 |
|
|
13 |
public abstract String getTextField(); |
|
14 |
|
|
15 |
public abstract String getHeightField(); |
|
16 |
|
|
17 |
public abstract String getColorField(); |
|
18 |
|
|
19 |
public abstract void setTextField(String textFieldName); |
|
20 |
|
Also available in: Unified diff