]> granicus.if.org Git - graphviz/commitdiff
Document sides attribute of html tables.
authorEmden R. Gansner <erg@alum.mit.edu>
Tue, 11 Feb 2014 16:04:03 +0000 (11:04 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Tue, 11 Feb 2014 16:04:03 +0000 (11:04 -0500)
doc/info/tee.gif [new file with mode: 0644]
doc/infosrc/Makefile.old
doc/infosrc/fixed.gv [new file with mode: 0644]
doc/infosrc/html.3
doc/infosrc/tee.gv [new file with mode: 0644]

diff --git a/doc/info/tee.gif b/doc/info/tee.gif
new file mode 100644 (file)
index 0000000..d6c1a89
Binary files /dev/null and b/doc/info/tee.gif differ
index eb5fbd50ee8176478bd2d1aae11c2da351558f9d..42c4b681aea7ee3b7ed7b4f07741cc10b89ab7fd 100644 (file)
@@ -27,7 +27,7 @@ INSTALL_DIR = ../info
 XGIF = forward.gif back.gif both.gif nohead.gif
 
 MGIF = constraint.gif record.gif html1.gif html2.gif fill.gif round.gif \
-       mrecord.gif html3.gif html4.gif colorlist.gif record2.gif fixed.gif
+       mrecord.gif html3.gif html4.gif colorlist.gif record2.gif fixed.gif tee.gif
 
 MJPG = sdlshapes.jpg
 
@@ -79,7 +79,7 @@ A2GIF= aa_box.gif aa_lbox.gif aa_rbox.gif aa_obox.gif aa_olbox.gif aa_orbox.gif\
        
 
 GIF = $(SGIF) $(AGIF) $(MGIF) $(A2GIF) $(XGIF)
-DOTS = html2.gv html3.gv html4.gv
+DOTS = html2.gv html3.gv html4.gv tee.gv
 HTML = attrs.html colors.html command.html lang.html output.html shapes.html \
        arrows.html
 INSTALL_FILES = $(HTML) $(DOTS) $(SGIF) $(AGIF) $(A2GIF) $(MGIF) $(XGIF) $(MJPG) $(MPNG)
diff --git a/doc/infosrc/fixed.gv b/doc/infosrc/fixed.gv
new file mode 100644 (file)
index 0000000..71e428e
--- /dev/null
@@ -0,0 +1 @@
+digraph G { { node [margin=0 fontcolor=blue fontsize=32 width=0.5 shape=circle style=filled] b [fillcolor=yellow fixedsize=true label="a very long label"] d [fixedsize=shape label="an even longer label"] } a -> {c d} b -> {c d} }
index 1b9b576e7487decf8b4f4020eee364f48eee246f..03667a93fe52541b3bb3923387bc9ac372618d5b 100644 (file)
@@ -20,4 +20,25 @@ Here is an example using an &lt;IMG&gt; element
 <IMG SRC=html4.gif>
 <P>
 with the <A HREF=html4.gv>input graph</A>.
-
+<P>
+The <tt>sides</tt> attribute (version 2.37 and later) allows one to combine cells to form 
+various non-convex shapes. For example, a <tt>tee-shaped</tt> node
+<P>
+<IMG SRC=tee.gif>
+<P>
+can be produced using
+<XMP>
+  tee [shape=none margin=0 label=
+    <<table border="0" cellspacing="0" cellborder="1">
+     <tr>
+      <td width="9" height="9" fixedsize="true" style="invis"></td>
+      <td width="9" height="9" fixedsize="true" sides="ltr"></td>
+      <td width="9" height="9" fixedsize="true" style="invis"></td>
+     </tr>
+     <tr>
+      <td width="9" height="9" fixedsize="true" sides="tlb"></td>
+      <td width="9" height="9" fixedsize="true" sides="b"></td>
+      <td width="9" height="9" fixedsize="true" sides="brt"></td>
+     </tr>
+    </table>>]
+</XMP>
diff --git a/doc/infosrc/tee.gv b/doc/infosrc/tee.gv
new file mode 100644 (file)
index 0000000..47c8573
--- /dev/null
@@ -0,0 +1,15 @@
+graph {
+  tee [shape=none margin=0 label=
+<<table border="0" cellspacing="0" cellborder="1">
+ <tr>
+  <td width="9" height="9" fixedsize="true" style="invis"></td>
+  <td width="9" height="9" fixedsize="true" sides="ltr"></td>
+  <td width="9" height="9" fixedsize="true" style="invis"></td>
+ </tr>
+ <tr>
+  <td width="9" height="9" fixedsize="true" sides="tlb"></td>
+  <td width="9" height="9" fixedsize="true" sides="b"></td>
+  <td width="9" height="9" fixedsize="true" sides="brt"></td>
+ </tr>
+</table>>]
+}