-
public interface ChartModelProducer<Model extends ChartEntryModel>
-
-
Method Summary
Modifier and Type Method Description abstract ModelgetModel()Returns the ChartEntryModel for this ChartModelProducer synchronously. abstract UnitprogressModel(Object key, Float progress)Calculates an intermediate list of entries for difference animations for the associated key, where progress is the balance between the previous and current lists of entries. abstract UnitregisterForUpdates(Object key, Function0<Unit> updateListener, Function0<Model> getOldModel, Function1<Model, Unit> onModel)Registers an update listener associated with a key. abstract BooleanisRegistered(Object key)Checks if an update listener with the given key is registered. abstract UnitunregisterFromUpdates(Object key)Unregisters the update listener associated with the given key. -
-
Method Detail
-
getModel
abstract Model getModel()
Returns the ChartEntryModel for this ChartModelProducer synchronously.
-
progressModel
abstract Unit progressModel(Object key, Float progress)
-
registerForUpdates
abstract Unit registerForUpdates(Object key, Function0<Unit> updateListener, Function0<Model> getOldModel, Function1<Model, Unit> onModel)
Registers an update listener associated with a key.
- Parameters:
key- associates a receiver with its listeners.updateListener- is called immediately in this function, and when the ChartModelProducer receives a new list of entries.onModel- called when the ChartModelProducer has generated the Model.
-
isRegistered
abstract Boolean isRegistered(Object key)
Checks if an update listener with the given key is registered.
-
unregisterFromUpdates
abstract Unit unregisterFromUpdates(Object key)
Unregisters the update listener associated with the given key.
-
-
-
-