站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AnimatorEvent (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.animator
Class AnimatorEvent

java.lang.Object
  extended by org.netbeans.api.visual.animator.AnimatorEvent

public final class AnimatorEvent
extends Object

This is an animator event which is used by AnimatorListener. It contains a reference to the animator and animation progress value which is can be used only in case of AnimatorListener.animatorPreTick and AnimatorListener.animatorPostTick methods.


Method Summary
 Animator getAnimator()
          Returns the related animator instance.
 double getProgress()
          The animation progress value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnimator

public Animator getAnimator()
Returns the related animator instance.

Returns:
the animator

getProgress

public double getProgress()
The animation progress value. Contains valid value only when the event is received as an argument of AnimatorListener.animatorPreTick and AnimatorListener.animatorPostTick methods.

Returns:
the progress value; valid range is from 0.0 to 1.0 where 0.0 represents animator-start and 1.0 represents animator-end; Double.NaN if the progress value is not available

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.