Package squidpony.panel
Class IMarkup.StringMarkup
java.lang.Object
squidpony.panel.IMarkup.StringMarkup
public static class IMarkup.StringMarkup extends Object implements IMarkup<String>
Probably not that useful on its own, but may be good as an example.
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description StringMarkup()
-
Method Summary
Modifier and Type Method Description String
closeMarkup()
Implementations should use this method to get a String that ends any section of markup currently ongoing.String
getMarkup(String value)
Implementations should use this method to get a String that describes the given value, or begins some section of markup that uses a quality specified by value, such as a color or text size.
-
Constructor Details
-
StringMarkup
public StringMarkup()
-
-
Method Details
-
getMarkup
Description copied from interface:IMarkup
Implementations should use this method to get a String that describes the given value, or begins some section of markup that uses a quality specified by value, such as a color or text size. -
closeMarkup
Description copied from interface:IMarkup
Implementations should use this method to get a String that ends any section of markup currently ongoing. This may be the empty String in many cases.- Specified by:
closeMarkup
in interfaceIMarkup<String>
- Returns:
- the requisite String to end any ongoing sections of markup
-