|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.MouseAdapter
org.jfree.ui.FloatingButtonEnabler
public final class 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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.awt.event.MouseAdapter |
|---|
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 MouseListenermouseEntered in class MouseAdaptere - the mouse event.public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class MouseAdaptere - the mouse event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||