Package javax.media.j3d

Examples of javax.media.j3d.WakeupOnAWTEvent


                        }
                    }
                }
            }

            this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_PRESSED));
        }
View Full Code Here


    ///////////////////////////////////////////////////////////////////
    ////                         inner classes                     ////

    private class React extends Behavior {
        public void initialize() {
            this.wakeupOn(new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED));
        }
View Full Code Here

                        _hasData = true;
                    }
                }
            }

            this.wakeupOn(new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED));
        }
View Full Code Here

    private Transform3D transRot = new Transform3D();
    private TransformGroup tg;
   
    public void initialize() {
        setSchedulingBounds(new BoundingSphere(new Point3d(0,0,0),100));
        wakeupOn(new WakeupOnAWTEvent(AWTEvent.KEY_EVENT_MASK));
    }
View Full Code Here

      tg = t;
    }
   
    public void processStimulus(Enumeration enumeration) {
        // reschedule the wake up
      wakeupOn(new WakeupOnAWTEvent(AWTEvent.KEY_EVENT_MASK));

        KeyEvent event = (KeyEvent) ((WakeupOnAWTEvent) enumeration.nextElement()).getAWTEvent()[0];
       
        // add a little to the rotation
        if (event.getKeyCode() == KeyEvent.VK_A) addY++;
View Full Code Here

  }

  public void initialize() {

    conditions = new WakeupCriterion[2];
    conditions[0] = new WakeupOnAWTEvent(Event.MOUSE_MOVE);
    conditions[1] = new WakeupOnAWTEvent(Event.MOUSE_DOWN);
    wakeupCondition = new WakeupOr(conditions);

    wakeupOn(wakeupCondition);
  }
View Full Code Here

/*     */   }
/*     */
/*     */   public void initialize()
/*     */   {
/*  92 */     this.conditions = new WakeupCriterion[2];
/*  93 */     this.conditions[0] = new WakeupOnAWTEvent(503);
/*  94 */     this.conditions[1] = new WakeupOnAWTEvent(501);
/*  95 */     this.wakeupCondition = new WakeupOr(this.conditions);
/*     */
/*  97 */     wakeupOn(this.wakeupCondition);
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public void initialize()
/*     */   {
/* 117 */     this.conditions = new WakeupCriterion[2];
/* 118 */     this.conditions[0] = new WakeupOnAWTEvent(503);
/* 119 */     this.conditions[1] = new WakeupOnAWTEvent(501);
/* 120 */     this.wakeupCondition = new WakeupOr(this.conditions);
/*     */
/* 122 */     wakeupOn(this.wakeupCondition);
/*     */   }
View Full Code Here

/*     */
/*     */   public void initialize()
/*     */   {
/* 196 */     this.mouseEvents = new WakeupCriterion[3];
/* 197 */     if (!this.listener) {
/* 198 */       this.mouseEvents[0] = new WakeupOnAWTEvent(506);
/* 199 */       this.mouseEvents[1] = new WakeupOnAWTEvent(501);
/* 200 */       this.mouseEvents[2] = new WakeupOnAWTEvent(502);
/*     */     }
/*     */     else {
/* 203 */       this.mouseEvents[0] = new WakeupOnBehaviorPost(this, 506);
/*     */
/* 205 */       this.mouseEvents[1] = new WakeupOnBehaviorPost(this, 501);
View Full Code Here

/*  91 */     boolean sawFrame = false;
/*     */
/*  93 */     while (criteria.hasMoreElements()) {
/*  94 */       WakeupCriterion genericEvt = (WakeupCriterion)criteria.nextElement();
/*  95 */       if ((genericEvt instanceof WakeupOnAWTEvent)) {
/*  96 */         WakeupOnAWTEvent ev = (WakeupOnAWTEvent)genericEvt;
/*  97 */         AWTEvent[] events = ev.getAWTEvent();
/*  98 */         processAWTEvent(events);
/*  99 */       } else if (((genericEvt instanceof WakeupOnElapsedFrames)) && (this.eventKey != null))
/*     */       {
/* 101 */         sawFrame = true;
/* 102 */       } else if ((genericEvt instanceof WakeupOnBehaviorPost))
View Full Code Here

TOP

Related Classes of javax.media.j3d.WakeupOnAWTEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.