Clover coverage report - Maven Clover report
Coverage timestamp: Thu Oct 11 2007 08:41:48 CEST
file stats: LOC: 138   Methods: 11
NCLOC: 38   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Tool.java - - 9.1% 9.1%
coverage coverage
 1    /*
 2    * Copyright (C) 2007 Eric MIGNOT - mignots.eric@free.fr
 3    *
 4    * This library is free software; you can redistribute it and/or
 5    * modify it under the terms of the GNU Lesser General Public
 6    * License as published by the Free Software Foundation; either
 7    * version 2.1 of the License, or (at your option) any later version.
 8    *
 9    * This library is distributed in the hope that it will be useful,
 10    * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 12    * Lesser General Public License for more details.
 13    *
 14    * You should have received a copy of the GNU Lesser General Public
 15    * License along with this library; if not, write to the Free Software
 16    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 17    */
 18   
 19    package org.ericmignot.modeler.util.graphic;
 20   
 21    import java.awt.event.*;
 22   
 23    /**
 24    * Abstract mouse and mouse motion listener that propose a
 25    * mechanisum to deal with event consumation
 26    */
 27    public abstract class Tool implements MouseListener, MouseMotionListener, KeyListener
 28    {
 29   
 30   
 31  90 public Tool()
 32    {
 33   
 34    }
 35   
 36   
 37   
 38    /**
 39    * Invoked when the mouse button has been clicked (pressed
 40    * and released) on a component.
 41    */
 42  0 public void mouseClicked(MouseEvent e)
 43    {
 44   
 45    }
 46   
 47   
 48    /**
 49    * Invoked when a mouse button has been pressed on a component.
 50    */
 51  0 public void mousePressed(MouseEvent e)
 52    {
 53   
 54    }
 55   
 56   
 57   
 58   
 59   
 60    /**
 61    * Invoked when a mouse button has been released on a component.
 62    */
 63  0 public void mouseReleased(MouseEvent e)
 64    {
 65   
 66    }
 67   
 68   
 69    /**
 70    * Invoked when the mouse enters a component.
 71    */
 72  0 public void mouseEntered(MouseEvent e)
 73    {
 74   
 75    }
 76   
 77    /**
 78    * Invoked when the mouse exits a component.
 79    */
 80  0 public void mouseExited(MouseEvent e)
 81    {
 82   
 83    }
 84   
 85   
 86    /**
 87    * Invoked when a mouse button is pressed on a component and then
 88    * dragged. <code>MOUSE_DRAGGED</code> events will continue to be
 89    * delivered to the component where the drag originated until the
 90    * mouse button is released (regardless of whether the mouse position
 91    * is within the bounds of the component).
 92    * <p>
 93    * Due to platform-dependent Drag&Drop implementations,
 94    * <code>MOUSE_DRAGGED</code> events may not be delivered during a native
 95    * Drag&Drop operation.
 96    */
 97  0 public void mouseDragged(MouseEvent e)
 98    {
 99   
 100    }
 101   
 102   
 103    /**
 104    * Invoked when the mouse cursor has been moved onto a component
 105    * but no buttons have been pushed.
 106    */
 107  0 public void mouseMoved(MouseEvent e)
 108    {
 109   
 110    }
 111   
 112    /**
 113    * Invoked when a key has been typed.
 114    * See the class description for {@link KeyEvent} for a definition of
 115    * a key typed event.
 116    */
 117  0 public void keyTyped(KeyEvent e)
 118    {
 119    }
 120   
 121    /**
 122    * Invoked when a key has been pressed.
 123    * See the class description for {@link KeyEvent} for a definition of
 124    * a key pressed event.
 125    */
 126  0 public void keyPressed(KeyEvent e)
 127    {
 128    }
 129   
 130    /**
 131    * Invoked when a key has been released.
 132    * See the class description for {@link KeyEvent} for a definition of
 133    * a key released event.
 134    */
 135  0 public void keyReleased(KeyEvent e)
 136    {
 137    }
 138    }