/** * Pauses the animation. */ public void pauseAnimation() { animation.pause(); }
/** * Pauses this alpha object. The current system time when this * method is called will be used in place of the actual current * time when calculating subsequent alpha values. This has the * effect of freezing the interpolator at the time the method is * called. * * @since Java 3D 1.3 */ public void pause() { pause(J3dClock.currentTimeMillis()); }
@Override public void readObject( DataInput in ) throws IOException { super.readObject( in ); Alpha alpha = (Alpha)node; alpha.setAlphaAtOneDuration( in.readLong() ); alpha.setAlphaAtZeroDuration( in.readLong() ); alpha.setDecreasingAlphaDuration( in.readLong() ); alpha.setDecreasingAlphaRampDuration( in.readLong() ); alpha.setIncreasingAlphaDuration( in.readLong() ); alpha.setIncreasingAlphaRampDuration( in.readLong() ); alpha.setLoopCount( in.readInt() ); alpha.setMode( in.readInt() ); alpha.setPhaseDelayDuration( in.readLong() ); alpha.setStartTime( in.readLong() ); alpha.setTriggerTime( in.readLong() ); long x = in.readLong(); if (x!=0L) alpha.pause(x); }
/** * @see PointList.PointListListener#highlighted */ @Override public void highlighted(final BenesNamedPoint p) { final int i = points.indexOf(p); final BranchGroup bg = (BranchGroup) getChild(i); final TransformGroup tg = (TransformGroup) bg.getChild(0); final ScaleInterpolator si = (ScaleInterpolator) tg.getChild(1); final Alpha a = si.getAlpha(); si.setEnable(true); a.resume(); try { Thread.sleep(600); } catch (final Exception e) {} a.pause(); si.setEnable(false); }
animation.pause(); animation.setStartTime(System.currentTimeMillis()); final BranchGroup bg = new BranchGroup();
alpha.setIncreasingAlphaDuration(300); alpha.setDecreasingAlphaDuration(300); alpha.pause(); final ScaleInterpolator si = new ScaleInterpolator(alpha, sig); si.setMaximumScale(5 * radius);