All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.awt.event.MouseWheelEvent Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.awt.event;

import java.awt.*;
import java.lang.annotation.Native;

public class MouseWheelEvent extends MouseEvent {
	public static final int WHEEL_UNIT_SCROLL = 0;
	public static final int WHEEL_BLOCK_SCROLL = 1;

	int scrollType;
	int scrollAmount;
	int wheelRotation;
	double preciseWheelRotation;

	public MouseWheelEvent (Component source, int id, long when, int modifiers,
							int x, int y, int clickCount, boolean popupTrigger,
							int scrollType, int scrollAmount, int wheelRotation) {

		this(source, id, when, modifiers, x, y, 0, 0, clickCount,
			popupTrigger, scrollType, scrollAmount, wheelRotation);
	}

	public MouseWheelEvent (Component source, int id, long when, int modifiers,
							int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger,
							int scrollType, int scrollAmount, int wheelRotation) {

		this(source, id, when, modifiers, x, y, xAbs, yAbs, clickCount, popupTrigger,
			scrollType, scrollAmount, wheelRotation, wheelRotation);

	}

	public MouseWheelEvent (Component source, int id, long when, int modifiers,
							int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger,
							int scrollType, int scrollAmount, int wheelRotation, double preciseWheelRotation) {

		super(source, id, when, modifiers, x, y, xAbs, yAbs, clickCount,
			popupTrigger, MouseEvent.NOBUTTON);

		this.scrollType = scrollType;
		this.scrollAmount = scrollAmount;
		this.wheelRotation = wheelRotation;
		this.preciseWheelRotation = preciseWheelRotation;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy