Examples of Bounds


Examples of org.geoscript.js.geom.Bounds

        return projection;
    }
   
    @JSGetter
    public Bounds getBounds() {
        Bounds bounds = null;
        Geometry geometry = getGeometry();
        if (geometry != null) {
            bounds = geometry.getBounds();
        }
        return bounds;
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.Bounds

        map.addMapMoveEndListener(new MapMoveEndListener() {

          @Override
          public void onMapMoveEnd(MapMoveEndEvent eventObject) {
            Bounds extent = map.getExtent();
            extent.transform(DEFAULT_PROJECTION, new Projection("EPSG:900913"));

            // set up autocomplete search box for this place
            AutocompleteType[] types = new AutocompleteType[2];
            types[0] = AutocompleteType.ESTABLISHMENT;
            types[1] = AutocompleteType.GEOCODE;

            AutocompleteOptions options = AutocompleteOptions.newInstance();
            options.setTypes(types);
            LatLng sw = LatLng.newInstance(extent.getLowerLeftX(), extent.getLowerLeftY());
            LatLng ne = LatLng.newInstance(extent.getUpperRightX(), extent.getUpperRightY());
            options.setBounds(LatLngBounds.newInstance(sw, ne));

            final Autocomplete autoComplete = Autocomplete.newInstance(locationSearchBox.getElement(), options);

            autoComplete.addPlaceChangeHandler(new PlaceChangeMapHandler() {
View Full Code Here

Examples of org.joshy.gfx.node.Bounds

        double x = Double.MAX_VALUE;
        double y = Double.MAX_VALUE;
        double x2 = Double.NEGATIVE_INFINITY;
        double y2 = Double.NEGATIVE_INFINITY;
        for(SNode n : items()) {
            Bounds b = n.getTransformedBounds();
            if(b == null) {
                u.p("warning: bounds null on" + n);
            }
            x  = Math.min(x,  b.getX());
            y  = Math.min(y,  b.getY());
            x2 = Math.max(x2, b.getX2());
            y2 = Math.max(y2, b.getY2());
        }
        return new Bounds(x,y,x2-x,y2-y);
    }
View Full Code Here

Examples of org.kabeja.dxf.Bounds

    public void addBoundaryEdge(DXFEntity edge) {
        edges.add(edge);
    }

    public Bounds getBounds() {
        Bounds bounds = new Bounds();

        // System.out.println("edges="+edges.size());
        if (edges.size() > 0) {
            Iterator<DXFEntity> i = edges.iterator();

            while (i.hasNext()) {
                DXFEntity entity = (DXFEntity) i.next();
                Bounds b = entity.getBounds();

                if (b.isValid()) {
                    bounds.addToBounds(b);
                }
            }

            return bounds;
View Full Code Here

Examples of org.omg.CORBA.Bounds

        throws Bounds
    {
        try {
            return (NamedValue) _namedValues.elementAt(index);
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new Bounds();
        }
    }
View Full Code Here

Examples of org.omg.CORBA.TypeCodePackage.Bounds

        {
            throw new BadKind();
        }
        if (index < 0 || index >= _member_name.length)
        {
            throw new Bounds();
        }
        return _member_name[index];
    }
View Full Code Here

Examples of org.openstreetmap.josm.data.Bounds

    /*
     * Converts from boxes to bounds
     */
    public static Bounds toBounds(Box bbox) {
        return new Bounds(fromFpi(bbox.y.min), fromFpi(bbox.x.min),
                fromFpi(bbox.y.max), fromFpi(bbox.x.max));
    }
View Full Code Here

Examples of org.pdfsam.console.business.dto.Bounds

   * validates the input bounds list ensuring that there is no intersections between the objects of the input list
   * @param bounds
   */
  public static void assertNotIntersectedBoundsList(List bounds) throws ValidationException {
    for (int i = 0; i < bounds.size(); i++) {
      Bounds victim = (Bounds) bounds.get(i);
      for (int j = i + 1; j < bounds.size(); j++) {
        Bounds current = (Bounds) bounds.get(j);
        if (victim.intersects(current)) {
          throw new ValidationException(ValidationException.ERR_BOUNDS_INTERSECTS, new String[] { victim.toString(),
              current.toString() });
        }
      }
    }
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.Bounds

    layout();
  }

  public void layout() {
    // start with center filling whole area
    Bounds center = new Bounds(getBounds());
    Bounds topBounds = top != null ? new Bounds(top.getPreferredBounds())
        : null;
    Bounds leftBounds = left != null ? new Bounds(left.getPreferredBounds())
        : null;
    Bounds rightBounds = right != null ? new Bounds(right.getPreferredBounds())
        : null;
    Bounds bottomBounds = bottom != null ? new Bounds(
        bottom.getPreferredBounds()) : null;

    // force center's left border to be after left component's right width
    if (leftBounds != null) {
      center.x = leftBounds.width;
View Full Code Here

Examples of org.wicketstuff.openlayers.api.Bounds

    //optionsLayer.put("type", "G_HYBRID_MAP");
    Layer layer = new GMap("GMap",
        GMAPS_KEY,"2", optionsLayer);
    layers.add(layer);
    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(12.91, 55.52),
        new LonLat(13.29, 55.73));
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    OpenLayersMap map = new OpenLayersMap("map", true, layers, mapOptions);
    map.setCenter(new LonLat(10.2, 48.9), 13);
    add(map);
  }
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.