Package org.jwildfire.script

Examples of org.jwildfire.script.Action


  public void revertScriptAction() {
    String actionStr = null;
    int row = actionTable.getSelectedRow();
    if ((row >= 0) && (row < actionList.size())) {
      Action action = actionList.get(row);
      StringBuffer b = new StringBuffer();
      action.saveToBuffer(b, "\n");
      actionStr = b.toString();
      envelopeController.setCurrAction(action);
    }
    else {
      envelopeController.setCurrAction(null);
View Full Code Here


      scriptFrameREd.setText(String.valueOf(frame));
      scriptFramesREd.setText(String.valueOf(frames));

      int row = actionTable.getSelectedRow();
      if ((row >= 0) && (row < actionList.size())) {
        Action action = actionList.get(row);
        if (action.hasEnvelopes()) {
          for (Parameter parameter : action.getParameterList()) {
            Envelope envelope = parameter.getEnvelope();
            if (envelope != null) {
              double val = envelope.evaluate(frame);
              parameter.setValue(Tools.doubleToString(val));
            }
          }

          StringBuffer b = new StringBuffer();
          action.saveToBuffer(b, "\n");
          String actionStr = b.toString();
          scriptActionTextArea.setText(actionStr);
          scriptActionTextArea.select(0, 0);
        }
      }
View Full Code Here

  }

  public void syncActionAction() throws Exception {
    int row = actionTable.getSelectedRow();
    if ((row >= 0) && (row < actionList.size())) {
      Action action = actionList.get(row);
      switch (action.getActionType()) {
        case EXECUTE_CREATOR:
          selectCreator(action.getParameter());

          action.setProperties(scriptProcessor.getCreator(),
              scriptProcessor.getBufferList());
          break;
        case EXECUTE_TRANSFORMER:
          selectTransformer(action.getParameter());
          action.setProperties(scriptProcessor.getTransformer(),
              scriptProcessor.getBufferList());
          break;
        case EXECUTE_LOADER:
          selectLoader(action.getParameter());
          action.setProperties(scriptProcessor.getLoader(),
              scriptProcessor.getBufferList());
          break;
      }
    }
  }
View Full Code Here

    }

    @Override
    public Object getValueAt(int row, int col) {
      if ((row >= 0) && (row < actionList.size())) {
        Action a = actionList.get(row);
        switch (col) {
          case 0:
            return a.getActionType().toString();
          case 1:
            return a.getParameter();
          case 2:
            return a.getInputBuffer();
          case 3:
            return a.getOutputBuffer();
          case 4:
            return a.getOutputBuffer3D();
        }
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of org.jwildfire.script.Action

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.