from
Sequence Diagram tool
by Eric Ludlam
Create UML style Sequence Diagrams
|
| sequencedtornode |
function sequencedtornode
% SEQUENCEDTORNODE - Create a link returning from last named entry
% into the current node. Mark the current node as destructed.
% Author: Eric Ludlam
% Copyright (c) 2006 The MathWorks Inc.
SD = getappdata(gcf,'SD');
% Previous node
if isempty(SD.nodes) || isempty(SD.links)
error('Cannot destruct when there are no nodes.'); %#ok
end
lastlinkidx = length(SD.links);
lastnodeidx = SD.links(lastlinkidx).nodeidx; % The node we are in.
set(SD.nodes(lastnodeidx).dtorline,...
'marker','x',...
'markerfacecolor','w');
|
|
Contact us at files@mathworks.com