FIGUE
*Tutorial *Previous *Current *Next

Event Handling : Receiving Pointing 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 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.
Actions :
click on a word in the text area.

* 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