/*

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.apache.batik.dom.svg12;

import org.apache.batik.dom.events.DOMUIEvent;

import org.w3c.dom.views.AbstractView;

SVG 1.2 mouse wheel event.
Author:Cameron McCormack
Version:$Id: SVGOMWheelEvent.java 1733416 2016-03-03 07:07:13Z gadams $
/** * SVG 1.2 mouse wheel event. * * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a> * @version $Id: SVGOMWheelEvent.java 1733416 2016-03-03 07:07:13Z gadams $ */
public class SVGOMWheelEvent extends DOMUIEvent {
The number of clicks the mouse wheel has been moved.
/** * The number of clicks the mouse wheel has been moved. */
protected int wheelDelta;
Returns the number of mouse wheel clicks.
/** * Returns the number of mouse wheel clicks. */
public int getWheelDelta() { return wheelDelta; }
Initializes this SVGOMWheelEvent object.
Params:
  • typeArg – Specifies the event type.
  • canBubbleArg – Specifies whether or not the event can bubble.
  • cancelableArg – Specifies whether or not the event's default action can be prevented.
  • viewArg – Specifies the Event's AbstractView.
  • wheelDeltaArg – Specifices the number of clicks the mouse wheel has been moved.
/** * Initializes this SVGOMWheelEvent object. * @param typeArg Specifies the event type. * @param canBubbleArg Specifies whether or not the event can bubble. * @param cancelableArg Specifies whether or not the event's default action * can be prevented. * @param viewArg Specifies the <code>Event</code>'s * <code>AbstractView</code>. * @param wheelDeltaArg Specifices the number of clicks the mouse wheel has * been moved. */
public void initWheelEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int wheelDeltaArg) { initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, 0); wheelDelta = wheelDeltaArg; }
Initializes this KeyboardEvent object.
Params:
  • namespaceURIArg – Specifies the event namespace URI.
  • typeArg – Specifies the event type.
  • canBubbleArg – Specifies whether or not the event can bubble.
  • cancelableArg – Specifies whether or not the event's default action can be prevented.
  • viewArg – Specifies the Event's AbstractView.
  • wheelDeltaArg – Specifices the number of clicks the mouse wheel has been moved.
/** * Initializes this KeyboardEvent object. * @param namespaceURIArg Specifies the event namespace URI. * @param typeArg Specifies the event type. * @param canBubbleArg Specifies whether or not the event can bubble. * @param cancelableArg Specifies whether or not the event's default action * can be prevented. * @param viewArg Specifies the <code>Event</code>'s * <code>AbstractView</code>. * @param wheelDeltaArg Specifices the number of clicks the mouse wheel has * been moved. */
public void initWheelEventNS(String namespaceURIArg, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int wheelDeltaArg) { initUIEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg, viewArg, 0); wheelDelta = wheelDeltaArg; } }