Class JTSerialMouseListener

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byJTSerialMouseListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class JTSerialMouseListener
extends java.awt.event.MouseAdapter
implements java.awt.event.MouseListener

This class traps mouse events used by JTerm.

 SerialPort - serial connections for Java
 Copyright (C) 2005  Martin C Gregorie
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 

Contact Martin Gregorie at martin@gregorie.org.
Read the GNU General Public License.


Constructor Summary
JTSerialMouseListener(JTerm theApp, JTSerialConnect display, int type, int debug)
          The only constructor.
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been clicked on the component.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse pointer enters the component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse pointer exits the component.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been pressed on the component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been released on the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTSerialMouseListener

public JTSerialMouseListener(JTerm theApp,
                             JTSerialConnect display,
                             int type,
                             int debug)
The only constructor. The type supplied at creation is the only value to be returned by mouse events detected by this object.

Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked on the component. It signals that an action has been performed to wake JTerm up. The action to be taken is controlled by the type passed as the type when the JTSerialAction object was created and returned by the ActionEvent.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when the mouse button has been pressed on the component. This method does nothing except to trace its invocation when debugging is turned on.

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when the mouse button has been released on the component. This method does nothing except to trace its invocation when debugging is turned on.

Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse pointer enters the component. This method does nothing except to trace its invocation when debugging is turned on.

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse pointer exits the component. This method does nothing except to trace its invocation when debugging is turned on.

Specified by:
mouseExited in interface java.awt.event.MouseListener