org.keridwen.modelling.monitoring.model
Interface MonitoringModelListener

All Known Subinterfaces:
Visualizer
All Known Implementing Classes:
AbstractLiveMonitoringMap2DViewer, ComboBoxViewer, LiveMonitoringCurvesTreeTableViewer, LiveMonitoringCurvesViewer, LiveMonitoringMap2DViewer, LiveMonitoringMap2DViewerComboBox, LiveMonitoringPolyVisualizers, LiveMonitoringSpectrogramViewer, LiveMonitoringTreeTableViewer

public interface MonitoringModelListener

Interface which defines actions supported by the listeners of the AbstractMonitoringModel.


Method Summary
 void categoryMonitoringNodeAdded(CategoryMonitoringNode categoryMonitoringNode)
          A new MonitoringNode is added in the model.
 void cleanLastMeasures()
          Re-initialize all measures considered like last measures.
 int getLastCurveId()
           
 void monitoringNodeColorChanged(MonitoringNode monitoringNode, Color newColor)
          The color of the curve represented by a MonitoringNode stored in the MonitoringModel has changed.
 void monitoringNodeRemoved(MonitoringNode monitoringNode)
          A new MonitoringNode is removed in the model.
 void monitoringNodeVisibilityChanged(MonitoringNode monitoringNode, boolean visibility)
          the visibility of a MonitoringNode stored in the MonitoringModel has changed.
 void notifyModelChanged()
          Notify the model changed.
 void notifyNewCurves(MonitoringNode monitoringNode, String visualizerName, String curveName, String xUnitName, String yUnitName, String zUnitName, String chartTitle, String tabTitle)
          Notify a new curve is added to the MonitoringModelListeners stored in this AbstractMonitoringModel.
 void notifyNewMeasure(int curveId, double time, double doubleValue, String curveName, MonitoringNode monitoringNode, String xUnitName, String yUnitName)
          Notify listeners, a new measure is done.
 void removeLastMeasures()
          Remove last measures computed.
 

Method Detail

notifyNewMeasure

void notifyNewMeasure(int curveId,
                      double time,
                      double doubleValue,
                      String curveName,
                      MonitoringNode monitoringNode,
                      String xUnitName,
                      String yUnitName)
Notify listeners, a new measure is done.

Parameters:
curveId - the id of the curve plotted in the JFreeChart object.
time - the new time measure done.
doubleValue - the new valued computed associated to the time.
curveName - the name of the curve

categoryMonitoringNodeAdded

void categoryMonitoringNodeAdded(CategoryMonitoringNode categoryMonitoringNode)
A new MonitoringNode is added in the model.

Parameters:
monitoringNode - is the MonitoringNode added.

monitoringNodeRemoved

void monitoringNodeRemoved(MonitoringNode monitoringNode)
A new MonitoringNode is removed in the model.

Parameters:
monitoringNode - is the MonitoringNode removed.

monitoringNodeVisibilityChanged

void monitoringNodeVisibilityChanged(MonitoringNode monitoringNode,
                                     boolean visibility)
the visibility of a MonitoringNode stored in the MonitoringModel has changed.

Parameters:
monitoringNode - The MonitoringNode which has this visibility which has changed.
visibility - the new value of the visibility.

monitoringNodeColorChanged

void monitoringNodeColorChanged(MonitoringNode monitoringNode,
                                Color newColor)
The color of the curve represented by a MonitoringNode stored in the MonitoringModel has changed.

Parameters:
monitoringNode - The MonitoringNode which has this color which has changed.
newColor - the new value of the color.

notifyNewCurves

void notifyNewCurves(MonitoringNode monitoringNode,
                     String visualizerName,
                     String curveName,
                     String xUnitName,
                     String yUnitName,
                     String zUnitName,
                     String chartTitle,
                     String tabTitle)
Notify a new curve is added to the MonitoringModelListeners stored in this AbstractMonitoringModel.

Parameters:
monitoringNode - the MonitoringNode which contains informations ( DataField ) used to create the new curve.
visualizerName - the name of the visualizer used to know where the new curves must be added.
curveName - the name of the curve used to define the legend.
xUnitName - the name of the x-axis of the new curve.
yUnitName - the name of the y-axis of the new curve.
zUnitName - the name of the z-axis of the new curve.
tabTitle - the name of the tab where is strored this visualizer. It is used to know if you must add the new curve in this visualizer or not.

getLastCurveId

int getLastCurveId()
Returns:
a unique identifier used to define the id of a new curve which must be added to a view.

notifyModelChanged

void notifyModelChanged()
Notify the model changed. This method is used to update user interface.


removeLastMeasures

void removeLastMeasures()
Remove last measures computed.


cleanLastMeasures

void cleanLastMeasures()
Re-initialize all measures considered like last measures.



Copyright © 2012-2013 Artenum. All Rights Reserved.