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 AbstractIndirectRuntime(String[] variableNames) { super(variableNames); initOptionVars(); }
/** * {@inheritDoc} */ public void setDefaultBounds() { String imageName = _images.keySet().iterator().next(); RenderedImage refImage = _images.get(imageName).image; Rectangle rect = new Rectangle( refImage.getMinX(), refImage.getMinY(), refImage.getWidth(), refImage.getHeight()); setWorldByResolution(rect, 1, 1); }
/** * {@inheritDoc} */ public void setDefaultBounds() { String imageName = _images.keySet().iterator().next(); RenderedImage refImage = _images.get(imageName).image; Rectangle rect = new Rectangle( refImage.getMinX(), refImage.getMinY(), refImage.getWidth(), refImage.getHeight()); setWorldByResolution(rect, 1, 1); }
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 AbstractIndirectRuntime(String[] variableNames) { super(variableNames); initOptionVars(); }
public void setDestinationImage(String varName, CoordinateTransform tr) throws JiffleException { try { doSetDestinationImage(varName, tr); } catch (WorldNotSetException ex) { throw new JiffleException(String.format( "Setting a coordinate tranform for a source (%s) without" + "having first set the world bounds and resolution", varName)); } }
public void setDestinationImage(String varName, CoordinateTransform tr) throws JiffleException { try { doSetDestinationImage(varName, tr); } catch (WorldNotSetException ex) { throw new JiffleException(String.format( "Setting a coordinate tranform for a source (%s) without" + "having first set the world bounds and resolution", varName)); } }