Class MouseEventGenerator


  • public class MouseEventGenerator
    extends java.lang.Object
    Utility class to generate a MouseEvent for the given parameters. Automatically generates necessary modifiers Generally speaking should not be used by scripters but is available if they want to make custom implementations of events.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.event.MouseEvent generateClicked​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateClicked​(java.awt.Point p, int button)  
      static java.awt.event.MouseEvent generateClicked​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateDragged​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateDragged​(java.awt.Point p)  
      static java.awt.event.MouseEvent generateDragged​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateEntered​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateEntered​(java.awt.Point p)  
      static java.awt.event.MouseEvent generateEntered​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateExited​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateExited​(java.awt.Point p)  
      static java.awt.event.MouseEvent generateExited​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateMoved​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateMoved​(java.awt.Point p)  
      static java.awt.event.MouseEvent generateMoved​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generatePressed​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generatePressed​(java.awt.Point p, int button)  
      static java.awt.event.MouseEvent generatePressed​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateReleased​(int x, int y, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateReleased​(java.awt.Point p, int button)  
      static java.awt.event.MouseEvent generateReleased​(java.awt.Point p, int clickCount, boolean popupTrigger, int button)  
      static java.awt.event.MouseEvent generateWheel​(int x, int y, int rotation)  
      static java.awt.event.MouseEvent generateWheel​(java.awt.Point p, int rotation)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MouseEventGenerator

        public MouseEventGenerator()
    • Method Detail

      • generateMoved

        public static java.awt.event.MouseEvent generateMoved​(java.awt.Point p)
      • generateMoved

        public static java.awt.event.MouseEvent generateMoved​(java.awt.Point p,
                                                              int clickCount,
                                                              boolean popupTrigger,
                                                              int button)
      • generateMoved

        public static java.awt.event.MouseEvent generateMoved​(int x,
                                                              int y,
                                                              int clickCount,
                                                              boolean popupTrigger,
                                                              int button)
      • generateEntered

        public static java.awt.event.MouseEvent generateEntered​(java.awt.Point p)
      • generateEntered

        public static java.awt.event.MouseEvent generateEntered​(java.awt.Point p,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateEntered

        public static java.awt.event.MouseEvent generateEntered​(int x,
                                                                int y,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateDragged

        public static java.awt.event.MouseEvent generateDragged​(java.awt.Point p)
      • generateDragged

        public static java.awt.event.MouseEvent generateDragged​(java.awt.Point p,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateDragged

        public static java.awt.event.MouseEvent generateDragged​(int x,
                                                                int y,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateExited

        public static java.awt.event.MouseEvent generateExited​(java.awt.Point p)
      • generateExited

        public static java.awt.event.MouseEvent generateExited​(java.awt.Point p,
                                                               int clickCount,
                                                               boolean popupTrigger,
                                                               int button)
      • generateExited

        public static java.awt.event.MouseEvent generateExited​(int x,
                                                               int y,
                                                               int clickCount,
                                                               boolean popupTrigger,
                                                               int button)
      • generatePressed

        public static java.awt.event.MouseEvent generatePressed​(java.awt.Point p,
                                                                int button)
      • generatePressed

        public static java.awt.event.MouseEvent generatePressed​(java.awt.Point p,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generatePressed

        public static java.awt.event.MouseEvent generatePressed​(int x,
                                                                int y,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateReleased

        public static java.awt.event.MouseEvent generateReleased​(java.awt.Point p,
                                                                 int button)
      • generateReleased

        public static java.awt.event.MouseEvent generateReleased​(java.awt.Point p,
                                                                 int clickCount,
                                                                 boolean popupTrigger,
                                                                 int button)
      • generateReleased

        public static java.awt.event.MouseEvent generateReleased​(int x,
                                                                 int y,
                                                                 int clickCount,
                                                                 boolean popupTrigger,
                                                                 int button)
      • generateClicked

        public static java.awt.event.MouseEvent generateClicked​(java.awt.Point p,
                                                                int button)
      • generateClicked

        public static java.awt.event.MouseEvent generateClicked​(java.awt.Point p,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateClicked

        public static java.awt.event.MouseEvent generateClicked​(int x,
                                                                int y,
                                                                int clickCount,
                                                                boolean popupTrigger,
                                                                int button)
      • generateWheel

        public static java.awt.event.MouseEvent generateWheel​(java.awt.Point p,
                                                              int rotation)
      • generateWheel

        public static java.awt.event.MouseEvent generateWheel​(int x,
                                                              int y,
                                                              int rotation)