net.sf.sdedit.message
Class Primitive
java.lang.Object
net.sf.sdedit.message.Message
net.sf.sdedit.message.ForwardMessage
net.sf.sdedit.message.Primitive
- All Implemented Interfaces:
- Constants
public final class Primitive
- extends ForwardMessage
A Primitive is not a message in the strict sense, it is an action that
happens inside a method. Graphically, it is represented in a fashion similar
to a message, but without the arrow.
- Author:
- Markus Strauch
| 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 |
|
Method Summary |
Answer |
getAnswerMessage()
Obviously, there is no answer to a primitive action, so this method
always returns null. |
boolean |
isSynchronizing()
|
boolean |
isVoid()
|
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 |
Primitive
public Primitive(Lifeline caller,
Diagram diagram,
MessageData data)
- Creates a Primitive object.
- Parameters:
caller - the lifeline where the method of which the Primitive is a part
of is executeddiagram - the diagramdata - encapsulates the description of the primitive action
updateView
public void updateView()
- Description copied from class:
Message
- 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. Changes
the state of the diagram so that the effects of the message are
reflected. When creating space, the lifelines that do not participate in
the message must be drawn according to their current state (via
Message.extendLifelines(int).
- Overrides:
updateView in class ForwardMessage
getAnswerMessage
public final Answer getAnswerMessage()
- Obviously, there is no answer to a primitive action, so this method
always returns null.
- Overrides:
getAnswerMessage in class ForwardMessage
- Returns:
- null
isVoid
public final boolean isVoid()
isSynchronizing
public final boolean isSynchronizing()
Copyright © 2011. All Rights Reserved.