Example usage for org.jfree.chart ExposedMouseWheelHandler ExposedMouseWheelHandler

List of usage examples for org.jfree.chart ExposedMouseWheelHandler ExposedMouseWheelHandler

Introduction

In this page you can find the example usage for org.jfree.chart ExposedMouseWheelHandler ExposedMouseWheelHandler.

Prototype

public ExposedMouseWheelHandler(ChartPanel chartPanel) 

Source Link

Usage

From source file:org.gumtree.vis.awt.JChartPanel.java

/**
 * @param chart/*from   w  w  w.  j a v a2  s.  c  o  m*/
 * @param width
 * @param height
 * @param minimumDrawWidth
 * @param minimumDrawHeight
 * @param maximumDrawWidth
 * @param maximumDrawHeight
 * @param useBuffer
 * @param properties
 * @param copy
 * @param save
 * @param print
 * @param zoom
 * @param tooltips
 */
public JChartPanel(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight,
        int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer, boolean properties, boolean copy,
        boolean save, boolean print, boolean zoom, boolean tooltips) {
    super(chart, width, height, minimumDrawWidth, minimumDrawHeight, maximumDrawWidth, maximumDrawHeight,
            useBuffer, properties, copy, save, print, zoom, tooltips);
    maskList = new LinkedHashMap<AbstractMask, Color>();
    shapeMap = new LinkedHashMap<Shape, Color>();
    domainMarkerMap = new LinkedHashMap<Line2D, Color>();
    rangeMarkerMap = new LinkedHashMap<Line2D, Color>();
    markerMap = new LinkedHashMap<Line2D, Color>();
    textContentMap = new LinkedHashMap<Rectangle2D, String>();
    addMouseWheelListener(new ExposedMouseWheelHandler(this));
}