Revision 42651 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/impl/DefaultMapControlManager.java
DefaultMapControlManager.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import java.awt.Color; |
32 | 32 |
import java.util.ArrayList; |
33 |
import java.util.HashSet; |
|
34 | 33 |
import java.util.Iterator; |
35 | 34 |
import java.util.LinkedHashSet; |
36 | 35 |
import java.util.List; |
37 | 36 |
import java.util.Map; |
38 | 37 |
import java.util.Set; |
39 | 38 |
import java.util.prefs.Preferences; |
39 |
import javax.swing.tree.TreeModel; |
|
40 |
import org.gvsig.fmap.mapcontrol.LayersTreeModel; |
|
40 | 41 |
|
41 | 42 |
import org.slf4j.Logger; |
42 | 43 |
import org.slf4j.LoggerFactory; |
... | ... | |
45 | 46 |
import org.gvsig.fmap.mapcontext.MapContext; |
46 | 47 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
47 | 48 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
49 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
|
48 | 50 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
51 |
import org.gvsig.fmap.mapcontrol.CompoundLayersTreeModel; |
|
49 | 52 |
import org.gvsig.fmap.mapcontrol.MapControl; |
50 | 53 |
import org.gvsig.fmap.mapcontrol.MapControlCreationException; |
51 | 54 |
import org.gvsig.fmap.mapcontrol.MapControlCreationListener; |
... | ... | |
358 | 361 |
return new DefaultLayersDynObjectSetComponent(layerName2InfoByPoint, |
359 | 362 |
writable); |
360 | 363 |
} |
364 |
|
|
365 |
public TreeModel createLayersTreeModel(MapContext mapContext) { |
|
366 |
return new LayersTreeModel(mapContext.getLayers()); |
|
367 |
} |
|
368 |
|
|
369 |
public TreeModel createLayersTreeModel(FLayers layers) { |
|
370 |
return new LayersTreeModel(layers); |
|
371 |
} |
|
372 |
|
|
373 |
public TreeModel createCompoundLayersTreeModel() { |
|
374 |
return new CompoundLayersTreeModel(); |
|
375 |
} |
|
376 |
|
|
377 |
|
|
361 | 378 |
} |
Also available in: Unified diff