Class MessageBufferUpdater
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater
-
public class MessageBufferUpdater extends java.lang.ObjectAdds drawinfo, drawextinfo, and query messages to aBufferinstance.
-
-
Field Summary
Fields Modifier and Type Field Description static intNUM_COLORSThe number of supported colors.
-
Constructor Summary
Constructors Constructor Description MessageBufferUpdater(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull Buffer buffer, @NotNull java.awt.Color defaultColor)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Releases resources.static @NotNull java.lang.StringgetColorName(int index)Returns the name of a color index.voidsetColor(int index, @NotNull java.awt.Color color)Sets a color mapping.voidsetTypes(int types)Sets the message types to show.
-
-
-
Field Detail
-
NUM_COLORS
public static final int NUM_COLORS
The number of supported colors.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageBufferUpdater
public MessageBufferUpdater(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull Buffer buffer, @NotNull @NotNull java.awt.Color defaultColor)Creates a new instance.- Parameters:
crossfireServerConnection- the connection instancebuffer- the buffer to updatedefaultColor- the default color to use for undefined colors indices
-
-
Method Detail
-
dispose
public void dispose()
Releases resources.
-
getColorName
@NotNull public static @NotNull java.lang.String getColorName(int index)
Returns the name of a color index.- Parameters:
index- the color index- Returns:
- the color name
-
setColor
public void setColor(int index, @NotNull @NotNull java.awt.Color color)Sets a color mapping.- Parameters:
index- the color index to changecolor- the color to map to
-
setTypes
public void setTypes(int types)
Sets the message types to show.- Parameters:
types- the types to show
-
-