Package org.locationtech.udig.project

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


           
            if (editBlackBoard == null) {

                MathTransform layerToMapTransform;
                try {
                    layerToMapTransform = layer.layerToMapTransform();
                } catch (IOException e) {
                    EditPlugin.log("", e); //$NON-NLS-1$
                    layerToMapTransform = IDENTITY;
                }
                editBlackBoard = new EditBlackboard(context.getMapDisplay().getWidth(), context
View Full Code Here


        ILayer editLayer = handler.getEditLayer();
        FeatureSource<SimpleFeatureType, SimpleFeature> source = editLayer.getResource(FeatureSource.class, new NullProgressMonitor());
        SimpleFeature feature = source.getFeatures().features().next();
        Coordinate coord = ((Geometry) feature.getDefaultGeometry()).getCoordinates()[1];
        Coordinate t = JTS.transform(coord, new Coordinate(), editLayer.layerToMapTransform());
        java.awt.Point pointOnScreen = handler.getContext().worldToPixel(t);
        handler.getMouseTracker().setDragStarted(Point.valueOf(30,20));
        event = new MapMouseEvent( DISPLAY, pointOnScreen.x+5,pointOnScreen.y,NONE,BUTTON1, BUTTON1 );
        mode.getCommand(handler, event, EventType.DRAGGED);
        handler.handleEvent(event, EventType.RELEASED);
View Full Code Here

                            // the same assumption for NULL envelope.
                            manager.refresh(notifier, null);
                        }
                        else{
                          try {                               
                              MathTransform layerToMapTransform = notifier.layerToMapTransform();
                              Envelope mapDelta =new Envelope();
                              if( layerToMapTransform.isIdentity() ){
                                mapDelta = delta;
                              }
                              else {
View Full Code Here

                            //TODO: can we do a soft refresh here?
                            manager.refresh(notifier, null);
                        }
                        else{
                            try {                               
                                MathTransform layerToMapTransform = notifier.layerToMapTransform();
                                Envelope mapDelta =new Envelope();
                                if( layerToMapTransform.isIdentity() ){
                                    mapDelta = delta;
                                }
                                else {
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.