java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListenerpublic class Zoomer
extends javax.swing.event.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 | Description |
|---|---|
Zoomer() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List |
getRegions() |
Returns the list of
ZoomRegion objects which defines the
behaviour of this object. |
void |
mouseDragged(java.awt.event.MouseEvent evt) |
|
void |
mouseMoved(java.awt.event.MouseEvent evt) |
|
void |
mousePressed(java.awt.event.MouseEvent evt) |
|
void |
mouseReleased(java.awt.event.MouseEvent evt) |
|
void |
setCursorComponent(java.awt.Component comp) |
Sest the component, if any, over which this object should modify
the cursor over.
|
void |
setRegions(java.util.List regionList) |
Sets the list of
ZoomRegion objects which defines the
behaviour of this object. |
mouseClicked, mouseEntered, mouseExited, mouseWheelMovedpublic java.util.List getRegions()
ZoomRegion objects which defines the
behaviour of this object.public void setRegions(java.util.List regionList)
ZoomRegion objects which defines the
behaviour of this object.regionList - list of zoom regionspublic void setCursorComponent(java.awt.Component comp)
comp - component over which the cursor can be changedpublic void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdapterpublic void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class java.awt.event.MouseAdapterpublic void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class java.awt.event.MouseAdapterpublic void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdapterCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.