Creating behaviors
Waking up on an AWT event
- A behavior can wakeup on a specified AWT event
- To use the mouse to rotate geometry:
- Wake up a behavior on mouse press, release, and drag
- On each drag event, compute the distance the mouse has moved
since the press and map it to a rotation angle
- Create a rotation transform and write to a
TransformGroup
Method |
WakeupOnAWTEvent( int AWTid ) |
AWTEvent getAWTEvent( ) |