Examples of ActionList


Examples of flash.swf.types.ActionList

     */
    public ActionList createActionList(boolean keepOffsets)
    {
        processSkipEntries();

        ActionList list = new ActionList(keepOffsets);
        list.grow(count);
        Action a;
        int length = actions.length;
        if (keepOffsets)
        {
            for (int i=0; i < length; i++)
            {
                int offset = startOffset+i;
                if ((a=actions[i]) != null)
                    list.insert(offset, a);
                if ((a=lines[i]) != null)
                    list.insert(offset, a);
        if ((a=registers[i]) != null)
          list.insert(offset, a);
                if ((a=labels[i]) != null)
                    list.insert(offset, a);
            }
            if ((a=labels[length]) != null)
                list.insert(startOffset+length, a);
        }
        else
        {
            for (int i=0; i < length; i++)
            {
                if ((a=labels[i]) != null)
                    list.append(a);
                if ((a=lines[i]) != null)
                    list.append(a);
        if ((a=registers[i]) != null)
          list.append(a);
                if ((a=actions[i]) != null)
                    list.append(a);
            }
            if ((a=labels[length]) != null)
                list.append(a);
        }
        return list;
    }
View Full Code Here

Examples of flash.swf.types.ActionList

      }

      // then frame actions
      for (Iterator<ActionList> j = frame.doActions.iterator(); j.hasNext();)
      {
        ActionList list = j.next();
        new DoAction(list).visit(handler);
      }

      // oh yeah, then showFrame!
      new ShowFrame().visit(handler);
View Full Code Here

Examples of flash.swf.types.ActionList

   * Ask a TagDecoder to do its magic, calling us
   * upon each encounter of a new tag.
   */
  void process(TagDecoder d) throws IOException
  {
    m_master = new ActionList(true);
        d.setKeepOffsets(true);
    d.parse(this);
  }
View Full Code Here

Examples of flash.swf.types.ActionList

           if (lStart.function == null)
             cli.err(getLocalizationManager().getLocalizedTextString("key30")); //$NON-NLS-1$
           else
           {
             // create a psudeo action list from which to disasemble the function
             ActionList al = new ActionList(true);
             al.setActionOffset(0, lStart.function);
             lStart.actions = al;
             lStart.at = 0;
             lEnd = new ActionLocation();
             lEnd.actions = al;
             lEnd.at = 0;
View Full Code Here

Examples of flash.swf.types.ActionList

        return new TestSuite(DoActionTest.class);
    }

    public void testEqualsPositive()
    {
        DoAction doAction1 = new DoAction(new ActionList());
        doAction1.actionList.insert(0, new Branch(Branch.sactionJump));
        DoAction doAction2 = new DoAction(new ActionList());
        doAction2.actionList.insert(0, new Branch(Branch.sactionJump));
        assertEquals("doAction1 should be equal to doAction2",
                     doAction1, doAction2);
    }
View Full Code Here

Examples of flash.swf.types.ActionList

                     doAction1, doAction2);
    }

    public void testEqualsNegative()
    {
        DoAction doAction1 = new DoAction(new ActionList());
        doAction1.actionList.insert(0, new Branch(Branch.sactionJump));
        DoAction doAction2 = new DoAction(new ActionList());
        doAction2.actionList.insert(0, new Push(ActionFactory.UNDEFINED));
        assertFalse("doAction1 should not be equal to doAction2",
                    doAction1.equals(doAction2));
    }
View Full Code Here

Examples of org.cybergarage.upnp.ActionList

    actions = new Hashtable();
    stateVariables=new Hashtable();
    /*
     * action
     */
    ActionList actionlist = service.getActionList();
    for (int i = 0; i < actionlist.size(); i++) {
      Action act = actionlist.getAction(i);
      actions.put(act.getName(), new UPnPActionImpl(act,this));
    }
    /*StateVariable*/
    ServiceStateTable stateTable=service.getServiceStateTable();
    for(int i=0;i<stateTable.size();i++){
View Full Code Here

Examples of org.jwildfire.script.ActionList

  }

  public void saveScriptAction() throws Exception {
    int row = actionTable.getSelectedRow();
    if ((row >= 0) && (row < actionList.size())) {
      ActionList lActionList = new ActionList();
      lActionList.loadFromString(scriptActionTextArea.getText());
      actionList.remove(row);
      for (Action action : lActionList) {
        if (row < actionList.size())
          actionList.add(row, action);
        else
View Full Code Here

Examples of org.jwildfire.script.ActionList

      error = null;
      try {
        for (int frame = frameMin; frame <= frameMax; frame++) {
          if (forceAbort)
            break;
          ActionList actions = actionList.clone();
          // generate Filename
          String frameStr = String.valueOf(frame);
          while (frameStr.length() < 4)
            frameStr = "0" + frameStr;
          String filename = basePath + frameStr + ".jpg";
View Full Code Here

Examples of prefuse.action.ActionList

        FontAction fonts = new FontAction(treeNodes,
                FontLib.getFont("Tahoma", 10));
        fonts.add("ingroup('_focus_')", FontLib.getFont("Tahoma", 11));
       
        // recolor
        ActionList recolor = new ActionList();
        recolor.add(nodeColor);
        recolor.add(textColor);
        recolor.add(borderColor);
        recolor.add(borderHighlightColor);
        m_vis.putAction("recolor", recolor);
       
        // repaint
        ActionList repaint = new ActionList();
        repaint.add(recolor);
        repaint.add(new RepaintAction());
        m_vis.putAction("repaint", repaint);
       
        // animate paint change
        ActionList animatePaint = new ActionList(400);
        animatePaint.add(new ColorAnimator(treeNodes));
        animatePaint.add(new RepaintAction());
        m_vis.putAction("animatePaint", animatePaint);
       
        // create the tree layout action
        RadialTreeLayout treeLayout = new RadialTreeLayout(tree);
        m_vis.putAction("treeLayout", treeLayout);
       
        CollapsedSubtreeLayout subLayout = new CollapsedSubtreeLayout(tree);
        m_vis.putAction("subLayout", subLayout);
       
        // create the filtering and layout
        ActionList filter = new ActionList();
        filter.add(new ForceDirectedLayout(tree, true));
        filter.add(new TreeRootAction(tree));
        filter.add(fonts);
        filter.add(treeLayout);
        filter.add(subLayout);       
        filter.add(textColor);
        filter.add(nodeColor);
        filter.add(borderColor);
        filter.add(borderHighlightColor);
        filter.add(edgeColorAction)
        filter.add(edgeArrowAction);
        m_vis.putAction("filter", filter);
       
        // animated transition
        ActionList animate = new ActionList(1250);
        animate.setPacingFunction(new SlowInSlowOutPacer());
        animate.add(new QualityControlAnimator());
        animate.add(new VisibilityAnimator(tree));
        animate.add(new PolarLocationAnimator(treeNodes, linear));
        animate.add(new ColorAnimator(treeNodes));
        animate.add(new RepaintAction());
        m_vis.putAction("animate", animate);
        m_vis.alwaysRunAfter("filter", "animate");
       
        // visibility determiner
        ActionList visibility = new ActionList();
        visibility.add(new VisibilityFilter(new VisiblePredicate()));
        m_vis.putAction("visibility", visibility);
        visibility.alwaysRunAfter(animate);
       
        /*// add force repulsion
        ForceSimulator fsim = new ForceSimulator();
        fsim.addForce(new NBodyForce(-1f, .1f, 5f));
        fsim.addForce(new DragForce());
        */
       
        ActionList forces = new ActionList(m_vis, 1000);
        //forces.add(new ForceDirectedLayout(tree, fsim, false));
        forces.add(new RepaintAction());
        m_vis.putAction("forces", forces);
  forces.alwaysRunAfter(animate);       
       
        //======================================================================       
        // -- initialize the display --
        //======================================================================
        setSize(900,650);
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.