Examples of PanCommand


Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

     * @param ypixels The amount, in pixels, to pan in the y direction
     * @return a new PanCommand object
     * @see NavCommand
     */
    public NavCommand createPanCommandUsingScreenCoords( int xpixels, int ypixels ) {
        return new PanCommand(xpixels, ypixels);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

     * @param y The amount, in world coordinates, to pan in the y direction
     * @return a new PanCommand object
     * @see NavCommand
     */
    public NavCommand createPanCommandUsingWorldCoords( double x, double y ) {
        return new PanCommand(x, y);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

     * @return a new PanCommand object
     * @see NavCommand
     * @deprecated Please use new PanCommand(xpixels, ypixels)
     */
    public NavCommand createPanCommandUsingScreenCoords( int xpixels, int ypixels ) {
        return new PanCommand(xpixels, ypixels);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

     * @return a new PanCommand object
     * @see NavCommand
     * @deprecated Please use new PanCommand(x, y)
     */
    public NavCommand createPanCommandUsingWorldCoords( double x, double y ) {
        return new PanCommand(x, y);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

         */
        public void mouseReleased( MapMouseEvent e ) {
            if (dragging) {
                ((ViewportPane) context.getMapDisplay()).enableDrawCommands(true);
                Point end = e.getPoint();
                NavCommand finalPan = new PanCommand((start.x - end.x), (start.y - end.y));

                // clear any events before we try to pan. This dramatically reduces the number
                // of images drawn to the screen in the wrong spot
                ((ViewportPane) getContext().getMapDisplay()).update();

View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

     */
    public void mouseReleased(MapMouseEvent e) {
        if (dragging) {
          ((ViewportPane)context.getMapDisplay()).enableDrawCommands(true);
            Point end=e.getPoint();
            NavCommand finalPan = new PanCommand((start.x-end.x), (start.y-end.y));

            //clear any events before we try to pan.  This dramatically reduces the number
            //of images drawn to the screen in the wrong spot
            ((ViewportPane) getContext().getMapDisplay()).update();
           
View Full Code Here

Examples of org.locationtech.udig.project.internal.command.navigation.PanCommand

  protected synchronized void performChange() {
        double zoom = Math.abs(Math.pow(FACTOR, previousZoom));
        ArrayList<NavCommand> commands=new ArrayList<NavCommand>();
        if( horizontal!=0 || vertical!=0 ){
            commands.add(
                    new PanCommand((horizontal*-PAN_AMOUNT), (vertical*-PAN_AMOUNT)));
        }
        if( zoom>0.00000001 ){
          double targetZoom = context.calculateZoomLevel(1,previousZoom, fixedPoint, false, zoomAmount != 0);
            ZoomCommand zoomCommand = new ZoomCommand(previousZoom);
            zoomCommand.setFixedPoint(fixedPoint);
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.