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="104ThestructureofaGanttchart.html">
8
<LINK REL="Next" HREF="106PositioningobjectsintheGanttplot.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="104ThestructureofaGanttchart.html">Previous</A>
26
<A HREF="106PositioningobjectsintheGanttplot.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="10_5">10.5 Creating a GanttChart</A></H2>
29
<P> You create a new Gantt Chart with a call to GanttChart(). The
30
 signature for GanttGraph is the same as for ordinary JpGraph graphs,
31
 i.e<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
32
&nbsp;</FONT><FONT color="#007700">function&nbsp;</FONT><FONT color="#0000BB">
33
GanttGraph</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
34
$aWidth</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
35
$aHeight</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
36
$aCachedName</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
37
$aTimeOut</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
38
$aInline</FONT><FONT color="#007700">)</FONT><FONT color="#0000BB"></FONT>
39
</FONT></CODE></DIV></P>
40
<P>The only real difference is that for GanttCharts you can specify one
41
 or both of the dimension parameters (width and height) as -1 in which
42
 case that dimension will be automatically sized determined by scale and
43
 fonts chosen. The following examples shows some possible ways of
44
 creating a new graph</P>
45
<UL>
46
<LI> $graph=new GanttGraph()
47
<BR> The size of the graph will be determined automatically, no caching
48
 will be used and the graph will be generated in-line.</LI>
49
<LI> $graph=new GanttGraph(-1,-1,&quot;auto&quot;)
50
<BR> The size of the graph will be determined automatically, caching
51
 will be used (the name will be based on the script name), no timeout
52
 will be used and the graph will be generated in-line</LI>
53
<LI> $graph=new GanttGraph(450,-1,&quot;auto&quot;,5)
54
<BR> Same as the previous entry but the width is fixed to 450 points and
55
 the cached image will have a timeout of 5 min.</LI>
56
<LI> $graph=new GanttGraph(-1,-1,&quot;auto&quot;,5,false)
57
<BR> The image will not be generated in-line, only the cache will be
58
 updated if it has timed out, otherwise nothing will happen.</LI>
59
</UL>
60
<P> Since GanttGraph() inherits all the methods (that make sense for
61
 GanttGraph) from Graph you can specify shadow, color etc of the general
62
 frame.</P>
63
<HR NOSHADE>
64
<A HREF="toc.html">Contents</A>
65
<A HREF="104ThestructureofaGanttchart.html">Previous</A>
66
<A HREF="106PositioningobjectsintheGanttplot.html">Next</A>
67
</BODY>
68
</HTML>