com.trolltech.qt.core
Class QTimeLine.State

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.core.QTimeLine.State
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QTimeLine

public static final class QTimeLine.State
extends java.lang.Enum
implements QtEnumerator

This enum describes the state of the timeline.

See also:
state(), and stateChanged() .

See Also:
Serialized Form

Field Summary
static QTimeLine.State NotRunning
          The timeline is not running.
static QTimeLine.State Paused
          The timeline is paused (i.e., temporarily suspended).
static QTimeLine.State Running
          The timeline is running.
 
Method Summary
static QTimeLine.State resolve(int value)
          Returns the QTimeLine$State constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QTimeLine.State valueOf(java.lang.String name)
           
static QTimeLine.State[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NotRunning

public static final QTimeLine.State NotRunning
The timeline is not running. This is the initial state of QTimeLine, and the state QTimeLine reenters when finished. The current time, frame and value remain unchanged until either setCurrentTime() is called, or the timeline is started by calling start().


Paused

public static final QTimeLine.State Paused
The timeline is paused (i.e., temporarily suspended). Calling setPaused(false) will resume timeline activity.


Running

public static final QTimeLine.State Running
The timeline is running. While control is in the event loop, QTimeLine will update its current time at regular intervals, emitting valueChanged() and frameChanged() when appropriate.

Method Detail

values

public static QTimeLine.State[] values()

valueOf

public static QTimeLine.State valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QTimeLine.State resolve(int value)
Returns the QTimeLine$State constant with the specified int.