Class LayerConsumer

  • All Implemented Interfaces:
    LayerListener, java.util.EventListener

    public class LayerConsumer
    extends java.lang.Object
    implements LayerListener
    An adapter for layer listeners that consumes events. This should be used instead of LayerAdapter in situations in which a subclass overrides just one or two methods, but consumes the event in those methods, and require that they be consumed in the other methods as well.
    Version:
    $Id$
    Author:
    John Reekie
    • Constructor Summary

      Constructors 
      Constructor Description
      LayerConsumer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseClicked​(LayerEvent e)
      Invoked when the mouse is clicked on a layer or figure.
      void mouseDragged​(LayerEvent e)
      Invoked when the mouse moves while the button is still held down.
      void mousePressed​(LayerEvent e)
      Invoked when the mouse is pressed on a layer or figure.
      void mouseReleased​(LayerEvent e)
      Invoked when the mouse is released on a layer or figure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayerConsumer

        public LayerConsumer()
    • Method Detail

      • mouseDragged

        public void mouseDragged​(LayerEvent e)
        Invoked when the mouse moves while the button is still held down.
        Specified by:
        mouseDragged in interface LayerListener
        Parameters:
        e - The event
      • mousePressed

        public void mousePressed​(LayerEvent e)
        Invoked when the mouse is pressed on a layer or figure.
        Specified by:
        mousePressed in interface LayerListener
        Parameters:
        e - The event
      • mouseReleased

        public void mouseReleased​(LayerEvent e)
        Invoked when the mouse is released on a layer or figure.
        Specified by:
        mouseReleased in interface LayerListener
        Parameters:
        e - The event
      • mouseClicked

        public void mouseClicked​(LayerEvent e)
        Invoked when the mouse is clicked on a layer or figure.
        Specified by:
        mouseClicked in interface LayerListener
        Parameters:
        e - The event