package ol.interaction;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import ol.Options;

/**
 * Defaults options for {@link Interaction#defaults(DefaultInteractionsOptions)}.
 * @author sbaumhekel
 */
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class DefaultInteractionsOptions implements Options {

    /**
     * Whether Alt-Shift-drag rotate is desired. Default is true.
     * @param altShiftDragRotate
     */
    @JsProperty
    public native void setAltShiftDragRotate(boolean altShiftDragRotate);

    /**
     * Zoom to the closest integer zoom level after the wheel/trackpad or pinch
     * gesture ends. Default is false.
     * @param constrainResolution
     */
    @JsProperty
    public native void setConstrainResolution(boolean constrainResolution);

    /**
     * Whether double click zoom is desired. Default is true.
     * @param doubleClickZoom
     */
    @JsProperty
    public native void setDoubleClickZoom(boolean doubleClickZoom);

    /**
     * Whether drag pan is desired. Default is true.
     * @param dragPan
     */
    @JsProperty
    public native void setDragPan(boolean dragPan);

    /**
     * Whether keyboard interaction is desired. Default is true.
     * @param keyboard
     */
    @JsProperty
    public native void setKeyboard(boolean keyboard);

    /**
     * Whether mousewheel zoom is desired. Default is true.
     * @param mouseWheelZoom
     */
    @JsProperty
    public native void setMouseWheelZoom(boolean mouseWheelZoom);

    /**
     * Whether pinch rotate is desired. Default is true.
     * @param pinchRotate
     */
    @JsProperty
    public native void setPinchRotate(boolean pinchRotate);

    /**
     * Whether pinch zoom is desired. Default is true.
     * @param pinchZoom
     */
    @JsProperty
    public native void setPinchZoom(boolean pinchZoom);

    /**
     * Whether Shift-drag zoom is desired. Default is true.
     * @param shiftDragZoom
     */
    @JsProperty
    public native void setShiftDragZoom(boolean shiftDragZoom);

    /**
     * Zoom delta.
     * @param zoomDelta
     */
    @JsProperty
    public native void setZoomDelta(int zoomDelta);

    /**
     * Zoom duration.
     * @param zoomDuration
     */
    @JsProperty
    public native void setZoomDuration(int zoomDuration);

}
@@ -1,8 +1,760 @@
+/*******************************************************************************%0A * Copyright 2014, 2018 gwt-ol3%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *******************************************************************************/%0A
 package 

Add license header