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, mouseWheelMovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExitedpublic 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 MouseListenermousePressed in class MouseAdapterpublic void mouseMoved(MouseEvent evt)
mouseMoved in interface MouseMotionListenermouseMoved in class MouseAdapterpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenermouseDragged in class MouseAdapterpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenermouseReleased in class MouseAdapterCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.