Top Description Fields Constructors Methods
com.sun.media.jfxmedia.events

public Class MarkerEvent

extends PlayerEvent
Class Inheritance

The MarkerEvent is returned on marker notifications to a PlayerStateListener. Markers may be embedded in the media source or programmatically inserted.
See Also
com.sun.media.jfxmedia.Media#addMarker(java.lang.String, double), com.sun.media.jfxmedia.events.PlayerStateListener

Field Summary

Modifier and TypeField and Description
private String
private double

Constructor Summary

AccessConstructor and Description
public
MarkerEvent(String
The name of the marker.
name
,
double
The presentation (stream) time of the marker.
time
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The marker name
getMarkerName
()

Returns the marker name.

public double

Returns:

The marker time
getPresentationTime
()

Returns the presentation time of the Marker.

Field Detail

markerNameback to summary
private String markerName
presentationTimeback to summary
private double presentationTime

Constructor Detail

MarkerEventback to summary
public MarkerEvent(String name, double time)

Constructor.

Parameters
name:String

The name of the marker.

time:double

The presentation (stream) time of the marker.

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

Method Detail

getMarkerNameback to summary
public String getMarkerName()

Returns the marker name.

Returns:String

The marker name

getPresentationTimeback to summary
public double getPresentationTime()

Returns the presentation time of the Marker.

Returns:double

The marker time