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