< Zurück | Inhalt | Weiter >

From StretchBehavior.java


protected WakeupCondition m_WakeupCondition = null;

//create the WakeupCriterion for the behavior WakeupCriterion criterionArray[] = new WakeupCriterion[2];

criterionArray[0] = new WakeupOnAWTEvent( KeyEvent.KEY_PRESSED ); criterionArray[1] = new WakeupOnElapsedFrames( 1 );

//save the WakeupCriterion for the behavior m_WakeupCondition = new WakeupOr( criterionArray );


image