MarkerSegment findMarkerSegment(int tag){
  Iterator iter=markerSequence.iterator();
  while (iter.hasNext()) {
    MarkerSegment seg=(MarkerSegment)iter.next();
    if (seg.tag == tag) {
      return seg;
    }
  }
  return null;
}

MarkerSegment findMarkerSegment ( int tag ) { Iterator iter = markerSequence . iterator ( ) ; while ( iter . hasNext ( ) ) { MarkerSegment seg = ( MarkerSegment ) iter . next ( ) ; if ( seg . tag == tag ) { return seg ; } } return null ; }
returns the first markersegment object in the list with the given tag , or null if none is found .
