|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.message.Message
public abstract class Message
A Message implementation is responsible for drawing a message and changing the diagram's state in order to reflect the effects of a message.
| Field Summary | |
|---|---|
protected Diagram |
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 | |
|---|---|
protected |
Message(Lifeline sender,
Lifeline receiver,
Diagram diagram,
MessageData data)
|
| Method Summary | |
|---|---|
protected void |
extendLifelines(int amount)
Draws all lifelines according to their current states, from verticalPosition to verticalPosition+amount. |
Arrow |
getArrow()
|
Lifeline |
getCallee()
Returns the callee of the message (the receiver). |
Lifeline |
getCaller()
Returns the caller of the message (the sender) |
Configuration |
getConfiguration()
Returns the diagram configuration. |
MessageData |
getData()
Returns the MessageData object belonging to this message. |
Diagram |
getDiagram()
Returns the diagram on which the message is to be drawn. |
abstract String |
getText()
Returns the text of the message, the string the message arrow is labeled by. |
int |
getThread()
|
boolean |
isSynchronous()
Returns true if at least one of the caller or callee is an actor. |
protected void |
setArrow(Arrow arrow)
|
String |
toString()
Returns a string representation of this message, in particular of the caller and the callee lifeline. |
abstract 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. |
protected int |
v()
Shorthand method - returns the diagram's current vertical position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Diagram diagram
| Constructor Detail |
|---|
protected Message(Lifeline sender,
Lifeline receiver,
Diagram diagram,
MessageData data)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic final int getThread()
protected final void setArrow(Arrow arrow)
public final Arrow getArrow()
public abstract void updateView()
public final Diagram getDiagram()
public final Lifeline getCallee()
public final Lifeline getCaller()
public final MessageData getData()
public final Configuration getConfiguration()
public boolean isSynchronous()
protected final void extendLifelines(int amount)
amount - denotes the vertical size of the portion of the lifelines that
is drawn by this methodpublic abstract String getText()
protected final int v()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||