public class HoverListener extends DefaultFSMouseListener
BasicPanel
.
In particular, it applies any :hover selectors that apply to the Box in question, and resets those styles
as the mouse exits the Box.Constructor and Description |
---|
HoverListener() |
Modifier and Type | Method and Description |
---|---|
void |
onMouseOut(BasicPanel panel,
Box box)
Sent when the mouse leaves a Box in the render tree after entering it.
|
void |
onMouseOver(BasicPanel panel,
Box box)
Sent when the mouse moves over a Box in the render tree.
|
void |
reset()
Resets the tracking information related to the currently hovered element.
|
onMouseDragged, onMousePressed, onMouseUp
public void onMouseOut(BasicPanel panel, Box box)
onMouseOut
in interface FSMouseListener
onMouseOut
in class DefaultFSMouseListener
panel
- the panel where the box is displayedbox
- the box the mouse has just leftpublic void onMouseOver(BasicPanel panel, Box box)
onMouseOver
in interface FSMouseListener
onMouseOver
in class DefaultFSMouseListener
panel
- the panel where the box is displayedbox
- the box the mouse has just moved overpublic void reset()
reset
in interface FSMouseListener
reset
in class DefaultFSMouseListener