Package gov.nasa.worldwind.event
Class Message
- java.lang.Object
-
- java.util.EventObject
-
- gov.nasa.worldwind.event.WWEvent
-
- gov.nasa.worldwind.event.Message
-
- All Implemented Interfaces:
java.io.Serializable
public class Message extends WWEvent
General purpose message event.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Indicates the message name.long
getWhen()
Indicates the time at which the message was sent.-
Methods inherited from class gov.nasa.worldwind.event.WWEvent
consume, isConsumed
-
-
-
-
Constructor Detail
-
Message
public Message(java.lang.String name, java.lang.Object source)
Create a message. The message will be timestamped with the current system time.- Parameters:
name
- The name of the message.source
- The object that generated the message.
-
Message
public Message(java.lang.String name, java.lang.Object source, long when)
Create a message, with a timestamp.- Parameters:
name
- The name of the message.source
- The object that generated the message.when
- The timestamp to apply to the message.
-
-