File: ex61.signalling

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (27 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##Redefining arrow styles
##redefine -> => > >> arrow symbol line style
##Redefine the '->', '=>', '>>', '>', '=>>', '==>' styles (called arrow refinement styles) to impact how arrows using these arrow symbols look. The same style is used for reverse and bi-directional arrows. (That is, there is no '<-' or '<=>' style. Use '->' and '=>' instead.) Redefine the 'arrow' and 'arrow_self' styles to govern how arrows in general look. Note that whatever is in the arrow refinement styles will overwrite the settings of 'arrow' and 'arrow_self'. Thus you can not set the line style, since the arrow refinement styles overwrite that. For block arrows use the 'block->', 'block=>', etc. block arrow refinement styles and the 'blockarrow' and 'box_collapsed_arrow' styles (latter for boxes collapsed to an arrow).
a->b;
defstyle "->" [arrow.size=tiny];
a->b;
defstyle -> [arrow.size=huge];
a->b;
defstyle -> [arrow.size=small, line.type=dash_dot];
a->b;

a=>b: double line;
defstyle arrow [line.color=red, arrow.color=red];
a=>b: red with double line;
defstyle arrow [line.type=long_dashed];
a=>b: still with double line;
defstyle => [line.type=]; #remove line type setting
a=>b: now long dashed; #because of 'arrow'
a->b: still dash-dotted; #because of '->'

block a->b;
block a=>b;
defstyle -> [line.type=dash_dot], blockarrow [line.color=red];
block a->b;
block a=>b;