Package org.wicketstuff.openlayers.js

Examples of org.wicketstuff.openlayers.js.Constructor


  /**
   * @see Value.contrib.gmap.api.GValue#getJSconstructor()
   */
  public String getJSconstructor() {
    return new Constructor("OpenLayers.Bounds").add(sw.getLng()).add(
        sw.getLat()).add(ne.getLng()).add(ne.getLat()).toJS();
  }
View Full Code Here


  {
    return h;
  }

  public String getJSconstructor() {
    Constructor constructor = new Constructor("OpenLayers.Size")
        .add(w).add(h);
    return constructor.toJS();
  }
View Full Code Here

   */
 
 
  protected String getJSconstructor(String javascriptTypeName, List<String>parameterList) {
   
    Constructor c = new Constructor(javascriptTypeName);
   
    for (String parameter : parameterList) {
     
      c.add(parameter);
     
    }
   
    return c.toJS();
  }
View Full Code Here

      transformation = ".transform(new OpenLayers.Projection(\""
          + map.getBusinessLogicProjection() + "\"), "
          + map.getJSinvokeNoLineEnd("map")
          + ".getProjectionObject())";
    }
    Constructor constructor = new Constructor("OpenLayers.Marker")
        .add(lonLat.getJSconstructor() + transformation);
    if (icon != null) {
      constructor.add(icon.getId());
    }

    return constructor.toJS();
  }
View Full Code Here

  }

  /**
   */
  public String getJSconstructor() {
    return new Constructor("OpenLayers.LonLat").add(getLng()).add(getLat())
        .toJS();
  }
View Full Code Here

    this.x = x;
    this.y = y;
  }
  protected String getJSconstructor() {
    if(size==null){
    Constructor constructor = new Constructor("OpenLayers.Pixel")
        .add(x).add(y);
    return constructor.toJS();
    }
    else{
      Constructor constructor = new Constructor("OpenLayers.Pixel")
      .add("-"+size.getId()+".w/2").add("-"+size.getId()+".h");
      return constructor.toJS();
     
    }
  }
View Full Code Here

    this.offset = offset;
    this.size = shadowSize;
  }

  protected String getJSconstructor() {
    Constructor constructor = new Constructor("OpenLayers.Icon").add("'"+url+"'")
        .add(size.getId()).add(offset.getId());
    return constructor.toJS();
  }
View Full Code Here

  }

  public String getJSconstructor()
  {

        String jsLatLong = new Constructor("OpenLayers.LonLat").add(getLng()).add(getLat()).toJS();

        if(!projection.equals(targetProjection)) {
            jsLatLong += ".transform(new OpenLayers.Projection(\"" + projection + "\"),"
                    + "new OpenLayers.Projection(\"" + targetProjection + "\"))";
        }
View Full Code Here

  protected String getJSconstructor()
  {
    if (size == null)
    {
      Constructor constructor = new Constructor("OpenLayers.Pixel").add(x).add(y);
      return constructor.toJS();
    }
    else
    {
      Constructor constructor = new Constructor("OpenLayers.Pixel").add(
        "-" + size.getId() + ".w/2").add("-" + size.getId() + ".h");
      return constructor.toJS();

    }
  }
View Full Code Here

    size = shadowSize;
  }

  protected String getJSconstructor()
  {
    Constructor constructor = new Constructor("OpenLayers.Icon").add("'" + url + "'")
      .add(size.getId())
      .add(offset.getId());
    return constructor.toJS();
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers.js.Constructor

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.