All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.media.TransitionEvent Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package javax.media;

/**
 * Standard JMF class -- see this class in the JMF Javadoc. Complete.
 *
 * @author Ken Larson
 *
 */
public class TransitionEvent extends ControllerEvent
{
    int previousState;
    int currentState;
    int targetState;

    public TransitionEvent(Controller from, int previousState,
            int currentState, int targetState)
    {
        super(from);
        this.previousState = previousState;
        this.currentState = currentState;
        this.targetState = targetState;
    }

    public int getCurrentState()
    {
        return currentState;
    }

    public int getPreviousState()
    {
        return previousState;
    }

    public int getTargetState()
    {
        return targetState;
    }

    @Override
    public String toString()
    {
        return getClass().getName() + "[source=" + getSource()
                + ",previousState=" + previousState + ",currentState="
                + currentState + ",targetState=" + targetState + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy