Package org.xhtmlrenderer.swing
Class CursorListener
- java.lang.Object
-
- org.xhtmlrenderer.swing.DefaultFSMouseListener
-
- org.xhtmlrenderer.swing.CursorListener
-
- All Implemented Interfaces:
FSMouseListener
public class CursorListener extends DefaultFSMouseListener
A CursorListener is used to modify the current cursor in response to mouse events over the current document. This implementation changes the cursor according to the cursor property that applies to the Box on which the mouse is located.
-
-
Constructor Summary
Constructors Constructor Description CursorListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMouseOver(BasicPanel panel, Box box)
Sent when the mouse moves over a Box in the render tree.-
Methods inherited from class org.xhtmlrenderer.swing.DefaultFSMouseListener
onMouseDragged, onMouseOut, onMousePressed, onMouseUp, reset
-
-
-
-
Method Detail
-
onMouseOver
public void onMouseOver(BasicPanel panel, Box box)
Sent when the mouse moves over a Box in the render tree.- Specified by:
onMouseOver
in interfaceFSMouseListener
- Overrides:
onMouseOver
in classDefaultFSMouseListener
- Parameters:
panel
- the panel where the box is displayedbox
- the box the mouse has just moved over
-
-