private void WriteInColorStyled <T>(string trailer, T target, StyleSheet styleSheet) { TextAnnotator annotator = new TextAnnotator(styleSheet); List <KeyValuePair <string, Color> > annotationMap = annotator.GetAnnotationMap(target.AsString()); MapToScreen(annotationMap, trailer); }
private void WriteInColorStyled <T, U>(string trailer, T target0, U target1, U target2, U target3, StyleSheet styleSheet) { TextAnnotator annotator = new TextAnnotator(styleSheet); string formatted = string.Format(target0.ToString(), target1, target2, target3); List <KeyValuePair <string, Color> > annotationMap = annotator.GetAnnotationMap(formatted); MapToScreen(annotationMap, trailer); }
private void WriteAsciiInColorStyled(string trailer, StyledString target, StyleSheet styleSheet) { TextAnnotator annotator = new TextAnnotator(styleSheet); List <KeyValuePair <string, Color> > annotationMap = annotator.GetAnnotationMap(target.AbstractValue); // Should eventually be target.AsStyledString() everywhere...? PopulateColorGeometry(annotationMap, target); MapToScreen(target, trailer); }