Examples of covers()


Examples of ae.sun.awt.geom.Crossings.covers()

        }
        if (!getCachedBounds().contains(x, y, w, h)) {
            return false;
        }
        Crossings c = Crossings.findCrossings(curves, x, y, x+w, y+h);
        return (c != null && c.covers(y, y+h));
    }

    /**
     * {@inheritDoc}
     * @since 1.2
View Full Code Here

Examples of ae.sun.awt.geom.Crossings.covers()

        if (npoints <= 0 || !getBoundingBox().intersects(x, y, w, h)) {
            return false;
        }

        Crossings cross = getCrossings(x, y, x+w, y+h);
        return (cross != null && cross.covers(y, y+h));
    }

    /**
     * {@inheritDoc}
     * @since 1.2
View Full Code Here

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

        CoordList list = new CoordList(smoothed.getCoordinates());
        assertTrue(list.containsAll(coords));
       
        Envelope lineEnv = line.getEnvelopeInternal();
        Envelope smoothEnv = smoothed.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(lineEnv));
    }

    @Test
    public void smoothLinearRing() {
        Coordinate[] coords = getPolyCoords();
View Full Code Here

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

        CoordList list = new CoordList(smoothed.getCoordinates());
        assertTrue(list.containsAll(coords));
       
        Envelope lineEnv = line.getEnvelopeInternal();
        Envelope smoothEnv = smoothed.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(lineEnv));
    }
   
    @Test
    public void smoothMultiLineString() {
        LineString[] lines = new LineString[3];
View Full Code Here

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

        assertTrue(smoothed instanceof MultiLineString);
        assertEquals(3, smoothed.getNumGeometries());
       
        Envelope mlsEnv = mls.getEnvelopeInternal();
        Envelope smoothEnv = smoothed.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(mlsEnv));
    }
   
    @Test
    public void smoothPolygon() {
        Coordinate[] coords = getPolyCoords();
View Full Code Here

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

        CoordList list = new CoordList(smoothed.getCoordinates());
        assertTrue(list.containsAll(coords));
       
        Envelope polyEnv = poly.getEnvelopeInternal();
        Envelope smoothEnv = smoothed.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(polyEnv));
    }
   
    @Test
    public void smoothMultiPolygon() {
        Polygon[] polys = new Polygon[3];
View Full Code Here

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

        assertTrue(smoothed instanceof MultiPolygon);
        assertEquals(3, smoothed.getNumGeometries());
       
        Envelope mpEnv = mp.getEnvelopeInternal();
        Envelope smoothEnv = smoothed.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(mpEnv));
    }
   
    @Test
    public void smoothGeometryCollection() {
        Geometry[] geoms = new Geometry[3];
View Full Code Here

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

        CoordList list = new CoordList(g.getCoordinates());
        assertTrue(list.containsAll(geoms[1].getCoordinates()));
       
        Envelope inEnv = geoms[1].getEnvelopeInternal();
        Envelope smoothEnv = g.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(inEnv));
       
        // Smoothed polygon
        g = smoothed.getGeometryN(2);
        assertTrue(g instanceof Polygon);
       
View Full Code Here

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

        list = new CoordList(g.getCoordinates());
        assertTrue(list.containsAll(geoms[2].getCoordinates()));
       
        inEnv = geoms[2].getEnvelopeInternal();
        smoothEnv = g.getEnvelopeInternal();
        assertTrue(smoothEnv.covers(inEnv));
    }
   
}
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter.covers()

        assertFalse(filter.contains("/tmp/foo"));
        assertFalse(filter.contains("/tmp/foo/bar"));
        assertFalse(filter.contains("/"));
        assertFalse(filter.contains("/bar"));

        assertTrue(filter.covers("/foo"));
        assertTrue(filter.covers("/tmp"));
        assertTrue(filter.covers("/tmp/foo"));
    }

    @Test
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.