Class MouseUtils

java.lang.Object
org.openide.awt.MouseUtils

public class MouseUtils extends Object
A class that contains a set of utility classes and methods around mouse events and processing.
  • Constructor Details

    • MouseUtils

      public MouseUtils()
  • Method Details

    • isRightMouseButton

      @Deprecated public static boolean isRightMouseButton(MouseEvent e)
      Deprecated.
      Offers no advantages over the standard SwingUtilities.isRightMouseButton(java.awt.event.MouseEvent).
      Determines if the event is originated from the right mouse button
      Parameters:
      e - the MouseEvent
      Returns:
      true if the event is originated from the right mouse button, false otherwise
    • isLeftMouseButton

      @Deprecated public static boolean isLeftMouseButton(MouseEvent e)
      Deprecated.
      Offers no advantages over the standard SwingUtilities.isLeftMouseButton(java.awt.event.MouseEvent).
      Determines if the event is originated from a left mouse button
      Parameters:
      e - the MouseEvent
      Returns:
      true if the event is originated from the left mouse button, false otherwise
    • isDoubleClick

      public static boolean isDoubleClick(MouseEvent e)
      Returns true if parametr is a 'doubleclick event'
      Parameters:
      e - MouseEvent
      Returns:
      true if the event is a doubleclick