Package org.gwtopenmaps.openlayers.client.util

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray


    public void commit(VectorFeature feature,
            CRUDOptions options) {
        VectorFeature[] features = new VectorFeature[1];
        features[0] = feature;
        WFSProtocolImpl.commit(getJSObject(),
                               (new JObjectArray(features)).getJSObject(),
                               options.getJSObject());
    }
View Full Code Here


   * By default, OpenLayers 2.7 adds Attribution, ArgParser, Navigation and PanZoom Controls.
   *
   * This method removes these default controls from the Map.
   */
  public void removeDefaultControls(){
    this.setControls(new JObjectArray(new JSObject[] {}));
  }
View Full Code Here

        super(jsObject);
    }

    public VectorFeature[] getFeatures() {
        JSObject out = ResponseImpl.getFeatures(this.getJSObject());
        JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(
                out.ensureOpaqueArray());
        int nr = jObjectArray.length();
        VectorFeature[] vfs = new VectorFeature[nr];
        for (int i = 0; i < nr; i++) {
            // get objects and narrow them to vector features
            vfs[i] = VectorFeature.narrowToVectorFeature(jObjectArray.get(i));
        }

        return vfs;
    }
View Full Code Here

    protected LineString(JSObject element) {
        super(element);
    }

    public LineString(Point[] pts) {
        this(LineStringImpl.create((new JObjectArray(pts)).getJSObject()));
    }
View Full Code Here

        JSObject[] jsObjects = new JSObject[targets.length];
        for (int i = 0; i < targets.length; i++) {
            jsObjects[i] = targets[i].getJSObject();
        }

        JObjectArray array = new JObjectArray(jsObjects);
        getJSObject().setProperty("targets", array.getJSObject());
    }
View Full Code Here

        JSObject[] jsObjects = new JSObject[targets.length];
        for (int i = 0; i < targets.length; i++) {
            jsObjects[i] = targets[i].getJSObject();
        }

        JObjectArray array = new JObjectArray(jsObjects);
        getJSObject().setProperty("targets", array.getJSObject());
    }
View Full Code Here

    protected Collection(JSObject element) {
        super(element);
    }

    public Collection(Geometry[] geometries) {
        this(CollectionImpl.create((new JObjectArray(geometries).getJSObject())));
    }
View Full Code Here

     *
     * @param geometries An array of geometries to add
     */
    public void addComponents(Geometry[] geometries) {
        CollectionImpl.addComponents(getJSObject(),
                new JObjectArray(geometries).getJSObject());
    }
View Full Code Here

     * Remove components from this geometry.
     *
     * @param geometries
     */
    public boolean removeComponents(Geometry[] geometries) {
        return CollectionImpl.removeComponents(getJSObject(), new JObjectArray(
                geometries).getJSObject());
    }
View Full Code Here

        super(element);
        // TODO Auto-generated constructor stub
    }

    public MultiLineString(LineString[] lines) {
        this(MultiLineStringImpl.create((new JObjectArray(lines)).getJSObject()));
    }
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.util.JObjectArray

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.