Add a custom pointing listener to an interactive facade.
_facade.addPointingListener(new PointingListenerInterface() {
public final void mouseEntered(PointingEvent anEvent) {
...
}
public final void mouseExited(PointingEvent anEvent) {
...
}
public final void mousePressed(PointingEvent anEvent) {
...
}
public final void mouseReleased(PointingEvent anEvent) {
...
}
public final void mouseClicked(PointingEvent anEvent) {
...
}
}
React to the events.
public final void mouseClicked(PointingEvent anEvent) {
if ( anEvent.getPath() != null ) {
hightlightBox(anEvent.getPath());
}
}
Example
Accelerators :
home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
Autoscrolling :
drag the mouse inside the
text area, approach a border or a corner, and wait.