Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="1092Addingprogressindicatorstobars.html">
8
<LINK REL="Next" HREF="1011Usingmultiplecolumnsastitles.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="1092Addingprogressindicatorstobars.html">Previous</A>
26
<A HREF="1011Usingmultiplecolumnsastitles.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="10_10">10.10 Grouping activities</A></H2>
29
<P> It is common to group activities. We have used this feature in the
30
 examples of constrains. There is no special type for activity bars that
31
 are used to illustrate grouping. The common way of illustrating this
32
 (as have been used above) is to add &quot;half&quot; a triangle marker at both
33
 ends of the bar. The special provision that JpGraph does is that if you
34
 add a left or right marker of type MARK_LEFTTRIANGLE or
35
 MARK_RIGHTTRIANGLE those triangles will be drawn under the bars to give
36
 the effect as show in the examples above. In the example above we also
37
 have made the grouping bars have slightly less heigh since the end
38
 triangles will visually &quot;grow&quot; the bar.</P>
39
<P> So to get the effect we want for a group bar we have to use the two
40
 lines:<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
41
&nbsp;$groupbar</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
42
leftMark</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
43
SetType</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
44
&quot;MARK_LEFTTRIANGLE&quot;</FONT><FONT color="#007700">);
45
<BR></FONT><FONT color="#0000BB">$groupbar</FONT><FONT color="#007700">
46
-&gt;</FONT><FONT color="#0000BB">rightMark</FONT><FONT color="#007700">-&gt;</FONT><FONT
47
color="#0000BB">SetType</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
48
&quot;MARK_RIGHTTRIANGLE&quot;</FONT><FONT color="#007700">)</FONT><FONT color="#0000BB">
49
</FONT></FONT></CODE></DIV></P>
50
<P></P>
51
<P> As of the current version There is not yet any formatting support to
52
 accomplish the effect of indentation for the titles so this is
53
 accomplished by using a fixed width font and adding spaces in front of
54
 the title.</P>
55
<HR NOSHADE>
56
<A HREF="toc.html">Contents</A>
57
<A HREF="1092Addingprogressindicatorstobars.html">Previous</A>
58
<A HREF="1011Usingmultiplecolumnsastitles.html">Next</A>
59
</BODY>
60
</HTML>