Class MessageLogHighlighter
java.lang.Object
github.jaffe2718.mccs.jfx.unit.font.MessageLogHighlighter
To be used to highlight the message log in outLogCodeArea
There are two kinds of message log:
1. The game massage, begin with [Info], the "[Info]" is green color
2. Java exception, except the game massage are all Java exception, red color
Don't extend this class
Just use the static methods
There are two kinds of message log:
1. The game massage, begin with [Info], the "[Info]" is green color
2. Java exception, except the game massage are all Java exception, red color
Don't extend this class
Just use the static methods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyHighlighting
(@NotNull org.fxmisc.richtext.CodeArea target) Add the highlighter to the target CodeArea
-
Constructor Details
-
MessageLogHighlighter
public MessageLogHighlighter()
-
-
Method Details
-
applyHighlighting
public static void applyHighlighting(@NotNull @NotNull org.fxmisc.richtext.CodeArea target) Add the highlighter to the target CodeArea- Parameters:
target
- the CodeArea to be highlighted
-