uk.ac.starlink.ttools.plot2
Class ZoomListener

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.ZoomListener

public abstract class ZoomListener
extends Object

Mouse and keyboard listener that handles zoom events.

Since:
13 Feb 2013
Author:
Mark Taylor

Constructor Summary
ZoomListener()
           
 
Method Summary
 void install(JComponent comp)
          Installs this listener to listen on a GUI component.
abstract  void zoom(int nZoom, Point point)
          Performs the actual zooming action, as caused by mouse events gathered by this listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomListener

public ZoomListener()
Method Detail

zoom

public abstract void zoom(int nZoom,
                          Point point)
Performs the actual zooming action, as caused by mouse events gathered by this listener.

Parameters:
nZoom - number of zoom steps; positive for zoom in, negative for zoom out
point - graphics position about which zoom has been requested

install

public void install(JComponent comp)
Installs this listener to listen on a GUI component.

Parameters:
comp - target component


Copyright © 2013 Central Laboratory of the Research Councils. All Rights Reserved.