public class ALDEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
protected String |
eventMessage
Message string, freely configurable.
|
source
Constructor and Description |
---|
ALDEvent(Object s)
Default constructor for events.
|
ALDEvent(Object s,
String msg)
Default constructor for events with messages.
|
Modifier and Type | Method and Description |
---|---|
String |
getEventMessage()
Returns individual message string.
|
String |
getEventMessage(int maxLength)
Returns individual message string formatted to a maximal line length.
|
getSource, toString
protected String eventMessage
public ALDEvent(Object s)
s
- Source object of the event.public String getEventMessage()
public String getEventMessage(int maxLength)
Note that the length of a line might be longer than the given length if it contains no spaces, i.e. cannot be wrapped at an earlier position.
maxLength
- Maximal length of a line.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.