public abstract class MouseAdapter extends java.lang.Object implements MouseListener
MouseListener
interface.
Classes that wish to deal with MouseEvent
s
which occur as mouse buttons are pressed and released can
extend this class and override only the methods which they are
interested in.
MouseListener
,
MouseEvent
Constructor and Description |
---|
MouseAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDoubleClick(MouseEvent e)
Sent when a mouse button is pressed twice within the
(operating system specified) double click period.
|
void |
mouseDown(MouseEvent e)
Sent when a mouse button is pressed.
|
void |
mouseUp(MouseEvent e)
Sent when a mouse button is released.
|
public void mouseDoubleClick(MouseEvent e)
mouseDoubleClick
in interface MouseListener
e
- an event containing information about the mouse double clickDisplay.getDoubleClickTime()
public void mouseDown(MouseEvent e)
mouseDown
in interface MouseListener
e
- an event containing information about the mouse button presspublic void mouseUp(MouseEvent e)
mouseUp
in interface MouseListener
e
- an event containing information about the mouse button release
Copyright (c) EclipseSource and others 2002, 2015.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0