public class GlobalMouseAdapter extends Object implements MouseListener, MouseMotionListener
Constructor and Description |
---|
GlobalMouseAdapter(Component parent)
Creates new GlobalMouseAdapter
|
Modifier and Type | Method and Description |
---|---|
void |
attachTo(Component cmp,
boolean catchMotion) |
void |
detach(Component cmp) |
Component |
getParent() |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
protected void |
processEvent(MouseEvent e) |
void |
setParent(Component parent) |
protected Component parent
public GlobalMouseAdapter(Component parent)
public void attachTo(Component cmp, boolean catchMotion)
public Component getParent()
public void setParent(Component parent)
public void detach(Component cmp)
protected void processEvent(MouseEvent e)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.