|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.simulation.process.messages.MessageType
public class MessageType
This class represents the type of the messages. The programmer can create as many types as he wants for his messages, and specify for each type if he thinks that the messages must be displayed or not. By default the messages are displayed. For each type of messages the programmer can also specify the color he prefers to use when the messages will be displayed. The default color is red. During the simulation of the algorithm, the user knows all the types used by the algorithm and can choose to display them or not.
Field Summary | |
---|---|
static MessageType |
defaultMessageType
This type is used each time that the programmer of the algorithm does not specify the type of a message. |
Constructor Summary | |
---|---|
MessageType(java.lang.String typeName)
Instantiates a new message type. |
|
MessageType(java.lang.String typeName,
boolean toPaint)
Instantiates a new message type. |
|
MessageType(java.lang.String typeName,
boolean toPaint,
java.awt.Color color)
Instantiates a new message type. |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the color. |
boolean |
getToPaint()
Gets the boolean indicating if the messages must be displayed or not. |
java.lang.String |
getType()
Gets the type. |
void |
setColor(java.awt.Color color)
Sets the color. |
void |
setToPaint(boolean bool)
Sets the boolean indicating if the messages must be displayed or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MessageType defaultMessageType
Constructor Detail |
---|
public MessageType(java.lang.String typeName, boolean toPaint, java.awt.Color color)
typeName
- the type nametoPaint
- indicates if the messages must be displayed or notcolor
- the colorpublic MessageType(java.lang.String typeName, boolean toPaint)
typeName
- the type nametoPaint
- indicates if the messages must be displayed or notpublic MessageType(java.lang.String typeName)
typeName
- the type nameMethod Detail |
---|
public java.lang.String getType()
public void setToPaint(boolean bool)
bool
- the booleanpublic boolean getToPaint()
public void setColor(java.awt.Color color)
color
- the new colorpublic java.awt.Color getColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |