public class Zoomer extends MouseInputAdapter
ZoomRegion
objects held by instances of this class.
To use an instance of this class, you must install it as both a
MouseListener
and a
MouseMotionListener
on the relevant component.
Constructor and Description |
---|
Zoomer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<ZoomRegion> |
getRegions()
Returns the list of
ZoomRegion objects which defines the
behaviour of this object. |
void |
mouseDragged(MouseEvent evt) |
void |
mouseMoved(MouseEvent evt) |
void |
mousePressed(MouseEvent evt) |
void |
mouseReleased(MouseEvent evt) |
void |
setCursorComponent(Component comp)
Sest the component, if any, over which this object should modify
the cursor over.
|
void |
setRegions(List<ZoomRegion> regionList)
Sets the list of
ZoomRegion objects which defines the
behaviour of this object. |
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
public List<ZoomRegion> getRegions()
ZoomRegion
objects which defines the
behaviour of this object.public void setRegions(List<ZoomRegion> regionList)
ZoomRegion
objects which defines the
behaviour of this object.regionList
- list of zoom regionspublic void setCursorComponent(Component comp)
comp
- component over which the cursor can be changedpublic void mousePressed(MouseEvent evt)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseMoved(MouseEvent evt)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void mouseDragged(MouseEvent evt)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseAdapter
public void mouseReleased(MouseEvent evt)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.