Class RadianceTabbedPaneUI.MouseRolloverHandler

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
    Enclosing class:
    RadianceTabbedPaneUI

    private class RadianceTabbedPaneUI.MouseRolloverHandler
    extends java.lang.Object
    implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
    Listener for rollover animation effects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean prevInCloseButton
      Indicates whether the previous mouse event was located in a close button.
      private int prevRolledOver
      Index of the tab that was rolled over on the previous mouse event.
      private int tabOfPressedCloseButton
      Tab index of the last mouse pressed event that happened in a close button.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void handleMouseMoveDrag​(java.awt.event.MouseEvent e)
      Handles the move and drag mouse events.
      void mouseClicked​(java.awt.event.MouseEvent e)  
      void mouseDragged​(java.awt.event.MouseEvent e)  
      void mouseEntered​(java.awt.event.MouseEvent e)  
      void mouseExited​(java.awt.event.MouseEvent e)  
      void mouseMoved​(java.awt.event.MouseEvent e)  
      void mousePressed​(java.awt.event.MouseEvent e)  
      void mouseReleased​(java.awt.event.MouseEvent e)  
      • Methods inherited from class java.lang.Object

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

      • prevRolledOver

        private int prevRolledOver
        Index of the tab that was rolled over on the previous mouse event.
      • prevInCloseButton

        private boolean prevInCloseButton
        Indicates whether the previous mouse event was located in a close button.
      • tabOfPressedCloseButton

        private int tabOfPressedCloseButton
        Tab index of the last mouse pressed event that happened in a close button.
    • Constructor Detail

      • MouseRolloverHandler

        private MouseRolloverHandler()
    • Method Detail

      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent e)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
      • handleMouseMoveDrag

        private void handleMouseMoveDrag​(java.awt.event.MouseEvent e)
        Handles the move and drag mouse events.
        Parameters:
        e - Mouse event to handle.
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mouseReleased

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