|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.lw.LwTooltipMan
This manager is used to support tooltip for a light weight components. As the tooltip can be used any light weight component. The tooltip component is shown whenever the mouse cursor certain time immobile inside the tooltip owner component (and no mouse buttons have been pressed). There are two ways to work with the tooltip:
setTooltipInfo
method tha allows to define the
TooltipInfo interface for the specified component.
Field Summary | |
static java.awt.Color |
tooltipBack
The tooltip background color definition. |
Constructor Summary | |
LwTooltipMan()
|
Method Summary | |
static LwComponent |
createTooltip(java.lang.String text)
Creates and returns a tooltip component by the given label. |
void |
dispose()
|
void |
endDragged(LwMouseMotionEvent e)
Invoked when the mouse ends dragged. |
void |
mouseClicked(LwMouseEvent e)
Invoked when the mouse button has been clicked on a light weight component. |
void |
mouseDragged(LwMouseMotionEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(LwMouseEvent e)
Invoked when the mouse enters a light weight component. |
void |
mouseExited(LwMouseEvent e)
Invoked when the mouse exits a light weight component. |
void |
mouseMoved(LwMouseMotionEvent e)
Invoked when the mouse pointer has been moved on a light weight component (with no buttons no down). |
void |
mousePressed(LwMouseEvent e)
Invoked when the mouse button has been pressed on a light weight component. |
void |
mouseReleased(LwMouseEvent e)
Invoked when the mouse button has been released on a light weight component. |
void |
removeTooltipInfo(LwComponent c)
Removes a tooltip info interface for the given component, so it no longer show tooltips. |
void |
run()
|
void |
setTick(int t)
Sets the specified tick (milliseconds) that defines interval between "frozen" mouse state and starting the tooltip showing. |
void |
setTooltipInfo(LwComponent c,
TooltipInfo t)
Sets the specified tooltip info interface for the given component. |
void |
startDragged(LwMouseMotionEvent e)
Invoked when the mouse starts dragged. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Color tooltipBack
Constructor Detail |
public LwTooltipMan()
Method Detail |
public void setTick(int t)
t
- the specified tick.public void removeTooltipInfo(LwComponent c)
c
- the component.public void setTooltipInfo(LwComponent c, TooltipInfo t)
c
- the component.t
- the specified tooltip info interface.public void mouseEntered(LwMouseEvent e)
LwMouseListener
mouseEntered
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseExited(LwMouseEvent e)
LwMouseListener
mouseExited
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseClicked(LwMouseEvent e)
LwMouseListener
mouseClicked
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mousePressed(LwMouseEvent e)
LwMouseListener
mousePressed
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseReleased(LwMouseEvent e)
LwMouseListener
mouseReleased
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void startDragged(LwMouseMotionEvent e)
LwMouseMotionListener
startDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void endDragged(LwMouseMotionEvent e)
LwMouseMotionListener
endDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void mouseDragged(LwMouseMotionEvent e)
LwMouseMotionListener
mouseDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void mouseMoved(LwMouseMotionEvent e)
LwMouseMotionListener
mouseMoved
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void run()
run
in interface java.lang.Runnable
public void dispose()
dispose
in interface LwManager
public static LwComponent createTooltip(java.lang.String text)
text
- the specified text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |