/* 
 * Copyright 2016 iserge.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.ol3cesium.client.ol.geom;

import org.ol3cesium.client.ol.Coordinate;

/**
 * Abstract base class; only used for creating subclasses; do not instantiate 
 * in apps, as cannot be rendered.
 * @author Serge Silaev aka iSergio <s.serge.b@gmail.com>
 */
public class SimpleGeometry extends Geometry {
    protected SimpleGeometry() {
        //
    }
    
    // TODO
    //applyTransform(transformFn)
    
    /**
     * Return the first coordinate of the geometry.
     * @return First coordinate.
     */
    public native final Coordinate getFirstCoordinate() /*-{
        return this.getFirstCoordinate();
    }-*/;
    
    /**
     * Return the last coordinate of the geometry.
     * @return Last point.
     */
    public native final Coordinate getLastCoordinate() /*-{
        return this.getLastCoordinate();
    }-*/;
    
    /**
     * Return the layout of the geometry.
     * @return Layout.
     */
    public native final GeometryLayout getLayout() /*-{
        return this.getLayout();
    }-*/;
    
    /**
     * Translate the geometry. This modifies the geometry coordinates in place. 
     * If instead you want a new geometry, first clone() this geometry.
     * @param deltaX Delta X.
     * @param deltaY Delta Y.
     */
    public native final void translate(double deltaX, double deltaY) /*-{
        this.translate(deltaX, deltaY);
    }-*/;
}

@@ -1519,31 +1519,24 @@
 %0A    public 
-native 
 final Geomet
@@ -1543,16 +1543,214 @@
 ryLayout
+ getLayout() %7B%0A        return GeometryLayout.fromString(getLayoutNative());%0A    %7D%0A    %0A    /**%0A     * Return the layout of the geometry.%0A     * @return Layout.%0A     */%0A    public native final String
  getLayo
@@ -1751,16 +1751,22 @@
 etLayout
+Native
 () /*-%7B%0A

Add enumirations of geometry layout.