Revision 30183
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/impl/DefaultMapContextManager.java | ||
---|---|---|
2 | 2 |
* |
3 | 3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
4 | 4 |
* of the Valencian Gobernment (CIT) |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* This program is free software; you can redistribute it and/or |
7 | 7 |
* modify it under the terms of the GNU General Public License |
8 | 8 |
* as published by the Free Software Foundation; either version 2 |
9 | 9 |
* of the License, or (at your option) any later version. |
10 |
*
|
|
10 |
* |
|
11 | 11 |
* This program is distributed in the hope that it will be useful, |
12 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 |
* GNU General Public License for more details. |
15 |
*
|
|
15 |
* |
|
16 | 16 |
* You should have received a copy of the GNU General Public License |
17 | 17 |
* along with this program; if not, write to the Free Software |
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 | 19 |
* MA 02110-1301, USA. |
20 |
*
|
|
20 |
* |
|
21 | 21 |
*/ |
22 | 22 |
|
23 | 23 |
/* |
... | ... | |
39 | 39 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
40 | 40 |
import org.gvsig.fmap.mapcontext.MapContextRuntimeException; |
41 | 41 |
import org.gvsig.fmap.mapcontext.layers.vectorial.GraphicLayer; |
42 |
import org.gvsig.fmap.mapcontext.layers.vectorial.impl.DefaultGraphicLayer; |
|
42 | 43 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
43 | 44 |
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend; |
44 | 45 |
import org.gvsig.fmap.mapcontext.rendering.legend.driver.ILegendReader; |
... | ... | |
50 | 51 |
|
51 | 52 |
/** |
52 | 53 |
* Default implementation of the {@link MapContextManager}. |
53 |
*
|
|
54 |
* |
|
54 | 55 |
* @author <a href="mailto:cordinyana@gvsig.org">C?sar Ordi?ana</a> |
55 | 56 |
*/ |
56 | 57 |
public class DefaultMapContextManager implements MapContextManager { |
... | ... | |
154 | 155 |
boolean defaultSymbolFillColorAleatory) { |
155 | 156 |
this.defaultSymbolFillColorAleatory = defaultSymbolFillColorAleatory; |
156 | 157 |
} |
157 |
|
|
158 |
|
|
158 | 159 |
public void resetDefaultSymbolFillColorAleatory() { |
159 |
defaultSymbolFillColorAleatory = false;
|
|
160 |
defaultSymbolFillColorAleatory = false; |
|
160 | 161 |
} |
161 | 162 |
|
162 | 163 |
public Font getDefaultSymbolFont() { |
... | ... | |
166 | 167 |
public void setDefaultSymbolFont(Font defaultSymbolFont) { |
167 | 168 |
this.defaultSymbolFont = defaultSymbolFont; |
168 | 169 |
} |
169 |
|
|
170 |
|
|
170 | 171 |
public void resetDefaultSymbolFont() { |
171 | 172 |
defaultSymbolFont = new Font("Serif", Font.PLAIN, 8); |
172 | 173 |
} |
... | ... | |
227 | 228 |
} |
228 | 229 |
|
229 | 230 |
public GraphicLayer createGraphicsLayer() { |
230 |
return null;
|
|
231 |
return new DefaultGraphicLayer();
|
|
231 | 232 |
} |
232 | 233 |
|
233 | 234 |
public String getDefaultVectorLegend() { |
Also available in: Unified diff