Example usage for java.awt.event MouseWheelEvent getPreciseWheelRotation

List of usage examples for java.awt.event MouseWheelEvent getPreciseWheelRotation

Introduction

In this page you can find the example usage for java.awt.event MouseWheelEvent getPreciseWheelRotation.

Prototype

public double getPreciseWheelRotation() 

Source Link

Document

Returns the number of "clicks" the mouse wheel was rotated, as a double.

Usage

From source file:Main.java

public void mouseWheelMoved(MouseWheelEvent e) {
    double rotation = e.getPreciseWheelRotation();
    System.out.println(rotation);
}

From source file:Test.java

public void mouseWheelMoved(MouseWheelEvent e) {
    System.out.println("" + e.getPreciseWheelRotation() + " - " + e.getWheelRotation());
}