Examples of fixPoint()


Examples of org.locationtech.udig.project.ui.commands.TransformDrawCommand.fixPoint()

                command = transformDrawCommand;
                if (fixedPoint == null) {
                    fixedPoint = new Point(context.getViewportPane().getWidth() / 2, context
                            .getViewportPane().getHeight() / 2);
                }
                transformDrawCommand.fixPoint(fixedPoint);
                this.fixedPoint = context.pixelToWorld(fixedPoint.x, fixedPoint.y);
                targetZoom = context.calculateZoomLevel(previousZoom, zoomChange,this.fixedPoint,false, change != 0);
                if(Math.abs(targetZoom - previousZoom) > 0.0001) {
                  transformDrawCommand.zoom(targetZoom, targetZoom);
                  context.sendASyncCommand(transformDrawCommand);
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.