Package org.locationtech.udig.project.internal.command.navigation

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


     * @see NavCommand
     * @see Envelope
     * @deprecated Please use new SetViewportBBoxCommand( newbbox );
     */
    public NavCommand createSetViewportBBoxCommand( Envelope newbbox ) {
        return new SetViewportBBoxCommand(newbbox);
    }
View Full Code Here


    }
    /**
     * @deprecated Please use new SetViewportBBoxCommand(bounds, crs)
     */
  public NavCommand createSetViewportBBoxCommand(Envelope bounds, CoordinateReferenceSystem crs) {
    return new SetViewportBBoxCommand(bounds, crs);
  }
View Full Code Here

                }
            }
            layersOnlyRasters.removeAll(toRemove2);
           
            //set bounds to match the other map
            SetViewportBBoxCommand cmdBbox = new SetViewportBBoxCommand(mapNoRasterLayers.getViewportModel().getBounds());
            mapOnlyRasterLayers.sendCommandSync(cmdBbox);
           
            if (layersNoRasters.size() > 0) {
                writeRasterLayersOnlyToDocument(mapOnlyRasterLayers, template.getMapBounds(), doc, page.getSize(), /*currentViewportScaleDenom*/mapNoRasterLayers.getViewportModel().getScaleDenominator());
            }
View Full Code Here

                }else{
                    updateMapCRS=store.getBoolean(UPDATE_MAP_CRS_KEY);
                }
                if( updateMapCRS ){
                    commandList.add(new ChangeCRSCommand(crs));
                    commandList.add(new SetViewportBBoxCommand(layer.getBounds(new NullProgressMonitor(), crs)));
                }
            }
            layer.getMap().sendCommandASync(commands);
        }
View Full Code Here

                    ProjectUIPlugin.log("exception getting bounds", e); //$NON-NLS-1$
                }
            }

            if (!bounds.isNull()) {
                map.sendCommandASync(new SetViewportBBoxCommand(bounds));
            }
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.command.navigation.SetViewportBBoxCommand

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.