public 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, mouseWheelMoved
public 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 class java.awt.event.MouseAdapter
public void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved
in class java.awt.event.MouseAdapter
public void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased
in class java.awt.event.MouseAdapter
Copyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.