Examples of prefire()


Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()

        AbstractCursorInputEvt lastEvt = inputCursor.getCurrentEvent();
        if (lastEvt.getId() != AbstractCursorInputEvt.INPUT_ENDED){
          try {
            AbstractCursorInputEvt endedEvt = (AbstractCursorInputEvt) lastEvt.clone();
            endedEvt.setId(AbstractCursorInputEvt.INPUT_ENDED);
            endedEvt.preFire();
           
            this.sendEvtToSceneProcessors(lastScene, endedEvt);
            logger.debug("Sending INPUT_ENDED evt to scene: " + lastScene.getName() + " Cursor: " + endedEvt.getCursor());
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()

          ){
        */
          try {
            AbstractCursorInputEvt startedEvt = (AbstractCursorInputEvt) lastEvt.clone();
            startedEvt.setId(AbstractCursorInputEvt.INPUT_DETECTED);
            startedEvt.preFire();
           
            this.sendEvtToSceneProcessors(newScene, startedEvt);
            logger.debug("Sending INPUT_DETECTED evt to scene: " + newScene.getName() + " Cursor: " + startedEvt.getCursor());
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()

          newEvt = (AbstractCursorInputEvt) posEvt.clone();
          newEvt.setPositionX(newX);
          newEvt.setPositionY(newY);
//          newCursor.addEvent(newEvt);
          newEvt.setCursor(newCursor);
          newEvt.preFire();
          //Note: We dont set a target for the event! this can be
          //handled newly in the wondowed scenes InputRetargeter processor
        } catch (CloneNotSupportedException e) {
          e.printStackTrace();
        }
View Full Code Here

Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()

            newEvt = (AbstractCursorInputEvt) posEvt.clone();
            newEvt.setPositionX(newX);
            newEvt.setPositionY(newY);
//            newCursor.addEvent(newEvt);
            newEvt.setCursor(newCursor);
            newEvt.preFire();
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
          }
        }else{
          System.err.println("Couldnt find new cursor!");
View Full Code Here

Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()

            newEvt = (AbstractCursorInputEvt) posEvt.clone();
            newEvt.setPositionX(newX);
            newEvt.setPositionY(newY);
//            newCursor.addEvent(newEvt);
            newEvt.setCursor(newCursor);
            newEvt.preFire();
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
          }
        }else{
          System.err.println("Couldnt find new cursor!");
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                _interruptQueue.take();

                Actor actor = interruptEvent.actor();

                if (actor != null) {
                    if (actor.prefire()) {
                        actor.fire();

                        if (!actor.postfire()) {
                            _disableActor(actor);
                        }
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                // Check if there are any events with equal priority
                // for this actor. If so, make them available to the
                // actor at the same time.
                Actor actor = event.actor();

                if ((actor == getContainer()) || !actor.prefire()) {
                    // If the actor is the container of this director,
                    // then the event is at the output boundary.
                    // Remove the event and look at the next event.
                    _eventQueue.take();
                    event = null;
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                _interruptQueue.take();

                Actor actor = interruptEvent.actor();

                if (actor != null) {
                    if (actor.prefire()) {
                        actor.fire();

                        if (!actor.postfire()) {
                            _disableActor(actor);
                        }
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                // incrementing of time to that inside director.
                _insideDirector = insideDirector;
                _pseudoTimeEnabled = true;
            }

            boolean flag = actor.prefire();

            if (_debugging) {
                _debug(new FiringEvent(this, actor, FiringEvent.AFTER_PREFIRE,
                        1));
            }
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                    }

                    _debug(new FiringEvent(this, actorToFire,
                            FiringEvent.BEFORE_PREFIRE));

                    if (!actorToFire.prefire()) {
                        _debug("*** Prefire returned false.");
                        break;
                    }

                    _debug(new FiringEvent(this, actorToFire,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.