Class ForumLikeMarkupParser
java.lang.Object
com.ardor3d.extension.ui.text.parser.ForumLikeMarkupParser
- All Implemented Interfaces:
StyleParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddStyleMarkup
(String plainText, List<StyleSpan> spans) Add markup describing the given spans, to the given plaintext.parseStyleSpans
(String text, List<StyleSpan> store) Parse the given text for markup indicating style spans and store the spans in the given store, returning the remaining as plaintext.
-
Constructor Details
-
ForumLikeMarkupParser
public ForumLikeMarkupParser()
-
-
Method Details
-
parseStyleSpans
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 interfaceStyleParser
- 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
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 interfaceStyleParser
- Parameters:
plainText
- the plain text to decorate with markup.spans
- our style spans- Returns:
- the marked up text.
-