root / branches / v2_0_0_prep / libFMap_mapcontext / src / org / gvsig / fmap / mapcontext / rendering / symbols / AbstractSymbol.java @ 21200
History | View | Annotate | Download (3.51 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: AbstractSymbol.java 20989 2008-05-28 11:05:57Z jmvivo $
|
45 |
* $Log$
|
46 |
* Revision 1.8 2007-09-17 09:33:47 jaume
|
47 |
* some multishapedsymbol bugs fixed
|
48 |
*
|
49 |
* Revision 1.7 2007/08/13 11:36:50 jvidal
|
50 |
* javadoc
|
51 |
*
|
52 |
* Revision 1.6 2007/07/18 06:54:34 jaume
|
53 |
* continuing with cartographic support
|
54 |
*
|
55 |
* Revision 1.5 2007/05/22 10:05:31 jaume
|
56 |
* *** empty log message ***
|
57 |
*
|
58 |
* Revision 1.4 2007/03/26 14:24:13 jaume
|
59 |
* implemented Print
|
60 |
*
|
61 |
* Revision 1.3 2007/03/09 11:20:56 jaume
|
62 |
* Advanced symbology (start committing)
|
63 |
*
|
64 |
* Revision 1.2.2.2 2007/02/15 16:23:44 jaume
|
65 |
* *** empty log message ***
|
66 |
*
|
67 |
* Revision 1.2.2.1 2007/02/09 07:47:04 jaume
|
68 |
* Isymbol moved
|
69 |
*
|
70 |
* Revision 1.2 2007/01/24 17:58:22 jaume
|
71 |
* new features and architecture error fixes
|
72 |
*
|
73 |
* Revision 1.1 2007/01/10 16:31:36 jaume
|
74 |
* *** empty log message ***
|
75 |
*
|
76 |
*
|
77 |
*/
|
78 |
package org.gvsig.fmap.mapcontext.rendering.symbols; |
79 |
|
80 |
|
81 |
/**
|
82 |
* Abstract class that implements the interface the interface for symbols.It is
|
83 |
* considered as the father of all XXXSymbols and will implement all the methods that
|
84 |
* these classes had not developed (and correspond with one of the methods of AbstractSymbol class)
|
85 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
86 |
*/
|
87 |
public abstract class AbstractSymbol implements ISymbol, CartographicSupport{ |
88 |
private String desc; |
89 |
private int unit = CartographicSupportToolkit.DefaultMeasureUnit; |
90 |
private int referenceSystem = CartographicSupportToolkit.DefaultReferenceSystem; |
91 |
|
92 |
private boolean isShapeVisible = true; |
93 |
|
94 |
public final void setDescription(String desc) { |
95 |
this.desc = desc;
|
96 |
} |
97 |
|
98 |
public final String getDescription() { |
99 |
return desc;
|
100 |
} |
101 |
|
102 |
/**
|
103 |
* @return
|
104 |
* @uml.property name="isShapeVisible"
|
105 |
*/
|
106 |
public final boolean isShapeVisible() { |
107 |
return isShapeVisible;
|
108 |
} |
109 |
|
110 |
/**
|
111 |
* Sets this symbol to visible
|
112 |
* @param isShapeVisible
|
113 |
*/
|
114 |
public final void setIsShapeVisible(boolean isShapeVisible) { |
115 |
this.isShapeVisible = isShapeVisible;
|
116 |
} |
117 |
|
118 |
public void setUnit(int unitIndex) { |
119 |
this.unit = unitIndex;
|
120 |
} |
121 |
|
122 |
public int getUnit() { |
123 |
return this.unit; |
124 |
} |
125 |
|
126 |
public int getReferenceSystem() { |
127 |
return this.referenceSystem; |
128 |
} |
129 |
|
130 |
public void setReferenceSystem(int system) { |
131 |
this.referenceSystem = system;
|
132 |
|
133 |
} |
134 |
|
135 |
|
136 |
} |