ComponentListener
, MouseListener
, MouseMotionListener
, EventListener
public class TreeRolloverProducer extends 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?
CLICKED_KEY, rollover, ROLLOVER_KEY
Constructor | Description |
---|---|
TreeRolloverProducer() |
Modifier and Type | Method | Description |
---|---|---|
void |
mousePressed(MouseEvent e) |
Implemented to do nothing.
|
protected void |
updateRolloverPoint(JComponent component,
Point mousePoint) |
Subclasses must implement to map the given mouse coordinates into
appropriate client coordinates.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
componentHidden, componentMoved, componentResized, componentShown, install, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, release, updateClientProperty, updateRollover
public void mousePressed(MouseEvent e)
RolloverProducer
mousePressed
in interface MouseListener
mousePressed
in class RolloverProducer
protected void updateRolloverPoint(JComponent component, Point mousePoint)
RolloverProducer
updateRolloverPoint
in class RolloverProducer
component
- the target component which received a mouse eventmousePoint
- the mouse position of the event, coordinates are
component pixelsCopyright © 2018. All rights reserved.