Skip to content

Commit 3408ca5

Browse files
committed
CIM-108
1 parent da879b3 commit 3408ca5

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

ShimmerDriverPC/src/main/java/com/shimmerresearch/guiUtilities/plot/BasicPlotManagerPC.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public ITrace2D getTraceFromName(String traceName) {
722722
return null;
723723
}
724724
}
725-
725+
726726
public void changeTraceColor(int index,int[] colorArray){
727727
//change color
728728
mListOfTraceColorsCurrentlyUsed.set(index, colorArray);
@@ -2218,6 +2218,26 @@ public void setXAxisDuration(double duration){
22182218
}
22192219
//----------------------FFT timer test code start ---------------------
22202220

2221+
/**
2222+
* @return the max size of the first trace within the list of traces, returns 0 if the list is empty
2223+
*/
2224+
public int getFirstTraceMaxSize(){
2225+
for(ITrace2D t:mListofTraces){
2226+
return t.getMaxSize();
2227+
}
2228+
return 0;
2229+
}
22212230

2231+
public int getFirstTraceSize(){
2232+
for(ITrace2D t:mListofTraces){
2233+
return t.getSize();
2234+
}
2235+
return 0;
2236+
}
22222237

2238+
public void setAllTraceSize(int Size){
2239+
for(ITrace2D t:mListofTraces){
2240+
((Trace2DLtd)t).setMaxSize(Size);
2241+
}
2242+
}
22232243
}

0 commit comments

Comments
 (0)