private void notifySuccess(JiffleExecutorResult result) { for (JiffleEventListener listener : listeners) { listener.onCompletionEvent(new JiffleEvent(result)); } }
private void notifyFailure(JiffleExecutorResult result) { for (JiffleEventListener listener : listeners) { listener.onFailureEvent(new JiffleEvent(result)); } } }
/** * Creates a new instance of this class and initializes its * {@link JiffleFunctions} and {@link IntegerStack} objects. */ public AbstractJiffleRuntime(String[] variableNames) { _FN = new JiffleFunctions(); _stk = new IntegerStack(); _xres = Double.NaN; _yres = Double.NaN; _variableNames = variableNames; }
public void setTransform(CoordinateTransform transform, boolean defaultTransform) throws WorldNotSetException { if (transform != null && !isWorldSet()) { throw new WorldNotSetException(); } this.transform = transform; this.defaultTransform = defaultTransform; }
public void setTransform(CoordinateTransform transform, boolean defaultTransform) throws WorldNotSetException { if (transform != null && !isWorldSet()) { throw new WorldNotSetException(); } this.transform = transform; this.defaultTransform = defaultTransform; } }
public void setDefaultTransform(CoordinateTransform tr) throws JiffleException { super.setDefaultTransform(tr); for (DestinationImage destImage : _destImages.values()) { if (destImage.defaultTransform) { destImage.setTransform(tr, true); } } }
/** {@inheritDoc} */ public void setDestinationImage(String varName, WritableRenderedImage image) { try { doSetDestinationImage(varName, image, null); } catch (WorldNotSetException ex) { // No exception can be caused by a null transform } }
/** * Push a value onto the stack. * @param x the value * @return the value */ public synchronized Integer push(Integer x) { if (++index == data.length) { grow(); } data[index] = x; return x; }
/** * Called by the runtime object at the start of processing to set this * listener's task size field. * * @param numPixels task size as number of pixels to process */ public void setTaskSize(long numPixels) { taskSize = numPixels; init(); }
/** * Creates a new instance and initializes script-option variables. */ public AbstractIndirectRuntime(String[] variableNames) { super(variableNames); initOptionVars(); }
/** * {@inheritDoc} */ public String[] getDestinationVarNames() { return doGetImageVarNames(Jiffle.ImageRole.DEST); }
public void setDestinationImage(String varName) { try { doSetDestinationImage(varName, null); } catch (WorldNotSetException ex) { // Passing a null transform does not cause an Exception } }
/** Creates a new instance and initializes script-option variables. */ public AbstractDirectRuntime(String[] variableNames) { super(variableNames); initOptionVars(); }
/** * {@inheritDoc} */ public void setSourceImage(String varName, RenderedImage image) { try { doSetSourceImage(varName, image, null); } catch (WorldNotSetException ex) { // No exception can be caused by a null transform } }
/** * Creates a new instance of this class and initializes its * {@link JiffleFunctions} and {@link IntegerStack} objects. */ public AbstractJiffleRuntime(String[] variableNames) { _FN = new JiffleFunctions(); _stk = new IntegerStack(); _xres = Double.NaN; _yres = Double.NaN; _variableNames = variableNames; }
private void notifySuccess(JiffleExecutorResult result) { for (JiffleEventListener listener : listeners) { listener.onCompletionEvent(new JiffleEvent(result)); } }
private void notifyFailure(JiffleExecutorResult result) { for (JiffleEventListener listener : listeners) { listener.onFailureEvent(new JiffleEvent(result)); } } }
public void setTransform(CoordinateTransform transform, boolean defaultTransform) throws WorldNotSetException { if (transform != null && !isWorldSet()) { throw new WorldNotSetException(); } this.transform = transform; this.defaultTransform = defaultTransform; }
public void setTransform(CoordinateTransform transform, boolean defaultTransform) throws WorldNotSetException { if (transform != null && !isWorldSet()) { throw new WorldNotSetException(); } this.transform = transform; this.defaultTransform = defaultTransform; } }
/** {@inheritDoc} */ public void setDestinationImage(String varName, WritableRenderedImage image) { try { doSetDestinationImage(varName, image, null); } catch (WorldNotSetException ex) { // No exception can be caused by a null transform } }