File:Project-structure.png

From Wiki
Jump to navigation Jump to search

Project-structure.png(720 × 204 pixels, file size: 85 KB, MIME type: image/png)

ConTeXt project structure as a flow chart

Here is the complete code. Note that this is Mark II code, and so must be compiled with texexec. If somebody more experienced with the chart module can give separate colors to the project, product, component, and environment boxes, that would be excellent.

\usemodule      [chart]
\setupcolors    [state=start, system=rgb]

\definecolor    [green]  [r=.720, g=1, b=.72] % pale green
\definecolor    [pink]  [g=.720, r=1, b=.72] % pale red
\definecolor    [blue]  [g=.720, b=1, g=.72] % pale blue

\setupFLOWcharts
    [height=4\bodyfontsize,
     maxwidth=\textwidth,
     offset=none]

\setupFLOWlines
    [corner=rectangular,
     color=black]

\setupFLOWshapes
    [framecolor=black,
     background=color,
     backgroundcolor=green]

\startTEXpage
\startFLOWchart[projekte]
    \startFLOWcell
        \name   {project}
        \location   {3,3}
        \connection[rl] {environment1}
        \text   {\ssb Project}
    \stopFLOWcell
    \startFLOWcell
        \name   {environment2}
        \location   {5,2}
        \text   {\ssb Product-specific \\ environment}
    \stopFLOWcell
    \startFLOWcell
        \name   {environment1}
        \location   {5,3}
        \text   {\ssb Project-wide \\ environment}
    \stopFLOWcell

    \startFLOWcell
        \name   {product1}
        \location   {1,1}
        %\connection[tb]    {comp11}
        %\connection[ptb] {comp12}
        \location   {2,2}
        \connection[ntb]    {comp11}
        \connection[tb] {comp12}
        \connection[btn]    {project}
        \text   {\ssb Product 1}
    \stopFLOWcell
    \startFLOWcell
        \name   {product2}
        \location   {4,2}
        \connection[ntb]    {comp21}
        \connection[tb]     {comp22}
        \connection[ptb]    {comp23}
        \connection[btp]    {project}
        \connection[rl]    {environment2}
        \text   {\ssb Product 2}
    \stopFLOWcell

    \startFLOWcell
        \name   {comp11}
        \location   {1,1}
        \text   {\ssb Component A}
    \stopFLOWcell
    \startFLOWcell
        \name   {comp12}
        \location   {2,1}
        \text   {\ssb Component B}
    \stopFLOWcell
    \startFLOWcell
        \name   {comp21}
        \location   {3,1}
        \text   {\ssb Component X}
    \stopFLOWcell
    \startFLOWcell
        \name   {comp22}
        \location   {4,1}
        \text   {\ssb Component Y}
    \stopFLOWcell
    \startFLOWcell
        \name   {comp23}
        \location   {5,1}
        \text   {\ssb Component Z}
    \stopFLOWcell
\stopFLOWchart

\FLOWchart[projekte]

\stopTEXpage

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:03, 7 August 2012Thumbnail for version as of 12:03, 7 August 2012720 × 204 (85 KB)Esteis (talk | contribs)Arrow direction: make A --> B mean 'A invokes B' Resolution: 720 px to fit the main content column Colors: nicer
13:01, 28 July 2004Thumbnail for version as of 13:01, 28 July 2004888 × 235 (3 KB)Hraban (talk | contribs)ConTeXt project structure as flow chart

The following page uses this file: