|
|
|||||||||||
|
|
||||||||||||
Event Handling : Receiving Pointing Motion Events |
||||||||||||
Import the usual figue packages.
|
||||||||||||
import figue.*; import figue.box.*; import figue.path.*; import figue.resource.*; import figue.selection.*; |
import figue.event.*; |
_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) {
...
}
}); |
public final void dragging(PointingEvent anEvent) {
if ( anEvent.getPath() != null ) {
hightlightBox(anEvent.getPath());
}
} |
Example
|
The Whole Program
Related Classes
and Methods
What Next ?
Tutorial |
Previous |
Current |
Next |
|
Comments or suggestions? Need some help? Copyright ©1998 INRIA Last updated 4 November 1998 by Bruno Conductier |
|