org.jfree.ui
Class FloatingButtonEnabler
MouseAdapter
org.jfree.ui.FloatingButtonEnabler
Enables a button to have a simple floating effect. The border of the button is only visible,
when the mouse pointer is floating over the button.
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.
|
addButton
public void addButton(AbstractButton button)
Adds a button to this enabler.
mouseEntered
public void mouseEntered(MouseEvent e)
Triggers the drawing of the border when the mouse entered the button area.
mouseExited
public void mouseExited(MouseEvent e)
Disables the drawing of the border when the mouse leaves the button area.
removeButton
public void removeButton(AbstractButton button)
Removes a button from the enabler.