Class UIUpdaterSWT
java.lang.Object
com.biglybt.core.util.AEThread2
com.biglybt.ui.swt.uiupdater.UIUpdaterSWT
- All Implemented Interfaces:
ParameterListener, UIUpdater
-
Nested Class Summary
Nested classes/interfaces inherited from class AEThread2
AEThread2.threadWrapperNested classes/interfaces inherited from interface UIUpdater
UIUpdater.UIUpdaterListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CopyOnWriteList<UIUpdatable> (package private) WeakHashMap<UIUpdatable, Long[]> private static final Stringprivate static final Stringprivate static final booleanCalculate timer statistics for GUI updateprivate WeakHashMap<UIUpdatable, String> private static final booleanprivate booleanprivate intprivate intprivate static final LogIDsprivate CopyOnWriteList<UIUpdatable> private intprivate intprivate CopyOnWriteList<UIUpdatable> private AEMonitorprivate static UIUpdaterprivate intFields inherited from class AEThread2
TRACE_TIMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(UIUpdater.UIUpdaterListener listener) voidaddPeriodicUpdater(UIUpdatable updateable) TriggerUIUpdatable.updateUI()every secondvoidaddUpdater(UIUpdatable updateable) static voidstatic UIUpdaterbooleanisAdded(UIUpdatable updateable) private voidmakeDebugToolTip(Map<UIUpdatable, Long> timeMap) voidparameterChanged(String parameterName) Called, when a parameter has changed.voidremoveListener(UIUpdater.UIUpdaterListener listener) voidremovePeriodicUpdater(UIUpdatable updateable) voidremoveUpdater(UIUpdatable updateable) voidrun()voidstopIt()private voidupdate(CopyOnWriteList<UIUpdatable> updateables, boolean is_visible) Methods inherited from class AEThread2
createAndStartDaemon, createAndStartDaemon2, getName, interrupt, isAlive, isCurrentThread, isOurThread, join, setName, setOurThread, setOurThread, setPriority, start, toString
-
Field Details
-
LOGID
-
CFG_REFRESH_INTERVAL
- See Also:
-
CFG_REFRESH_INACTIVE_FACTOR
- See Also:
-
DEBUG_TIMER
private static final boolean DEBUG_TIMERCalculate timer statistics for GUI update -
DEBUG_UPDATEABLES
private static final boolean DEBUG_UPDATEABLES -
updater
-
waitTimeMS
private int waitTimeMS -
finished
private boolean finished -
updateables
-
debug_Updateables
-
alwaysUpdateables
-
updateables_mon
-
inactiveFactor
private int inactiveFactor -
inactiveTicks
private int inactiveTicks -
averageTimes
WeakHashMap<UIUpdatable, Long[]> averageTimes -
update_count
private int update_count -
listeners
-
perioidic_updateables
-
pu_counter
private int pu_counter
-
-
Constructor Details
-
UIUpdaterSWT
public UIUpdaterSWT()
-
-
Method Details
-
getInstance
-
destroyInstance
public static void destroyInstance() -
run
-
parameterChanged
Description copied from interface:ParameterListenerCalled, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChangedin interfaceParameterListener- Parameters:
parameterName- the name of the parameter that has changed
-
addUpdater
- Specified by:
addUpdaterin interfaceUIUpdater
-
isAdded
-
removeUpdater
- Specified by:
removeUpdaterin interfaceUIUpdater
-
stopIt
-
update
-
makeDebugToolTip
-
addListener
- Specified by:
addListenerin interfaceUIUpdater
-
removeListener
- Specified by:
removeListenerin interfaceUIUpdater
-
addPeriodicUpdater
Description copied from interface:UIUpdaterTriggerUIUpdatable.updateUI()every second- Specified by:
addPeriodicUpdaterin interfaceUIUpdater
-
removePeriodicUpdater
- Specified by:
removePeriodicUpdaterin interfaceUIUpdater
-