/** * Add an activity to the activity scheduler associated with this root. * Activities are given a chance to run during each call to the roots * <code>processInputs</code> method. When the activity has finished running * it will automatically get removed. * * @param activity Activity that should be scheduled * @return whether it has been scheduled (always true) */ public boolean addActivity(final PActivity activity) { getActivityScheduler().addActivity(activity); return true; }
/** * Return true if any activities that respond with true to the method * isAnimating were run in the last PRoot.processInputs() loop. This values * is used by this canvas to determine the render quality to use for the * next paint. * * @return whether the PCanvas is currently being animated */ public boolean getAnimating() { return getRoot().getActivityScheduler().getAnimating(); }
/** * Return true if any activities that respond with true to the method * isAnimating were run in the last PRoot.processInputs() loop. This values * is used by this canvas to determine the render quality to use for the * next paint. * * @return true if there is an animating activity that is currently active */ public boolean getAnimating() { return getRoot().getActivityScheduler().getAnimating(); }
public void widgetDisposed(final DisposeEvent de) { getRoot().getActivityScheduler().removeAllActivities(); SWTGraphics2D.decrementGCCount(); } });
r.getActivityScheduler().addActivity(transformActivity);