public abstract class PointerHandler extends Object implements MouseListener, MouseMotionListener
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version Aug 13, 2014
Constructor and Description |
---|
PointerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent mouseEvent) |
void |
mouseMoved(MouseEvent mouseEvent) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
abstract void |
updateHint(double domainValue,
double rangeValue)
Called when the pointer is positioned inside the data area of the graph, or when it leaves the data area.
|
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent mouseEvent)
mouseMoved
in interface MouseMotionListener
public abstract void updateHint(double domainValue, double rangeValue)
domainValue
- double; the X-value (in domain units), or Double.NaN if the pointer is outside the data arearangeValue
- double; the Y-value (in domain units), or Double.NaN if the pointer is outside the data areapublic void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent mouseEvent)
mouseExited
in interface MouseListener
Copyright © 2014–2019 Delft University of Technology. All rights reserved.