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