/// ------------------------------------------------------------------------------------ public virtual AnnotationSegment Copy(TierBase owningTier) { return(new AnnotationSegment(owningTier, Start, End) { Text = Text }); }
/// ------------------------------------------------------------------------------------ private static TierColumnBase AnnotationColumnProvider(string id, TierBase tier) { if (id == ElanTranscriptionTierId) { return(new TranscriptionAnnotationColumn(tier)); } return(id == ElanTranslationTierId ? new TranslationAnnotationColumn(tier) : new TextAnnotationColumn(tier)); }
/// ------------------------------------------------------------------------------------ public AnnotationSegment(TierBase tier, string text) : this(tier) { Text = text; }
/// ------------------------------------------------------------------------------------ public AnnotationSegment(TierBase tier, float start, float end) : this(tier, new TimeRange(start, end)) { }
/// ------------------------------------------------------------------------------------ public AnnotationSegment(TierBase tier, TimeRange timeRange) : this(tier) { TimeRange = timeRange; }
/// ------------------------------------------------------------------------------------ public AnnotationSegment(TierBase tier) { Tier = tier; TimeRange = null; }