Package org.xhtmlrenderer.swing
Class DefaultFSMouseListener
java.lang.Object
org.xhtmlrenderer.swing.DefaultFSMouseListener
- All Implemented Interfaces:
FSMouseListener
- Direct Known Subclasses:
CursorListener,HoverListener,LinkListener
Default, no-op implementation of an FSMouseListener. Override the method as needed in your own subclass.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonMouseDragged(BasicPanel panel, MouseEvent e) Sent when the mouse button is held and the mouse is moved.voidonMouseOut(BasicPanel panel, Box box) Sent when the mouse leaves a Box in the render tree after entering it.voidonMouseOver(BasicPanel panel, Box box) Sent when the mouse moves over a Box in the render tree.voidonMousePressed(BasicPanel panel, MouseEvent e) Sent when the mouse button is pressed.voidonMouseUp(BasicPanel panel, Box box) Sent when the mouse button is released while hovering over a Box in the render tree.voidreset()Implementation-dependent.
-
Constructor Details
-
DefaultFSMouseListener
public DefaultFSMouseListener()
-
-
Method Details
-
onMouseOver
Description copied from interface:FSMouseListenerSent when the mouse moves over a Box in the render tree.- Specified by:
onMouseOverin interfaceFSMouseListener- Parameters:
panel- the panel where the box is displayedbox- the box the mouse has just moved over
-
onMouseOut
Description copied from interface:FSMouseListenerSent when the mouse leaves a Box in the render tree after entering it.- Specified by:
onMouseOutin interfaceFSMouseListener- Parameters:
panel- the panel where the box is displayedbox- the box the mouse has just left
-
onMouseUp
Description copied from interface:FSMouseListenerSent when the mouse button is released while hovering over a Box in the render tree.- Specified by:
onMouseUpin interfaceFSMouseListener- Parameters:
panel- the panel where the box is displayedbox- the box where the mouse is currently located
-
onMousePressed
Description copied from interface:FSMouseListenerSent when the mouse button is pressed.- Specified by:
onMousePressedin interfaceFSMouseListener- Parameters:
panel- the panel where the box is displayede- information about the mouse position, etc.
-
onMouseDragged
Description copied from interface:FSMouseListenerSent when the mouse button is held and the mouse is moved.- Specified by:
onMouseDraggedin interfaceFSMouseListener- Parameters:
panel- the panel where the box is displayede- information about the mouse position, etc.
-
reset
public void reset()Description copied from interface:FSMouseListenerImplementation-dependent. Sent viaBasicPanel.resetMouseTracker().- Specified by:
resetin interfaceFSMouseListener
-