Example #1
0
 /// ------------------------------------------------------------------------------------
 public virtual AnnotationSegment Copy(TierBase owningTier)
 {
     return(new AnnotationSegment(owningTier, Start, End)
     {
         Text = Text
     });
 }
Example #2
0
        /// ------------------------------------------------------------------------------------
        private static TierColumnBase AnnotationColumnProvider(string id, TierBase tier)
        {
            if (id == ElanTranscriptionTierId)
            {
                return(new TranscriptionAnnotationColumn(tier));
            }

            return(id == ElanTranslationTierId ?
                   new TranslationAnnotationColumn(tier) :
                   new TextAnnotationColumn(tier));
        }
Example #3
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, string text) : this(tier)
 {
     Text = text;
 }
Example #4
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, float start, float end) : this(tier, new TimeRange(start, end))
 {
 }
Example #5
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, TimeRange timeRange) : this(tier)
 {
     TimeRange = timeRange;
 }
Example #6
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier)
 {
     Tier      = tier;
     TimeRange = null;
 }