Class AbstractToolBarButton

All Implemented Interfaces:
MouseListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
Direct Known Subclasses:
AboutButton, ColorsButton, LogButton, SaveButton, ShutdownButton, SnapshotButton, SoundButton, TrashButton, UpdateButton

public abstract class AbstractToolBarButton extends JButton implements MouseListener
A specific button class customized for the 3D scan manager.
Author:
Zleurtor
See Also:
  • Constructor Details

    • AbstractToolBarButton

      public AbstractToolBarButton(Image icon, String tooltip)
      Constructs a new button withe specified parameters.
      Parameters:
      icon - The default icon of the button.
      tooltip - The tooltip of the button.
  • Method Details

    • setDefaultIcon

      public final void setDefaultIcon(Icon newDefaultIcon)
      Returns the default icon of the button.
      Parameters:
      newDefaultIcon - The default icon of the button.
    • setOverflyIcon

      public final void setOverflyIcon(Icon newOverflyIcon)
      Returns the icon of the button when overflown by the cursor.
      Parameters:
      newOverflyIcon - The icon of the button when overflown by the cursor.
    • setActiveIcon

      public final void setActiveIcon(Icon newActiveIcon)
      Returns the icon of the button when clicked by the user.
      Parameters:
      newActiveIcon - The icon of the button when clicked by the user.
    • mouseEntered

      public final void mouseEntered(MouseEvent evt)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public final void mouseExited(MouseEvent evt)
      Specified by:
      mouseExited in interface MouseListener
    • mouseClicked

      public final void mouseClicked(MouseEvent evt)
      Specified by:
      mouseClicked in interface MouseListener
    • mousePressed

      public final void mousePressed(MouseEvent evt)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public final void mouseReleased(MouseEvent evt)
      Specified by:
      mouseReleased in interface MouseListener