Package org.zkoss.openlayers.geometry

Source Code of org.zkoss.openlayers.geometry.Collection

/* Collection.java

{{IS_NOTE
  Purpose:
   
  Description:
   
  History:
    Jun 23, 2012 8:41:30 PM , Created by jumperchen
}}IS_NOTE

Copyright (C) 2012 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.openlayers.geometry;

import java.util.List;

import org.zkoss.openlayers.base.Projection;
import org.zkoss.openlayers.util.Function;

/**
* @author jumperchen
*
*/
public class Collection extends Geometry {
  private List<? extends Geometry> _components;
  public Collection(List<? extends Geometry> components) {
    _components = components;
  }

  public Collection transform(Projection source, Projection dest) {
    getNativeObject().invoke("transform", source, dest);
    return this;
  }

  @Override
  protected String getNativeClass() {
    return "OpenLayers.Geometry.Collection";
  }
 
  protected Function newNativeObject() {
    return new Function(getNativeClass(), _components);
  }

}
TOP

Related Classes of org.zkoss.openlayers.geometry.Collection

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.