Example usage for org.jfree.chart.plot PiePlot handleMouseWheelRotation

List of usage examples for org.jfree.chart.plot PiePlot handleMouseWheelRotation

Introduction

In this page you can find the example usage for org.jfree.chart.plot PiePlot handleMouseWheelRotation.

Prototype

public void handleMouseWheelRotation(int rotateClicks) 

Source Link

Document

Handles a mouse wheel rotation (this method is intended for use by the MouseWheelHandler class).

Usage

From source file:de.hs.mannheim.modUro.controller.diagram.fx.interaction.ScrollHandlerFX.java

@Override
public void handleScroll(ChartCanvas canvas, ScrollEvent e) {
    JFreeChart chart = canvas.getChart();
    Plot plot = chart.getPlot();/*from www  .j  a v a  2 s.c om*/
    if (plot instanceof Zoomable) {
        Zoomable zoomable = (Zoomable) plot;
        handleZoomable(canvas, zoomable, e);
    } else if (plot instanceof PiePlot) {
        PiePlot pp = (PiePlot) plot;
        pp.handleMouseWheelRotation((int) e.getDeltaY());
    }
}