Class SWTMouseUtilities
java.lang.Object
org.jzy3d.chart.controllers.mouse.SWTMouseUtilities
Utility helpers mirroring
AWTMouseUtilities for SWT mouse events.
SWT button numbering: event.button 1 = left, 2 = middle, 3 = right. While dragging,
SWT does not re-populate event.button; the held buttons are reported in
event.stateMask via the SWT.BUTTON1/SWT.BUTTON3 bits.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDoubleClick(org.eclipse.swt.events.MouseEvent e) static booleanisLeftDown(org.eclipse.swt.events.MouseEvent e) static booleanisRightClick(org.eclipse.swt.events.MouseEvent e) static booleanisRightDown(org.eclipse.swt.events.MouseEvent e)
-
Constructor Details
-
SWTMouseUtilities
public SWTMouseUtilities()
-
-
Method Details
-
isDoubleClick
public static boolean isDoubleClick(org.eclipse.swt.events.MouseEvent e) -
isLeftDown
public static boolean isLeftDown(org.eclipse.swt.events.MouseEvent e) -
isRightDown
public static boolean isRightDown(org.eclipse.swt.events.MouseEvent e) -
isRightClick
public static boolean isRightClick(org.eclipse.swt.events.MouseEvent e)
-