File tree Expand file tree Collapse file tree
ShimmerDriverPC/src/main/java/com/shimmerresearch/guiUtilities/plot Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments