Examples of intersects()


Examples of org.apache.pivot.wtk.Bounds.intersects()

            for (NodeView nodeView : nodeViews) {
                Bounds nodeViewBounds = nodeView.getBounds();

                // Only paint node views that intersect the current clip rectangle
                if (nodeViewBounds.intersects(paintBounds)) {
                    // Create a copy of the current graphics context and
                    // translate to the node view's coordinate system
                    Graphics2D nodeViewGraphics = (Graphics2D)graphics.create();
                    nodeViewGraphics.translate(nodeViewBounds.x, nodeViewBounds.y);
View Full Code Here

Examples of org.apache.pivot.wtk.Span.intersects()

                int documentOffset = getDocumentOffset();
                Span characterRange = new Span(documentOffset, documentOffset + getCharacterCount() - 1);

                if (selectionLength > 0
                    && characterRange.intersects(selectionRange)) {
                    // Determine the selection bounds
                    int width = getWidth();
                    int height = getHeight();

                    int x0;
View Full Code Here

Examples of org.apache.sis.geometry.AbstractEnvelope.intersects()

        assertTrue("outer.contains(inner)",   outer.contains  (inner, false));
        assertTrue("outer.intersects(inner)", outer.intersects(inner, true));
        assertTrue("outer.intersects(inner)", outer.intersects(inner, false));
        if (inner instanceof AbstractEnvelope) {
            final AbstractEnvelope ai = (AbstractEnvelope) inner;
            assertTrue ("inner.intersects(outer)", ai.intersects(outer, true));
            assertTrue ("inner.intersects(outer)", ai.intersects(outer, false));
            assertFalse("inner.contains(outer)",   ai.contains  (outer, true));
            assertFalse("inner.contains(outer)",   ai.contains  (outer, false));
        }
        final GeneralDirectPosition median = new GeneralDirectPosition(inner.getDimension());
View Full Code Here

Examples of org.eclipse.draw2d.IFigure.intersects()

    Rectangle clip = Rectangle.SINGLETON;
    List children = this.getChildren();
    for (int i = 0; i < children.size(); i++) {
      child = (IFigure) children.get(i);
      if (child.isVisible() && child.intersects(graphics.getClip(clip))) {
        // graphics.clipRect(child.getBounds());
        child.paint(graphics);
        graphics.restoreState();
      }
    }
View Full Code Here

Examples of org.eclipse.swt.graphics.Rectangle.intersects()

                 
                  Object[]  old = (Object[])it.next();
                 
                  Rectangle old_coords = (Rectangle)old[1];
                 
                  if ( old_coords.intersects( text_rect )){
                 
                    it.remove();
                  }
                }
               
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.Bbox.intersects()

  }

  private void updateTiles(Bbox bounds, final TileFunction<RasterTile> onUpdate) {
    Bbox panBounds = worldToPan(bounds);
    for (RasterTile tile : tiles.values()) {
      if (panBounds.intersects(tile.getBounds())) {
        onUpdate.execute(tile);
      }
    }
  }
View Full Code Here

Examples of org.geotools.geometry.GeneralEnvelope.intersects()

         * envelope
         */
        final List<RasterQueryInfo> queries;
        queries = findMatchingRasters(requestedEnvelope, requestedDim, overviewPolicy);
        if (queries.isEmpty()) {
            if (requestedEnvelope.intersects(getOriginalEnvelope(), true)) {
                /*
                 * No matching rasters but envelopes intersect, meaning it's a raster catalog with
                 * irregular coverage and the request lies on an area with no coverage
                 */
                ImageTypeSpecifier imageTypeSpecifier;
View Full Code Here

Examples of org.geotools.geometry.iso.coordinate.EnvelopeImpl.intersects()

    String toS = impl.toString();
    assertTrue(toS != null);
    assertTrue(toS.length() > 0);
   
    // test intersects
    assertTrue(impl.intersects(dp0));
    assertFalse(impl.intersects(dp1));
   
    // test get corners
    assertTrue(impl.getNECorner().equals(dp0));
    assertTrue(impl.getSWCorner().equals(dp4));
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.intersects()

                // get the next tile right of this one
                WMTTile rightNeighbour = movingTile.getRightNeighbour();
               
                // Check if the new tile is still part of the extent and
                // that we don't have the first tile again
                if (extent.intersects((Envelope) rightNeighbour.getExtent())
                        && !firstTileOfRow.equals(rightNeighbour)) {
                    tileList.put(rightNeighbour.getId(), addTileToList(rightNeighbour));
                   
                    WMTPlugin.debug("[WMTSource.cutExtentIntoTiles] Adding right neighbour: " //$NON-NLS-1$
                            rightNeighbour.getId(), Trace.REQUEST);
View Full Code Here

Examples of org.geowebcache.grid.BoundingBox.intersects()

            /*
             * layerGrid.getCoverageIntersections is not too robust, so we better check the
             * requested bounds intersect the layer bounds
             */
            final BoundingBox layerBounds = layerGrid.getCoverageBestFitBounds();
            if (!layerBounds.intersects(reqBounds)) {
                log.fine("Requested truncation bounds do not intersect cached layer bounds, ignoring truncate request");
                continue;
            }
            final BoundingBox intersection = BoundingBox.intersection(layerBounds, reqBounds);
            final long[][] coverageIntersections = layerGrid.getCoverageIntersections(intersection);
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.