org.jagatoo.input.events
Class MouseEventPool

java.lang.Object
  extended by org.jagatoo.input.events.MouseEventPool

public final class MouseEventPool
extends java.lang.Object

A pool for MouseEvent instances.


Method Summary
static MouseButtonClickedEvent allocClicked()
           
static MouseButtonClickedEvent allocClicked(Mouse mouse, MouseButton button, long when, long lastWhen)
           
static MouseMovedEvent allocMoved()
           
static MouseMovedEvent allocMoved(Mouse mouse, int x, int y, int dx, int dy, long when, long lastWhen)
           
static MouseButtonPressedEvent allocPressed()
           
static MouseButtonPressedEvent allocPressed(Mouse mouse, MouseButton button, long when, long lastWhen)
           
static MouseButtonReleasedEvent allocReleased()
           
static MouseButtonReleasedEvent allocReleased(Mouse mouse, MouseButton button, long when, long lastWhen)
           
static MouseStoppedEvent allocStopped()
           
static MouseStoppedEvent allocStopped(Mouse mouse, int x, int y, long when, long lastWhen)
           
static MouseWheelEvent allocWheel()
           
static MouseWheelEvent allocWheel(Mouse mouse, MouseWheel wheel, int wheelDelta, boolean isPageMove, long when, long lastWhen)
           
static void cleanup(InputSourceWindow sourceWindow)
           
static void freeClicked(MouseButtonClickedEvent e)
           
static void freeMoved(MouseMovedEvent e)
           
static void freePressed(MouseButtonPressedEvent e)
           
static void freeReleased(MouseButtonReleasedEvent e)
           
static void freeStopped(MouseStoppedEvent e)
           
static void freeWheel(MouseWheelEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allocMoved

public static MouseMovedEvent allocMoved()

allocMoved

public static MouseMovedEvent allocMoved(Mouse mouse,
                                         int x,
                                         int y,
                                         int dx,
                                         int dy,
                                         long when,
                                         long lastWhen)

freeMoved

public static void freeMoved(MouseMovedEvent e)

allocPressed

public static MouseButtonPressedEvent allocPressed()

allocPressed

public static MouseButtonPressedEvent allocPressed(Mouse mouse,
                                                   MouseButton button,
                                                   long when,
                                                   long lastWhen)

freePressed

public static void freePressed(MouseButtonPressedEvent e)

allocReleased

public static MouseButtonReleasedEvent allocReleased()

allocReleased

public static MouseButtonReleasedEvent allocReleased(Mouse mouse,
                                                     MouseButton button,
                                                     long when,
                                                     long lastWhen)

freeReleased

public static void freeReleased(MouseButtonReleasedEvent e)

allocClicked

public static MouseButtonClickedEvent allocClicked()

allocClicked

public static MouseButtonClickedEvent allocClicked(Mouse mouse,
                                                   MouseButton button,
                                                   long when,
                                                   long lastWhen)

freeClicked

public static void freeClicked(MouseButtonClickedEvent e)

allocWheel

public static MouseWheelEvent allocWheel()

allocWheel

public static MouseWheelEvent allocWheel(Mouse mouse,
                                         MouseWheel wheel,
                                         int wheelDelta,
                                         boolean isPageMove,
                                         long when,
                                         long lastWhen)

freeWheel

public static void freeWheel(MouseWheelEvent e)

allocStopped

public static MouseStoppedEvent allocStopped()

allocStopped

public static MouseStoppedEvent allocStopped(Mouse mouse,
                                             int x,
                                             int y,
                                             long when,
                                             long lastWhen)

freeStopped

public static void freeStopped(MouseStoppedEvent e)

cleanup

public static void cleanup(InputSourceWindow sourceWindow)