Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Provide command to reference each node in the umlsd graph #7

Open
GoogleCodeExporter opened this issue May 7, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

I would like to draw additional stuff in the sdl diagram. therefor I need to 
reference the points where a message starts and ends.

It could be solved something like this (untested):
# Usage: \sdnode{reference of instance}{level}
\newcommand{\sdnode}[2]{$(#1)+(0,2*\unitfactor-0.7*\unitfactor)$}

Then you could call something like:
\draw (\sdnode{inst1}{2}) rectangle (\sdnode{inst3}{5})};

Original issue reported on code.google.com by frankmor...@googlemail.com on 25 Jul 2011 at 10:06

@GoogleCodeExporter
Copy link
Author

maybe providing the points by given instant name and message name is better, 
because the idea of this package is user doesn't have to care about positions 
(such as level)

Original comment by xuyuan...@gmail.com on 25 Jul 2011 at 10:41

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Something new here? I want to add some text on specific positions along the 
threads/instances.

Original comment by unused.s...@gmail.com on 30 Jun 2013 at 8:37

@GoogleCodeExporter
Copy link
Author

I ended up simply drawing directly into the picture:

\begin{sequencediagram}
    \newinst{ausweis}
    \newinst[1cm]{buerger}
...
\begin{pgfonlayer}{background}
    \fill [opacity=.05]
        ($(ausweis)+(.5,-7.2*\unitfactor-0.7*\unitfactor)$) rectangle
        ($(buerger)+(-.5,-11.1*\unitfactor-0.7*\unitfactor)$);
\end{pgfonlayer}
\end{sequencediagram}

The above example draws a rectangle around the 7th and 11th calls.

Original comment by frankmor...@googlemail.com on 30 Jun 2013 at 7:47

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant