Package org.locationtech.udig.project.render.displayAdapter

Examples of org.locationtech.udig.project.render.displayAdapter.IMapDisplay


     * -->
     *
     * @generated NOT
     */
    public String getText(Object object) {
        IMapDisplay labelValue = ((RenderManager) object).getMapDisplay();
        String label = labelValue == null ? null : labelValue.toString();
        return label == null || label.length() == 0 ? "RenderManager" : label;
    }
View Full Code Here


        drawScaleDenom(context);
    }

    private void drawScaleDenom( MapGraphicContext context ) {
        double scaleDenom = context.getViewportModel().getScaleDenominator();
        IMapDisplay display = context.getMapDisplay();
        int dpi = display.getDPI(); // pixels per inch
        int displayHeight = display.getHeight();

        double i = 1 / (double) dpi; // invert to get in per pixel
        double pixelInMeters = i * .0254; // to meters per pixel

        double inMeters = scaleDenom * pixelInMeters;
 
View Full Code Here

    protected void setLeft( Rectangle rect ) {
        rect.x = LocationStyleContent.XPAD_LEFT;
    }

    protected boolean isCenter( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() / 2;
        x -= rect.width / 2;

        return rect.x == x;
    }
View Full Code Here

        return rect.x == x;
    }

    protected void setCenter( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() / 2;
        x -= rect.width / 2;

        rect.x = x;
    }
View Full Code Here

    protected void setTop( Rectangle rect ) {
        rect.y = LocationStyleContent.YPAD_TOP; //+ rect.height;
    }

    protected boolean isMiddle( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int y = display.getHeight() / 2;
        y -= rect.height / 2;

        return rect.y == y;
    }
View Full Code Here

    protected void setLeft( Rectangle rect ) {
        rect.x = LocationStyleContent.XPAD_LEFT;
    }

    protected boolean isCenter( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() / 2;
        x -= rect.width / 2;

        return rect.x == x;
    }
View Full Code Here

        return rect.y == y;
    }

    protected void setMiddle( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int y = display.getHeight() / 2;
        y -= rect.height / 2;

        rect.y = y;
    }
View Full Code Here

        return rect.x == x;
    }

    protected void setCenter( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() / 2;
        x -= rect.width / 2;

        rect.x = x;
    }
View Full Code Here

        rect.x = x;
    }

    protected boolean isRight( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() - LocationStyleContent.XPAD_RIGHT - rect.width;
        return rect.x == x;
    }
View Full Code Here

        int x = display.getWidth() - LocationStyleContent.XPAD_RIGHT - rect.width;
        return rect.x == x;
    }

    protected void setRight( Rectangle rect ) {
        IMapDisplay display = getMapDisplay();

        int x = display.getWidth() - LocationStyleContent.XPAD_RIGHT - rect.width;
        rect.x = x;
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.render.displayAdapter.IMapDisplay

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.