/** * 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(); }
/** * 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(); }
/** * Sets the update interval expressed a proportion of the total number of * pixels. * * @param propPixels proportion of pixels processed between each call to the listener */ public void setUpdateInterval(double propPixels) { updateProp = Math.min(Math.max(propPixels, 0.0), 1.0); init(); }
/** * Sets the update interval expressed a proportion of the total number of * pixels. * * @param propPixels proportion of pixels processed between each call to the listener */ public void setUpdateInterval(double propPixels) { updateProp = Math.min(Math.max(propPixels, 0.0), 1.0); init(); }