pivot.wtk
Interface ContainerMouseListener


public interface ContainerMouseListener

Container mouse listener interface. Container mouse events are "tunneling" events that are fired as the event propagates down the component hierarchy.

Author:
gbrown

Method Summary
 boolean mouseDown(Container container, Mouse.Button button, int x, int y)
          Called when the mouse is pressed over a container.
 boolean mouseMove(Container container, int x, int y)
          Called when the mouse is moved over a container.
 boolean mouseUp(Container container, Mouse.Button button, int x, int y)
          Called when the mouse is released over a container.
 boolean mouseWheel(Container container, Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
          Called when the mouse wheel is scrolled over a container.
 

Method Detail

mouseMove

boolean mouseMove(Container container,
                  int x,
                  int y)
Called when the mouse is moved over a container.

Parameters:
container -
x -
y -
Returns:
true to consume the event; false to allow it to propagate.

mouseDown

boolean mouseDown(Container container,
                  Mouse.Button button,
                  int x,
                  int y)
Called when the mouse is pressed over a container.

Parameters:
container -
button -
x -
y -
Returns:
true to consume the event; false to allow it to propagate.

mouseUp

boolean mouseUp(Container container,
                Mouse.Button button,
                int x,
                int y)
Called when the mouse is released over a container.

Parameters:
container -
button -
x -
y -
Returns:
true to consume the event; false to allow it to propagate.

mouseWheel

boolean mouseWheel(Container container,
                   Mouse.ScrollType scrollType,
                   int scrollAmount,
                   int wheelRotation,
                   int x,
                   int y)
Called when the mouse wheel is scrolled over a container.

Parameters:
container -
scrollType -
scrollAmount -
wheelRotation -
x -
y -
Returns:
true to consume the event; false to allow it to propagate.