Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.swing
Class CursorListener

java.lang.Object
  extended by org.xhtmlrenderer.swing.DefaultFSMouseListener
      extended by 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
CursorListener()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorListener

public CursorListener()
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 interface FSMouseListener
Overrides:
onMouseOver in class DefaultFSMouseListener
Parameters:
panel - the panel where the box is displayed
box - the box the mouse has just moved over

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home