Class ForumLikeMarkupParser

java.lang.Object
com.ardor3d.extension.ui.text.parser.ForumLikeMarkupParser
All Implemented Interfaces:
StyleParser

public class ForumLikeMarkupParser extends Object implements StyleParser
  • Constructor Details

    • ForumLikeMarkupParser

      public ForumLikeMarkupParser()
  • Method Details

    • parseStyleSpans

      public String parseStyleSpans(String text, List<StyleSpan> store)
      Description copied from interface: StyleParser
      Parse the given text for markup indicating style spans and store the spans in the given store, returning the remaining as plaintext.
      Specified by:
      parseStyleSpans in interface StyleParser
      Parameters:
      text - The text containing both plaintext and style markup.
      store - The store for our parsed style spans.
      Returns:
      the plain text portion of our incoming text.
    • addStyleMarkup

      public String addStyleMarkup(String plainText, List<StyleSpan> spans)
      Description copied from interface: StyleParser
      Add markup describing the given spans, to the given plaintext. Note: spans with styles this parser does not understand will be ignored.
      Specified by:
      addStyleMarkup in interface StyleParser
      Parameters:
      plainText - the plain text to decorate with markup.
      spans - our style spans
      Returns:
      the marked up text.