Add a custom pointing motion listener to an interactive facade.
_facade.addPointingMotionListener(
new PointingMotionListenerInterface() {
public final void moving(PointingEvent anEvent) {
...
}
public final void startDragging(PointingEvent anEvent) {
...
}
public final void dragging(PointingEvent anEvent) {
...
}
public final void stopDragging(PointingEvent anEvent) {
...
}
});
React to the events.
public final void dragging(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.