javax.media.TransitionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
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 + "]";
}
}