Class FrameMotionListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

    public class FrameMotionListener
    extends java.awt.event.MouseAdapter
    The mouse adapter to handle frame movement.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JInternalFrame f  
      private java.awt.Point loc  
    • Constructor Summary

      Constructors 
      Constructor Description
      FrameMotionListener​(javax.swing.JInternalFrame f)
      Build a new frame motion listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseDragged​(java.awt.event.MouseEvent e)
      void mousePressed​(java.awt.event.MouseEvent e)
      void mouseReleased​(java.awt.event.MouseEvent e)
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
      • Methods inherited from class java.lang.Object

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

      • f

        private final javax.swing.JInternalFrame f
      • loc

        private java.awt.Point loc
    • Constructor Detail

      • FrameMotionListener

        FrameMotionListener​(javax.swing.JInternalFrame f)
        Build a new frame motion listener.
        Parameters:
        f - The base internal frame.
    • Method Detail

      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseDragged in class java.awt.event.MouseAdapter
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class java.awt.event.MouseAdapter
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class java.awt.event.MouseAdapter