Package org.jdesktop.swingx.rollover
Class TreeRolloverProducer
java.lang.Object
org.jdesktop.swingx.rollover.RolloverProducer
org.jdesktop.swingx.rollover.TreeRolloverProducer
- All Implemented Interfaces:
ComponentListener,MouseListener,MouseMotionListener,EventListener
Tree-specific implementation of RolloverProducer.
This implementation assumes a "hit" for rollover if the mouse is anywhere in the total width of the tree. Additionally, a pressed to the right (but outside of the label bounds) is re-dispatched as a pressed just inside the label bounds. This is a first go for #166-swingx.
PENDING JW: bidi-compliance of pressed?
- Author:
- Jeanette Winzenburg
-
Field Summary
Fields inherited from class org.jdesktop.swingx.rollover.RolloverProducer
CLICKED_KEY, rollover, ROLLOVER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidImplemented to do nothing.protected voidupdateRolloverPoint(JComponent component, Point mousePoint) Subclasses must implement to map the given mouse coordinates into appropriate client coordinates.Methods inherited from class org.jdesktop.swingx.rollover.RolloverProducer
componentHidden, componentMoved, componentResized, componentShown, install, isClick, isDragging, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, release, updateClientProperty, updateRollover
-
Constructor Details
-
TreeRolloverProducer
public TreeRolloverProducer()
-
-
Method Details
-
mousePressed
Description copied from class:RolloverProducerImplemented to do nothing.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classRolloverProducer
-
updateRolloverPoint
Description copied from class:RolloverProducerSubclasses must implement to map the given mouse coordinates into appropriate client coordinates. The result must be stored in the rollover field.- Specified by:
updateRolloverPointin classRolloverProducer- Parameters:
component- the target component which received a mouse eventmousePoint- the mouse position of the event, coordinates are component pixels
-