Package org.tuba.representation.styledtext

Examples of org.tuba.representation.styledtext.StyledTextRepresentation


      IArtefactRepresentation representation, Configuration configuration) {
    if(representation == null || !StyledTextRepresentation.TYPE.equals(representation.getType())){
      return null;
    }

    StyledTextRepresentation rtfText = (StyledTextRepresentation) representation;
    String text = rtfText.getDocument();
    String id = generateID();

    TextInfo textInfo = new TextInfo(text, id, VertOrientation.TOP, HoriOrientation.LEFT, TextContentAnchorType.AT_CHARACTER);

View Full Code Here


    IPlainText2StyledTextMapping mapping = new RTFMapping();
//    IPlainText2StyledTextMapping mapping = new HTMLMapping();
    String rtfText = getStyledText(plainText, emftextRep, mapping);

    return new StyledTextRepresentation(rtfText);
  }
View Full Code Here

TOP

Related Classes of org.tuba.representation.styledtext.StyledTextRepresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.