public final class FloatingButtonEnabler extends java.awt.event.MouseAdapter
Modifier and Type | Method | 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 class java.awt.event.MouseAdapter
e
- the mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in class java.awt.event.MouseAdapter
e
- the mouse event.