public final class FloatingButtonEnabler extends java.awt.event.MouseAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(javax.swing.AbstractButton button)
Adds a button to this enabler.
|
static FloatingButtonEnabler |
getInstance()
Returns a default instance of this enabler.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Triggers the drawing of the border when the mouse entered the button area.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Disables the drawing of the border when the mouse leaves the button area.
|
void |
removeButton(javax.swing.AbstractButton button)
Removes a button from the enabler.
|
public static FloatingButtonEnabler getInstance()
public void addButton(javax.swing.AbstractButton button)
button - the button.public void removeButton(javax.swing.AbstractButton button)
button - the button.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class java.awt.event.MouseAdaptere - the mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenermouseExited in class java.awt.event.MouseAdaptere - the mouse event.