Class LiveVisualizeViewModelBase<TFile,TStatistics>
A base implementation for viewmodels that want to support live views. In a live view, the datasource is the session listener instead of a VISAB file. Live views extend regular non live views by the capability of reacting to data the moment it is processed by the session listener.
Inheritance
java.lang.Object
LiveVisualizeViewModelBase<TFile,TStatistics>
Implements
org.visab.gui.visualize.ILiveViewModel<TStatistics>
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public abstract class LiveVisualizeViewModelBase<TFile,TStatistics> extends VisualizeViewModelBase<TFile> implements ILiveViewModel<TStatistics>
Type Parameters
Name | Description |
---|---|
TFile | |
TStatistics |
Constructors
LiveVisualizeViewModelBase()
Declaration
public LiveVisualizeViewModelBase()
Fields
listener
The listener that the viewmodel is docked onto.
Declaration
protected ILiveViewable<TStatistics> listener
Field Value
Type | Description |
---|---|
ILiveViewable<TStatistics> |
liveViewActiveProperty
Whether the current listeners corresponding transmission session is still active.
Declaration
protected BooleanProperty liveViewActiveProperty
Field Value
Type | Description |
---|---|
javafx.beans.property.BooleanProperty |
Methods
initialize(ILiveViewable<? extends IStatistics> listener)
Initalizes the viewmodel with the listener by docking on to it.
Declaration
public void initialize(ILiveViewable<? extends IStatistics> listener)
Parameters
Type | Name | Description |
---|---|---|
ILiveViewable<? extends org.visab.globalmodel.IStatistics> | listener |
liveViewActiveProperty()
Whether the current listeners corresponding transmission session is still active.
Declaration
public BooleanProperty liveViewActiveProperty()
Returns
Type | Description |
---|---|
javafx.beans.property.BooleanProperty | The boolean property |
onSessionClosed()
Called by the docked listener upon closing the session.
Declaration
public void onSessionClosed()
onStatisticsAdded(TStatistics newStatistics)
Called by the docked listener upon reciving new statistics.
Declaration
public abstract void onStatisticsAdded(TStatistics newStatistics)
Parameters
Type | Name | Description |
---|---|---|
TStatistics | newStatistics |
Implements
org.visab.gui.visualize.ILiveViewModel<TStatistics>