Examples of Transition


Examples of org.pdfclown.documents.interaction.navigation.page.Transition

  @PDF(VersionEnum.PDF11)
  public Transition getTransition(
    )
  {
    PdfDirectObject transitionObject = getBaseDataObject().get(PdfName.Trans);
    return transitionObject != null ? new Transition(transitionObject, getContainer()) : null;
  }
View Full Code Here

Examples of org.pdfsam.console.business.dto.Transition

    }   
   
    for(int j=1; j<=totalPages; j++){
      Object rawTransition = transitionsMap.get(new Integer(j));
      if(rawTransition != null){
        Transition transition = (Transition) rawTransition;
        pdfStamper.setDuration(transition.getDuration(), transition.getPageNumber());
        pdfStamper.setTransition(new PdfTransition(getITextTransition(transition.getTransition()),transition.getTransitionDuration()), transition.getPageNumber());
      }else{
        pdfStamper.setDuration(transitions.getDefaultTransition().getDuration(), j);
        pdfStamper.setTransition(new PdfTransition(getITextTransition(transitions.getDefaultTransition().getTransition()),transitions.getDefaultTransition().getTransitionDuration()), j);
      }
      setPercentageOfWorkDone(((j)*WorkDoneDataModel.MAX_PERGENTAGE)/totalPages);
 
View Full Code Here

Examples of org.pdfsam.console.business.dto.Transition

          Node defDur = rootNode.selectSingleNode("@defaultduration");
          if(defType != null && defTransDur != null && defDur != null){
            if(transitions.getDefaultTransition() != null){
              throw new SlideShowException(SlideShowException.ERR_DEFAULT_TRANSITION_ALREADY_SET);
            }else{
              transitions.setDefaultTransition(new Transition(Transition.EVERY_PAGE, new Integer(defTransDur.getText().trim()).intValue(), defType.getText().trim(), new Integer(defDur.getText().trim()).intValue()));
            }
          }
          List transitionsList = document.selectNodes("/transitions/transition");
          for (int i = 0; transitionsList != null && i < transitionsList.size(); i++) {
            Node transitionNode = (Node) transitionsList.get(i);
            Node type = transitionNode.selectSingleNode("@type");
            Node transDuration = transitionNode.selectSingleNode("@tduration");
            Node duration = transitionNode.selectSingleNode("@duration");
            Node page = transitionNode.selectSingleNode("@pagenumber");
            if(type != null && transDuration != null && duration != null && page != null){             
              transitions.addTransition(new Transition(new Integer(page.getText().trim()).intValue(), new Integer(transDuration.getText().trim()).intValue(), type.getText().trim(), new Integer(duration.getText().trim()).intValue()));             
            }else{
              throw new SlideShowException(SlideShowException.ERR_READING_TRANSITION, new String[] {i+""});
            }
          }
        }else{
View Full Code Here

Examples of org.sbml.jsbml.ext.qual.Transition

        String speciesId = data[0];
        String role = data[1];
        generateAllEdges(rGlyph, speciesId, role);
      }
    }
    Transition transition = getTransitionForReactionGlyph(rGlyph);
    if (transition != null){
      List<String[]> connectedQSpecies = getConnectedQualitativeSpecies(transition);
      for (String[] data : connectedQSpecies){
        String qSpeciesId = data[0];
        String role = data[1];
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.model.Transition

        if (state != null && state.trim().length() > 0) {
          Node stateRef = getDiagram().getReferencedNode(state);
          if (stateRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
                Transition trans = new WebFlowTransition(this, activity, transition);
                list.add(trans);
              }
            }
          }
        }
        else {
          Transition trans = new WebFlowTransition(this, this, transition);
          list.add(trans);
        }
      }
    }
    return list;
View Full Code Here

Examples of org.springframework.webflow.engine.Transition

  }

  public void testTransitionExecutingNoSecurity() {
    SecurityFlowExecutionListener listener = new SecurityFlowExecutionListener();
    RequestContext context = new MockRequestContext();
    Transition transition = new Transition(new DefaultTargetStateResolver("target"));
    listener.transitionExecuting(context, transition);
  }
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.Transition

        State st = controller.currentState();

        // Chose a preemptive transition, if there is one,
        // and execute its choice actions.
        // The choice actions are the outputActions, not the setActions.
        Transition tr = controller.chooseTransition(st
                .preemptiveTransitionList());
        _enabledTransition = tr;

        // If a preemptive transition was found, prefire and fire
        // the refinements of the transition, and then return.
        if (tr != null) {
            if (_debugging) {
                _debug("Preemptive transition is enabled.");
            }
            Actor[] actors = tr.getRefinement();
            if (actors != null) {
                for (int i = 0; i < actors.length; ++i) {
                    if (_stopRequested) {
                        break;
                    }
                    if (_debugging) {
                        _debug("Prefire and fire the refinement of the preemptive transition: "
                                + actors[i].getFullName());
                    }
                    if (actors[i].prefire()) {
                        actors[i].fire();
                        _actorsFired.add(actors[i]);
                    }
                }
            }
            controller.readOutputsFromRefinement();
            return;
        }

        // There was no preemptive transition, so we proceed
        // to the refinement of the current state.
        Actor[] actors = st.getRefinement();
        if (actors != null) {
            for (int i = 0; i < actors.length; ++i) {
                if (_stopRequested) {
                    break;
                }
                if (_debugging) {
                    _debug("Fire the refinement of the current state: ",
                            actors[i].getFullName());
                }
                actors[i].fire();
                _actorsFired.add(actors[i]);
            }
        }
        // Mark that this state has been visited.
        st.setVisited(true);

        // Read the inputs from the environment.
        controller.readInputs();
        // Read the outputs from the refinement.
        controller.readOutputsFromRefinement();

        // NOTE: we assume the controller, which is an FSM actor, is strict.
        // That is, the controller will only fire when all inputs are ready.
        // NOTE: There seems to be a problem. In particular, if some inputs are
        // unknown before this modal model fires, the transition is not checked.
        // This suggest that we might need another firing if some inputs later
        // become known so that to ensure that no transition is missed.
        // NOTE: this is saved by the _hasIterationConverged() method
        // defined in the FixedPointDirector, where it ensures that no receivers
        // will change their status and until then an iteration is claimed
        // complete.
        Iterator inputPorts = controller.inputPortList().iterator();

        while (inputPorts.hasNext()) {
            IOPort inputPort = (IOPort) inputPorts.next();
            if (!inputPort.isKnown()) {
                return;
            }
        }

        // See whether there is an enabled transition.
        tr = controller.chooseTransition(st.nonpreemptiveTransitionList());
        _enabledTransition = tr;
        if (tr != null) {
            if (_debugging) {
                _debug("Transition: " + tr.getName() + " is enabled.");
            }
            actors = tr.getRefinement();
            if (actors != null) {
                for (int i = 0; i < actors.length; ++i) {
                    if (_stopRequested) {
                        break;
                    }
View Full Code Here

Examples of rationals.Transition

        extraCompleteAutomataForInverseProperties.clear();
    }
    protected void increaseAutomatonWithInversePropertyAutomaton(Automaton propertyAutomaton,Automaton inversePropertyAutomaton) {
        State initialState=(State)propertyAutomaton.initials().iterator().next();
        State finalState=(State)propertyAutomaton.terminals().iterator().next();
        Transition transition=(Transition)propertyAutomaton.deltaFrom(initialState,finalState).iterator().next();
        automataConnector(propertyAutomaton,getMirroredCopy(inversePropertyAutomaton),transition);
    }
View Full Code Here

Examples of transition.Transition

        fd.bottom = new FormAttachment(100, -5);
        fd.left = new FormAttachment(0, 5);
        fd.right = new FormAttachment(100, -5);
        btn.setLayoutData(fd);
       
        Transition t = new Transition(new Transitionable() {
            @Override
            public void setSelection(int index) {
                me.curImg = (index + 1) % me.imgs.length;
            }
       
            @Override
            public int getSelection() {
                return me.curImg;
            }
       
            @Override
            public Control getControl(int index) {
                return cnvs;
            }
       
            @Override
            public Composite getComposite() {
                return sShell;
            }
       
            @Override
            public int compare(int index1, int index2) {
                return Math.random() > 0.5 ? index1 : index2;
            }
       
            @Override
            public void addSelectionListener(SelectionListener listener) {
                btn.addSelectionListener(listener);
            }
        });
        t.setTransition(Transition.RANDOM_ROTATION);
        t.addTransitionListener(new TransitionListener() {
            public void transitionFinished(Transition transition) {
                System.out.println("End Of Transition! current item: "
                        + transition.getTransitionable().getSelection());
            }
        });
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.