Class Parser
java.lang.Object
com.realtime.crossfire.jxclient.gui.log.Parser
Parser for parsing drawextinfo messages received from a Crossfire server to
update a
Buffer instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(@NotNull CharSequence text, int type, int subtype, @NotNull Color defaultColor, @NotNull Buffer buffer) Parses a text message.voidparseWithoutMediaTags(@NotNull CharSequence text, int type, int subtype, @NotNull Color color, @NotNull Buffer buffer) Parses a plain text message without media tags.static @NotNull StringReturns the string representation for a color.
-
Constructor Details
-
Parser
Creates a new instance.- Parameters:
selectionColor- the selection color
-
-
Method Details
-
parse
public void parse(@NotNull @NotNull CharSequence text, int type, int subtype, @NotNull @NotNull Color defaultColor, @NotNull @NotNull Buffer buffer) Parses a text message.- Parameters:
text- the text message to parsetype- the message typesubtype- the message subtypedefaultColor- the default color to usebuffer- the buffer to update
-
parseWithoutMediaTags
public void parseWithoutMediaTags(@NotNull @NotNull CharSequence text, int type, int subtype, @NotNull @NotNull Color color, @NotNull @NotNull Buffer buffer) Parses a plain text message without media tags.- Parameters:
text- the text message to parsetype- the message typesubtype- the message subtypecolor- the color to usebuffer- the buffer to update
-
toString
Returns the string representation for a color.- Parameters:
color- the color to convert- Returns:
- the string representation
-