net.sf.sdedit.message
Class DestructorAnswer

java.lang.Object
  extended by net.sf.sdedit.message.Message
      extended by net.sf.sdedit.message.Answer
          extended by net.sf.sdedit.message.DestructorAnswer
All Implemented Interfaces:
Constants

public class DestructorAnswer
extends Answer

Represents the answer given to a call to an object's destructor. Is in particular responsible for drawing the cross that denotes the destruction resp. the vanishing of the lifeline of the destroyed lifeline.

Author:
Markus Strauch

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
DestructorAnswer(Lifeline caller, Lifeline callee, Diagram diagram, MessageData data, ForwardMessage forward)
          Creates a new destructor answer.
 
Method Summary
 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.Answer
getForwardMessage, getText, terminate
 
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

DestructorAnswer

public DestructorAnswer(Lifeline caller,
                        Lifeline callee,
                        Diagram diagram,
                        MessageData data,
                        ForwardMessage forward)
Creates a new destructor answer.

Parameters:
caller - the lifeline of the object that destroys the callee
callee - the lifeline to be destroyed
diagram - the diagram where to draw
data - encapsulates the answer
Method Detail

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 Answer


Copyright © 2011. All Rights Reserved.