APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.media.jfxmedia.events

public Class PlayerStateEvent

extends PlayerEvent
Class Inheritance

An event indicating a change in the state of a media player.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private String
private PlayerStateEvent.PlayerState
private double

Constructor Summary

AccessConstructor and Description
public
PlayerStateEvent(PlayerStateEvent.PlayerState
The state of the player.
state
,
double
The time in seconds when this event occurred.
time
)

Constructor.

public
PlayerStateEvent(PlayerStateEvent.PlayerState
The state of the player.
state
,
double
The time in seconds when this event occurred.
time
,
String
Carries auxiliary message. HALTED state has additional information.
message
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The message or null.
getMessage
()

Auxiliary message information when available.

public PlayerStateEvent.PlayerState

Returns:

The player's state.
getState
()

Retrieves the state of the media player.

public double

Returns:

The time in seconds of the state transition.
getTime
()

Presentation time when the event occurred.

Field Detail

messageback to summary
private String message
playerStateback to summary
private PlayerStateEvent.PlayerState playerState
playerTimeback to summary
private double playerTime

Constructor Detail

PlayerStateEventback to summary
public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time)

Constructor.

Parameters
state:PlayerStateEvent.PlayerState

The state of the player.

time:double

The time in seconds when this event occurred.

Exceptions
IllegalArgumentException:
if state is null or time<0.0.
PlayerStateEventback to summary
public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time, String message)

Constructor.

Parameters
state:PlayerStateEvent.PlayerState

The state of the player.

time:double

The time in seconds when this event occurred.

message:String

Carries auxiliary message. HALTED state has additional information.

Exceptions
IllegalArgumentException:
if state is null or time<0.0.

Method Detail

getMessageback to summary
public String getMessage()

Auxiliary message information when available.

Returns:String

The message or null.

getStateback to summary
public PlayerStateEvent.PlayerState getState()

Retrieves the state of the media player.

Returns:PlayerStateEvent.PlayerState

The player's state.

getTimeback to summary
public double getTime()

Presentation time when the event occurred.

Returns:double

The time in seconds of the state transition.

com.sun.media.jfxmedia.events back to summary

public final Enum PlayerStateEvent.PlayerState

extends Enum<PlayerStateEvent.PlayerState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState
public static final PlayerStateEvent.PlayerState

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PlayerStateEvent.PlayerState
public static PlayerStateEvent.PlayerState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FINISHEDback to summary
public static final PlayerStateEvent.PlayerState FINISHED
HALTEDback to summary
public static final PlayerStateEvent.PlayerState HALTED
PAUSEDback to summary
public static final PlayerStateEvent.PlayerState PAUSED
PLAYINGback to summary
public static final PlayerStateEvent.PlayerState PLAYING
READYback to summary
public static final PlayerStateEvent.PlayerState READY
STALLEDback to summary
public static final PlayerStateEvent.PlayerState STALLED
STOPPEDback to summary
public static final PlayerStateEvent.PlayerState STOPPED
UNKNOWNback to summary
public static final PlayerStateEvent.PlayerState UNKNOWN

Constructor Detail

PlayerStateback to summary
private PlayerState()

Method Detail

valueOfback to summary
public static PlayerStateEvent.PlayerState valueOf(String name)
valuesback to summary
public static PlayerStateEvent.PlayerState[] values()