util
Interface Refreshing

All Known Subinterfaces:
ConditionalRefreshing
All Known Implementing Classes:
JAcquireDisplay, JAdapterDisplay, JAllskyChronology, JAllskyDisplay, JAntarcticaNight, JBaycamMosaic, JChronology, JDatabaseDisplay, JEarthNight, JEnvironmentDisplay, JEnvironmentDisplay.Headless, JFitsDisplay, JFrameParameter, JHeaderDisplay, JMasterDisplay, JNight, JObjectDisplay, JOffLimit, JOffsetDisplay, JParameterDisplay, JQuickDisplay, JSpectrumDisplay, JStella, JSwitchButton, JTargetTable.JRefreshScrollPane

public interface Refreshing

A refreshing object is anything that utilizes TimerTasks for updating. Object that change their internal state and that are not event-driven are the mainly implementors of this interface.
The refreshing object has to provide a period and a method that should be called repeatedly. The isFixedRate() method should return true, if scheduling at fixed rate is needed, otherwise a fixed delay schedule is assumed. Implementing objects work together with the ObjectRefresh class.


Method Summary
 long getRefreshInterval()
          Returns the period in milliseconds of the refresh intervall.
 boolean isFixedRate()
          Returns true if fixed rate scheduling is desired, otherwise fixed delay is assumed.
 void refresh()
          The method that should be invoked on refresh.
 

Method Detail

getRefreshInterval

long getRefreshInterval()
Returns the period in milliseconds of the refresh intervall.


isFixedRate

boolean isFixedRate()
Returns true if fixed rate scheduling is desired, otherwise fixed delay is assumed.

See Also:
Timer

refresh

void refresh()
The method that should be invoked on refresh. The method must not take any argument.