Package org.locationtech.udig.project

Examples of org.locationtech.udig.project.ILayer.refresh()


            pathLayer = (ILayer) added.get(0);           
        }
        if( !pathLayer.isVisible() ){
            map.sendCommandASync( new SetLayerVisibilityCommand(pathLayer, true) );
        }
        pathLayer.refresh(null);
    }

    private Graph buildFromMultiLineString( FeatureCollection<SimpleFeatureType, SimpleFeature> features, IProgressMonitor monitor ) {       
        //create a linear graph generate
        LineStringGraphGenerator lineStringGen = new LineStringGraphGenerator();
View Full Code Here


                                style.crsString = code;

                                blackboard.put(ActiveregionStyleContent.ID, style);

                                ILayer activeRegionMapGraphic = JGrassPlugin.getDefault().getActiveRegionMapGraphic();
                                activeRegionMapGraphic.refresh(null);

                            } catch (IOException e) {
                                e.printStackTrace();
                                String message = "Problems occurred while setting the new active region.";
                                ExceptionDetailsDialog
View Full Code Here

                style.rows = newProcessingRegion.getRows();
                style.cols = newProcessingRegion.getCols();

                blackboard.put(ProcessingRegionStyleContent.ID, style);

                processingRegionLayer.refresh(null);

                newRegionBounds = newProcessingRegion.getEnvelope();
                sendSelectionCommand(e, newRegionBounds);
            }
        }
View Full Code Here

            if ( path != null ) {
                edgeList.addAll( path.getEdges() );
            }
        }
        mapboard.put( "path", edgeList );
        layer.refresh( null );

        monitor.done();
        long end = System.nanoTime();
        System.out.println( Double.toString( ((end - start) / 1000) / 1000.0 ) + "ms" );
    }
View Full Code Here

                        style.rows = newActiveRegion.getRows();
                        style.cols = newActiveRegion.getCols();

                        blackboard.put(ActiveregionStyleContent.ID, style);

                        activeRegionLayer.refresh(null);
                    } catch (IOException e1) {
                        e1.printStackTrace();
                    }
                }
View Full Code Here

    public void op( Display display, Object target, IProgressMonitor monitor ) throws Exception {
        ILayer layer = (ILayer) target;
       
        layer.getStyleBlackboard().remove( ColorStyle.ID );
        layer.refresh(null);
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.