Example usage for javafx.scene.input RotateEvent getTotalAngle

List of usage examples for javafx.scene.input RotateEvent getTotalAngle

Introduction

In this page you can find the example usage for javafx.scene.input RotateEvent getTotalAngle.

Prototype

public double getTotalAngle() 

Source Link

Document

Gets the cumulative rotation angle of this gesture.

Usage

From source file:net.rptools.tokentool.controller.TokenTool_Controller.java

@FXML
void compositeTokenPane_OnRotate(RotateEvent event) {
    log.info("isDirect(): " + event.isDirect());
    log.info("getTotalAngle" + event.getTotalAngle());

    double r = portraitImageView.getRotate() + (event.getAngle() * 0.75);
    if (r < -360d || r > 360d)
        r = 0d;//from  w ww  . j a  v a  2 s .  co m

    portraitImageView.setRotate(r);
    event.consume();
}