|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.message.Message
net.sf.sdedit.message.Answer
public class Answer
Represents an answer to a ForwardMessage and is responsible for drawing it on the diagram.
| Field Summary |
|---|
| Fields inherited from class net.sf.sdedit.message.Message |
|---|
diagram |
| Fields inherited from interface net.sf.sdedit.Constants |
|---|
ACTIVE_LIFELINE_COLOR, ANTI_ALIAS, dashed, DEFAULT_CODE_FONT, DEFAULT_CURSOR, DEFAULT_ENCODING_SCHEME, dotted, emptyStroke, GLOBAL_CONF_FILE, HAND_CURSOR, MOVE_CURSOR, SAVE_AS_FILE_PROPERTY, SAVE_AS_TYPE_PROPERTY, solid, TEST_FREEHEP_CLASSNAME, thick, thick_dashed, THREAD_COLORS |
| Constructor Summary | |
|---|---|
Answer(Lifeline caller,
Lifeline callee,
Diagram diagram,
MessageData data,
ForwardMessage forwardMsg)
Creates a new answer to be drawn. |
|
| Method Summary | |
|---|---|
ForwardMessage |
getForwardMessage()
Returns the ForwardMessage to which this is the answer. |
String |
getText()
Returns the text of the message, the string the message arrow is labeled by. |
protected void |
terminate()
Terminates the caller lifeline (sender of the answer). |
void |
updateView()
Creates some space on the diagram, so that the message arrow and its label can be drawn, then draws them and creates some more space. |
| Methods inherited from class net.sf.sdedit.message.Message |
|---|
extendLifelines, getArrow, getCallee, getCaller, getConfiguration, getData, getDiagram, getThread, isSynchronous, setArrow, toString, v |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Answer(Lifeline caller,
Lifeline callee,
Diagram diagram,
MessageData data,
ForwardMessage forwardMsg)
caller - the sender of the answer, i. e. the receiver (callee) of the
corresponding forward messagecallee - the receiver of the answerdiagram - the diagram where to drawdata - the data of the message, where the answer string is a proper
label for the answer arrowforwardMsg - the message that this is the answer to| Method Detail |
|---|
public final ForwardMessage getForwardMessage()
public void updateView()
Message
updateView in class Messageprotected final void terminate()
public String getText()
Message
getText in class MessageMessage.getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||