public class PaintMaps
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
agentPaints
The paint map for agents
|
static int |
COLOR_COMPONENT
The paint mode for differ agents
|
protected java.util.Map |
conversationPaints
The paint map for conversation ids
|
static java.awt.Paint |
DEFAULT_COLOR
The standard default color
|
static int |
PAINTMODE_CONVERSATION
The paint mode for differ conversation ids
|
static int |
PAINTMODE_DEFAULT
The default paint mode provides only the default color
|
static int |
PAINTMODE_PERFORMATIV
The paint mode for differ performatives
|
static int |
PAINTMODE_PROTOCOL
The paint mode for differ protocols
|
protected java.util.Map |
performativPaints
The paint map for performatives
|
protected java.util.Map |
protocolPaints
The paint map for protocols
|
Constructor and Description |
---|
PaintMaps()
Default constructor with standard default color.
|
PaintMaps(java.awt.Paint defaultPaint)
Constructor with given default color.
|
Modifier and Type | Method and Description |
---|---|
void |
createColor(Message message)
Retrievs information from the message and creates unique colors.
|
java.awt.Paint |
getDefaultPaint() |
java.awt.Paint |
getMessagePaint(Message message,
int paintMode)
Returns the color for a given message and a given paint mode.
|
java.awt.Paint |
getPaint(java.lang.Comparable key,
int paintType)
Returns a color for the given key and the given paint mode.
|
java.awt.Paint |
getPaint(java.lang.Comparable key,
int paintType,
java.awt.Paint defaultPaint)
Returns a color for the given key and the given paint mode.
|
java.util.Map |
getPaints(int paintMode)
Returns the created paint map for the given paint mode.
|
void |
setDefaultPaint(java.awt.Paint defaultPaint) |
public static final int PAINTMODE_DEFAULT
public static final int PAINTMODE_CONVERSATION
public static final int PAINTMODE_PERFORMATIV
public static final int PAINTMODE_PROTOCOL
public static final int COLOR_COMPONENT
public static final java.awt.Paint DEFAULT_COLOR
protected java.util.Map conversationPaints
protected java.util.Map performativPaints
protected java.util.Map protocolPaints
protected java.util.Map agentPaints
public PaintMaps()
public PaintMaps(java.awt.Paint defaultPaint)
defaultPaint
- The default color.public void createColor(Message message)
message
- The message the information is retrieved from.public java.awt.Paint getMessagePaint(Message message, int paintMode)
message
- The message.paintMode
- The paint mode.public java.util.Map getPaints(int paintMode)
paintMode
- The paint mode.public java.awt.Paint getPaint(java.lang.Comparable key, int paintType)
key
- The key.paintType
- The paint mode.public java.awt.Paint getPaint(java.lang.Comparable key, int paintType, java.awt.Paint defaultPaint)
key
- The key.paintType
- The paint mode.defaultPaint
- The default color.public java.awt.Paint getDefaultPaint()
public void setDefaultPaint(java.awt.Paint defaultPaint)
defaultPaint
- The default color to set.