Examples of centre()


Examples of ModalGUI.GUIWindow.centre()

    float windowHeight = SETTINGS.GUIDE_WINDOW_HEIGHT;

    GUIWindow window = new GUIWindow(0f, 0f, windowWidth, windowHeight,
        GLOBAL.gui);
    window.setLightboxed(true);
    window.centre();
    GLOBAL.gui.add(window);

    float posX = 100;
    float posY = 100;
    float spacingY = 80;
View Full Code Here

Examples of ModalGUI.GUIWindow.centre()

    float windowWidth = SETTINGS.GUIDE_WINDOW_WIDTH;
    float windowHeight = SETTINGS.GUIDE_WINDOW_HEIGHT;

    GUIWindow window = new GUIWindow(0f, 0f, windowWidth, windowHeight, gui);
    window.setLightboxed(true);
    window.centre();
    gui.add(window);

    float posX = 100;
    float posY = 100;
    float spacingY = 80;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

            reprojected = query.transform(map.getViewportModel().getCRS(), true);
        } catch (Exception e) {
            InfoPlugin.log("", e); //$NON-NLS-1$
            return null;
        }
        Point centre = map.getViewportModel().worldToPixel(reprojected.centre());

        Envelope sanebbox = map.getViewportModel().getBounds();
        ReferencedEnvelope bbox = new ReferencedEnvelope(sanebbox, query.getCoordinateReferenceSystem());
   
      Layer wmslayer;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

            MapGraphicPlugin.log("",e); //$NON-NLS-1$
        }

        Envelope bounds = context.getViewportModel().getBounds();
       
        Coordinate centerCoord = bounds.centre();
        gridSize = style.getGridSize();
        Coordinate topLeftCenterCoord = new Coordinate(centerCoord.x - gridSize[0]/2,
                                                       centerCoord.y + gridSize[1]/2);
        Coordinate topLeftMostCoord = new Coordinate(topLeftCenterCoord);
        while (topLeftMostCoord.x - gridSize[0] > bounds.getMinX()) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

            MapGraphicPlugin.log("",e); //$NON-NLS-1$
        }

        Envelope bounds = context.getViewportModel().getBounds();
       
        Coordinate centerCoord = bounds.centre();
        gridSize = style.getGridSize();
        Coordinate topLeftCenterCoord = new Coordinate(centerCoord.x - gridSize[0]/2,
                                                       centerCoord.y + gridSize[1]/2);
        Coordinate topLeftMostCoord = new Coordinate(topLeftCenterCoord);
        while (topLeftMostCoord.x - gridSize[0] > bounds.getMinX()) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

            MapGraphicPlugin.log("",e); //$NON-NLS-1$
        }

        Envelope bounds = context.getViewportModel().getBounds();
       
        Coordinate centerCoord = bounds.centre();
        gridSize = style.getGridSize();
        Coordinate topLeftCenterCoord = new Coordinate(centerCoord.x - gridSize[0]/2,
                                                       centerCoord.y + gridSize[1]/2);
        Coordinate topLeftMostCoord = new Coordinate(topLeftCenterCoord);
        while (topLeftMostCoord.x - gridSize[0] > bounds.getMinX()) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

            MapGraphicPlugin.log("",e); //$NON-NLS-1$
        }

        Envelope bounds = context.getViewportModel().getBounds();
       
        Coordinate centerCoord = bounds.centre();
        gridSize = style.getGridSize();
        Coordinate topLeftCenterCoord = new Coordinate(centerCoord.x - gridSize[0]/2,
                                                       centerCoord.y + gridSize[1]/2);
        Coordinate topLeftMostCoord = new Coordinate(topLeftCenterCoord);
        while (topLeftMostCoord.x - gridSize[0] > bounds.getMinX()) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

        }
        Envelope env2 = shell2.getEnvelopeInternal();
       
        Coordinate c0 = env0.centre();
        Coordinate c1 = env1.centre();
        Coordinate c2 = env2.centre();
       
        double[] dx = new double[]{c2.x - c1.x, c1.x - c0.x};
        double gap = bsp.extrusion_width + bsp.skirt_distance;
        double[] py = new double[]{c0.y + gap, c1.y + gap};
       
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

      regions.add(env);

    assertEquals(2, regions.size());

    Envelope envA = regions.get(0);
    assertEquals(-122.3023796081543, envA.centre().x,0.0001);
    assertEquals(47.664809318453564, envA.centre().y,0.0001);
    assertEquals(0.04496600971673814, envA.getHeight(),0.0001);
    assertEquals(0.066767981533431, envA.getWidth(),0.0001);
   
    Envelope envB = regions.get(1);
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.centre()

    assertEquals(2, regions.size());

    Envelope envA = regions.get(0);
    assertEquals(-122.3023796081543, envA.centre().x,0.0001);
    assertEquals(47.664809318453564, envA.centre().y,0.0001);
    assertEquals(0.04496600971673814, envA.getHeight(),0.0001);
    assertEquals(0.066767981533431, envA.getWidth(),0.0001);
   
    Envelope envB = regions.get(1);
    assertEquals(-122.38992691040039, envB.centre().x,0.0001);
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.