FIGUE
*Tutorial *Previous *Current *Next

Event Handling : Receiving Pointing Motion Events

* Step by Step

Import the usual figue packages.
import figue.*;
import figue.box.*;
import figue.path.*;
import figue.resource.*;
import figue.selection.*;
Import the event package.
import figue.event.*;
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.
Actions :
drag the mouse over the text area while clicking.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :

*Tutorial *Previous *Current *Next

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 4 November 1998 by Bruno Conductier
FIGUE