|
|||||||||
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(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. |
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(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.MouseListener
mouseEntered
in class java.awt.event.MouseAdapter
e
- the mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class java.awt.event.MouseAdapter
e
- the mouse event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |