@@ -95,6 +95,7 @@ public class BasicPlotManagerPC extends AbstractPlotManager {
9595 private boolean mIsDebugMode = false ;
9696 private boolean mIsTraceDataBuffered = false ;
9797 protected boolean isFirstPointOnFillTrace = true ;
98+ protected boolean isSingleEventMarkerTest = true ;
9899
99100 public PlotCustomFeature pcf =null ;
100101
@@ -1948,7 +1949,8 @@ public void filterDataAndPlot(ObjectCluster ojc) throws Exception {
19481949
19491950 //prevent eventmarkers from plotting back in time
19501951 boolean eventMarker =false ;
1951- if (props [0 ].equals (mEventMarkerCheck ) && shimmerName .equals (props [0 ])){
1952+
1953+ if (isEventMarkerData (shimmerName , props [0 ])){
19521954 if (xData >mCurrentXValue ){
19531955 eventMarker =true ;
19541956 }
@@ -2062,6 +2064,21 @@ else if(isXAxisFrequency){
20622064 }
20632065 }
20642066
2067+ public void setEventMarkerDataCheck (boolean isSingleEventMarkerTest ) {
2068+ this .isSingleEventMarkerTest = isSingleEventMarkerTest ;
2069+ }
2070+
2071+ private boolean isEventMarkerData (String shimmerName , String signalName ) {
2072+ if (isSingleEventMarkerTest ) {
2073+ // used for Consensys (CON-628)
2074+ return mEventMarkerCheck .equals (signalName );
2075+ }
2076+ else {
2077+ // used for NeuroLynQ
2078+ return mEventMarkerCheck .equals (signalName ) && shimmerName .equals (signalName );
2079+ }
2080+ }
2081+
20652082 /**
20662083 * Method to add a dummy point as the first point in the trace if the line style is fill
20672084 * so that the chart doesn't plot from (0, 0), this method is overriden in PlotManagerPC
0 commit comments