Beispiel #1
0
 /// ------------------------------------------------------------------------------------
 public virtual AnnotationSegment Copy(TierBase owningTier)
 {
     return(new AnnotationSegment(owningTier, Start, End)
     {
         Text = Text
     });
 }
Beispiel #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));
        }
Beispiel #3
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, string text) : this(tier)
 {
     Text = text;
 }
Beispiel #4
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, float start, float end) : this(tier, new TimeRange(start, end))
 {
 }
Beispiel #5
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier, TimeRange timeRange) : this(tier)
 {
     TimeRange = timeRange;
 }
Beispiel #6
0
 /// ------------------------------------------------------------------------------------
 public AnnotationSegment(TierBase tier)
 {
     Tier      = tier;
     TimeRange = null;
 }