Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mscgen(1) [debian man page]

MSCGEN(1)							   User Commands							 MSCGEN(1)

NAME
mscgen - Message Sequence Chart Renderer SYNOPSIS
mscgen -T type [ -o file ] [ -i ] infile mscgen -l DESCRIPTION
Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, EPS, SVG or server side image maps (ismaps) as the output. Message Sequence Charts (MSCs) are a way of representing entities and interactions over some time period and are often used in combination with SDL. MSCs are popular in Telecoms to specify how protocols operate although MSCs need not be complicated to create or use. Mscgen aims to provide a simple text language that is clear to create, edit and understand, which can also be transformed into images. OPTIONS
-T type Specifies the output file type, which maybe one of 'png', 'eps', 'svg' or 'ismap' -i infile The file from which to read input. If omitted or specified as '-', input will be read from stdin. The '-i' option maybe omitted if <infile> is specified as the last option. -o file Write output to the named file. This option must be specified if input is taken from stdin, otherwise the output filename defaults to <infile>.<type>. -F font Use specified font for rendering PNG output. This is only supported if mscgen was built with USE_FREETYPE and is ignored otherwise. -p Display the parsed msc as text to stdout. This is useful only for checking the parser. -l Display program licence and exit. EXAMPLE
The language interpreted by mscgen is similar to that of Graphviz dot, using simple text instructions to add entities and then message arcs. The following example shows the input for a simple message sequence chart. # MSC for some fictional process msc { a,b,c; a->b [ label = "ab()" ] ; b->c [ label = "bc(TRUE)"]; c=>c [ label = "process(1)" ]; c=>c [ label = "process(2)" ]; ...; c=>c [ label = "process(n)" ]; c=>c [ label = "process(END)" ]; a<<=c [ label = "callback()"]; --- [ label = "If more to run", ID="*" ]; a->a [ label = "next()"]; a->c [ label = "ac1() ac2()"]; b<-c [ label = "cb(TRUE)"]; b->b [ label = "stalled(...)"]; a<-b [ label = "ab() = FALSE"]; } More information on the input can be found at http://www.mcternan.co.uk/mscgen/. COPYRIGHT
Mscgen, Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. PNG rendering by libgd, www.libgd.org. SEE ALSO
http://www.mcternan.co.uk/mscgen/ mscgen-0.20 2011-03-05 MSCGEN(1)

Check Out this Related Man Page

label(n)						       Tk Built-In Commands							  label(n)

__________________________________________________________________________________________________________________________________________________

NAME
label - Create and manipulate label widgets SYNOPSIS
label pathName ?options? STANDARD OPTIONS
-activebackground -disabledforeground -padx -activeforeground -font -pady -anchor -foreground -relief -background -highlightbackground -takefocus -bitmap -highlightcolor -text -borderwidth -highlightthickness -textvariable -compound -image -underline -cursor -justify -wraplength See the options manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS [-height height] Specifies a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to Tk_GetPixels); for text it is in lines of text. If this option is not specified, the label's desired height is computed from the size of the image or bitmap or text being displayed in it. [-state state] Specifies one of three states for the label: normal, active, or disabled. In normal state the button is displayed using the foreground and background options. In active state the label is displayed using the activeForeground and activeBackground options. In the disabled state the dis- abledForeground and background options determine how the button is displayed. [-width width] Specifies a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to Tk_GetPixels); for text it is in characters. If this option is not specified, the label's desired width is computed from the size of the image or bitmap or text being displayed in it. _________________________________________________________________ DESCRIPTION
The label command creates a new window (given by the pathName argument) and makes it into a label widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the label such as its colors, font, text, and initial relief. The label command returns its pathName argument. At the time this command is invoked, there must not exist a window named pathName, but pathName's parent must exist. A label is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the wrapLength option) and one of the charac- ters may optionally be underlined using the underline option. The label can be manipulated in a few simple ways, such as changing its relief or text, using the commands described below. WIDGET COMMAND
The label command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for label widgets: pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the label com- mand. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the label command. BINDINGS
When a new label is created, it has no default event bindings: labels are not intended to be interactive. EXAMPLE
# Make the widgets label .t -text "This widget is at the top" -bg red label .b -text "This widget is at the bottom" -bg green label .l -text "Left Hand Side" label .r -text "Right Hand Side" text .mid # Lay them out pack .t -side top -fill x pack .b -side bottom -fill x pack .l -side left -fill y pack .r -side right -fill y pack .mid -expand 1 -fill both SEE ALSO
labelframe(n), button(n), ttk::label(n) KEYWORDS
label, widget Tk 4.0 label(n)
Man Page