Package org.locationtech.udig.mapgraphic.internal

Examples of org.locationtech.udig.mapgraphic.internal.MapGraphicService$MapGraphicServiceInfo


     *
     * @param graphic the MapGraphic to use as a search parameter
     * @return the IGeoResource for the provided graphic class
     */
    public static MapGraphicResource findResource( Class< ? extends MapGraphic> graphic ) {
        MapGraphicService service = getMapGraphicService();
        try {
            List<MapGraphicResource> resources = service.resources(new NullProgressMonitor());
            for( MapGraphicResource mapGraphicResource : resources ) {
                if (graphic.isAssignableFrom(mapGraphicResource.getGraphic().getClass())) {
                    return mapGraphicResource;
                }
            }
View Full Code Here


            hideGrid(map);
        }
    }

    private void addLayer( IMap map ) {
        MapGraphicService service=CatalogPlugin.getDefault().getLocalCatalog().getById(MapGraphicService.class, MapGraphicService.SERVICE_ID, ProgressManager.instance().get());
        try {
            List< ? extends IGeoResource> members = service.resources(ProgressManager.instance().get());
            for( IGeoResource resource : members ) {
                if( resource.canResolve(GridMapGraphic.class) ){
                    LayerFactory factory = map.getLayerFactory();
                    Layer newLayer = factory.createLayer(resource);
                    newLayer.getBlackboard().put(KEY, KEY);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.mapgraphic.internal.MapGraphicService$MapGraphicServiceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.