Class TmfMouseWheelZoomProvider

java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfBaseProvider
org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfMouseWheelZoomProvider
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.MouseWheelListener, org.eclipse.swt.internal.SWTEventListener

public class TmfMouseWheelZoomProvider extends TmfBaseProvider implements org.eclipse.swt.events.MouseWheelListener
Class for providing zooming and scrolling based on mouse wheel. For zooming, it centers the zoom on mouse position. For scrolling, it will move the zoom window to another position while maintaining the window size. It also notifies the viewer about a change of range.
Since:
6.0
Author:
Bernd Hufmann
  • Constructor Details

    • TmfMouseWheelZoomProvider

      public TmfMouseWheelZoomProvider(ITmfChartTimeProvider tmfChartViewer)
      Standard constructor.
      Parameters:
      tmfChartViewer - The parent histogram object
  • Method Details

    • refresh

      public void refresh()
      Description copied from class: TmfBaseProvider
      Method to refresh the viewer. It will redraw the viewer.
      Overrides:
      refresh in class TmfBaseProvider
    • mouseScrolled

      public void mouseScrolled(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseScrolled in interface org.eclipse.swt.events.MouseWheelListener