public final class FloatingButtonEnabler extends MouseAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(AbstractButton button)
Adds a button to this enabler.
|
static FloatingButtonEnabler |
getInstance()
Returns a default instance of this enabler.
|
void |
mouseEntered(MouseEvent e)
Triggers the drawing of the border when the mouse entered the button area.
|
void |
mouseExited(MouseEvent e)
Disables the drawing of the border when the mouse leaves the button area.
|
void |
removeButton(AbstractButton button)
Removes a button from the enabler.
|
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMovedpublic static FloatingButtonEnabler getInstance()
public void addButton(AbstractButton button)
button - the button.public void removeButton(AbstractButton button)
button - the button.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenermouseEntered in class MouseAdaptere - the mouse event.public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class MouseAdaptere - the mouse event.Copyright © 2009-2012 jtstand.com. All Rights Reserved.