Package org.locationtech.udig.project.render

Examples of org.locationtech.udig.project.render.IRenderManager


    }

    private static ReferencedEnvelope calculateBoundsFromScale(
            ReferencedEnvelope requestedBounds, double scaleDenominator, ILayer layer) {

        IRenderManager renderManager = layer.getMap().getRenderManager();
        if( renderManager==null ){
            // no render manager and therefore no scale to calculate.
            return requestedBounds;
        }
        IMapDisplay mapDisplay = renderManager.getMapDisplay();

        return ScaleUtils.calculateBoundsFromScale(scaleDenominator, mapDisplay
                .getDisplaySize(), mapDisplay.getDPI(), requestedBounds);
    }
View Full Code Here


    }

    private void removeMapMouseListener() {
        if (currentMapMouseListener != null) {
            final IMap activeMap = ApplicationGIS.getActiveMap();
            final IRenderManager renderManager = activeMap.getRenderManager();
            final ViewportPane viewportPane = (ViewportPane) renderManager.getMapDisplay();
            viewportPane.removeMouseListener(currentMapMouseListener);
        }
    }
View Full Code Here

    private void addMapMouseListener() {
        final IMap activeMap = ApplicationGIS.getActiveMap();
        if (activeMap == null) {
            return;
        }
        final IRenderManager renderManager = activeMap.getRenderManager();
        if (renderManager == null) {
            return;
        }
        final ViewportPane viewportPane = (ViewportPane) renderManager.getMapDisplay();
        if (viewportPane == null) {
            return;
        }

        currentMapMouseListener = new MapMouseListener(){
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.render.IRenderManager

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.