org.jscience.chemistry.gui.extended.jviewer
Class EvntHandler

java.lang.Object
  extended by org.jscience.chemistry.gui.extended.jviewer.EvntHandler
All Implemented Interfaces:
IEvntHandler

public class EvntHandler
extends java.lang.Object
implements IEvntHandler

An implementation of a JViewer's event handler interface which allows the contents of one or more JViewers to be manipulated in response to mouse movements.

See Also:
IEvntHandler

Field Summary
protected  int prevX
          DOCUMENT ME!
protected  int prevY
          DOCUMENT ME!
protected  java.util.Vector viewers
          DOCUMENT ME!
 
Constructor Summary
EvntHandler()
          Default constructor.
EvntHandler(JViewer v)
          Convenience constructor.
 
Method Summary
 void addJViewer(JViewer v)
          Add another JViewer to the list of JViewers manipulated by this event handler.
 boolean handleEvnt(java.awt.Event e)
          The event handler for all known JViewers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewers

protected java.util.Vector viewers
DOCUMENT ME!


prevX

protected int prevX
DOCUMENT ME!


prevY

protected int prevY
DOCUMENT ME!

Constructor Detail

EvntHandler

public EvntHandler()
Default constructor.


EvntHandler

public EvntHandler(JViewer v)
Convenience constructor. Useful for applications requiring one JViewer.

Parameters:
v - a JViewer whose contents will be manipulated by this event handler.
Method Detail

addJViewer

public void addJViewer(JViewer v)
Add another JViewer to the list of JViewers manipulated by this event handler.

Parameters:
v - a JViewer whose contents will be manipulated by this event handler.

handleEvnt

public boolean handleEvnt(java.awt.Event e)
The event handler for all known JViewers.

Specified by:
handleEvnt in interface IEvntHandler
Parameters:
e - a mouse event
Returns:
DOCUMENT ME!