public class ChartMessage extends Object
Modifier and Type | Field and Description |
---|---|
Object |
data
The raw data associated with the message.
|
EnumSet<MessageDispatchMode> |
dispatchMode
The mode which determines how this message is dispatched.
|
MessageDispatchPhase |
dispatchPhase
The current phase of the dispatch process.
|
boolean |
handled
A value indicating whether the message is handled (processed) by some receiver.
|
ChartNode |
previousReceiver
The
ChartNode instance that previously received the message. |
boolean |
stopDispatch
A value indicating whether message may continue being dispatched or not.
|
Constructor and Description |
---|
ChartMessage(ChartNode sender,
int id,
Object data,
MessageDispatchMode dispatchMode)
Creates a new instance of the
ChartMessage class. |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Gets the unique id for this message.
|
ChartNode |
getSender()
Gets the
ChartNode instance which generated this message. |
static int |
register()
Registers a new
ChartMessage . |
public boolean handled
public boolean stopDispatch
public MessageDispatchPhase dispatchPhase
public EnumSet<MessageDispatchMode> dispatchMode
public ChartNode previousReceiver
ChartNode
instance that previously received the message.public Object data
public ChartMessage(ChartNode sender, int id, Object data, MessageDispatchMode dispatchMode)
ChartMessage
class.sender
- The sender of the message.id
- The message id.data
- The data of the message.dispatchMode
- The MessageDispatchMode
public int getId()
public static int register()
ChartMessage
.