Class TreeRolloverProducer

  • All Implemented Interfaces:
    ComponentListener, MouseListener, MouseMotionListener, EventListener

    public class TreeRolloverProducer
    extends RolloverProducer
    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
    • Constructor Detail

      • TreeRolloverProducer

        public TreeRolloverProducer()
    • Method Detail

      • updateRolloverPoint

        protected void updateRolloverPoint​(JComponent component,
                                           Point mousePoint)
        Description copied from class: RolloverProducer
        Subclasses must implement to map the given mouse coordinates into appropriate client coordinates. The result must be stored in the rollover field.
        Specified by:
        updateRolloverPoint in class RolloverProducer
        Parameters:
        component - the target component which received a mouse event
        mousePoint - the mouse position of the event, coordinates are component pixels