|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
uk.ac.starlink.topcat.plot.Zoomer
public class Zoomer
Mouse listener which can manufacture zoom requests on the basis of
mouse gestures. The zones over which mouse gestures are gathered
from and over which graphical feedback is given is defined by a list
of 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 Summary | |
|---|---|
Zoomer()
Constructor. |
|
| Method Summary | |
|---|---|
List |
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 regionList)
Sets the list of ZoomRegion objects which defines the
behaviour of this object. |
| Methods inherited from class java.awt.event.MouseAdapter |
|---|
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseListener |
|---|
mouseClicked, mouseEntered, mouseExited |
| Constructor Detail |
|---|
public Zoomer()
| Method Detail |
|---|
public List getRegions()
ZoomRegion objects which defines the
behaviour of this object.
public void setRegions(List 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 MouseAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||