|
|
|||||||||||
|
||||||||||||
Event Handling : Receiving Pointing Events |
||||||||||||
Import the usual figue packages.
|
import figue.*; import figue.box.*; import figue.path.*; import figue.resource.*; import figue.selection.*; |
import figue.event.*; |
_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) { ... } } |
public final void mouseClicked(PointingEvent anEvent) { if ( anEvent.getPath() != null ) { hightlightBox(anEvent.getPath()); } } |
|
![]() |
![]() |
![]() |
![]() |
Comments or suggestions?![]() Need some help? ![]() Copyright ©1998 INRIA Last updated 4 November 1998 by Bruno Conductier |
|