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, mouseWheelMoved
public 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 MouseListener
mouseEntered
in class MouseAdapter
e
- the mouse event.public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class MouseAdapter
e
- the mouse event.Copyright © 2001–2018 JFree.org. All rights reserved.