APIdia Launch Partner
Top Description Methods
com.sun.scenario.animation.shared

public Interface PulseReceiver


A PulseReceiver can receive regular pulses from the PrimaryTimer. Removing receivers from the PrimaryTimer needs to be in-sync with the timePulse-iteration. The receiver is removed if timePulse returns true. The reason we do not use Callback or some other pre-existing interface is that we want an interface that takes a primitive long, whereas Callback would require a wrapped Long and would have some impact on performance.

Method Summary

Modifier and TypeMethod and Description
public void

Returns:

true if PulseReceiver should be removed from the PrimaryTimer.
timePulse
(long
Timestamp of the pulse.
now
)

Callback triggered to send regular pulses to the PulseReceiver

Method Detail

timePulseback to summary
public void timePulse(long now)

Callback triggered to send regular pulses to the PulseReceiver

Parameters
now:long

Timestamp of the pulse.

Returns:void

true if PulseReceiver should be removed from the PrimaryTimer.