| 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="9124Horizontalgridsandalternatinglinecolors.html">
|
|
|
8 |
<LINK REL="Next" HREF="9126Adjustingthemarginswithautosizing.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="9124Horizontalgridsandalternatinglinecolors.html">Previous</A>
|
|
|
26 |
<A HREF="9126Adjustingthemarginswithautosizing.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="9_12_5">9.12.5 Adding icons to Gantt graphs</A></H3>
|
|
|
29 |
As is illustrated in the image above it is also possible (just like for
|
|
|
30 |
normal Graph) to add small images (or icons) to a Gantt graph by
|
|
|
31 |
creating an IconPlot() instance and then adding it to the graph. In the
|
|
|
32 |
image above the following lines were used to add the small image of
|
|
|
33 |
"tux" in the left lower corner<DIV class="phpscript"><CODE><FONT color="#000000">
|
|
|
34 |
<FONT color="#0000BB"> $icon </FONT><FONT color="#007700">= new </FONT><FONT
|
|
|
35 |
color="#0000BB">IconPlot</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
36 |
'penguin.png'</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
|
|
|
37 |
0.01</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">0.95</FONT><FONT
|
|
|
38 |
color="#007700">,</FONT><FONT color="#0000BB">1</FONT><FONT color="#007700">
|
|
|
39 |
,</FONT><FONT color="#0000BB">15</FONT><FONT color="#007700">);
|
|
|
40 |
<BR></FONT><FONT color="#0000BB">$icon</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
41 |
color="#0000BB">SetAnchor</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
42 |
'left'</FONT><FONT color="#007700">,</FONT><FONT color="#DD0000">
|
|
|
43 |
'bottom'</FONT><FONT color="#007700">);
|
|
|
44 |
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
45 |
color="#0000BB">Add</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
|
|
|
46 |
$icon</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT>
|
|
|
47 |
</CODE></DIV>
|
|
|
48 |
<P></P>
|
|
|
49 |
<HR NOSHADE>
|
|
|
50 |
<A HREF="toc.html">Contents</A>
|
|
|
51 |
<A HREF="9124Horizontalgridsandalternatinglinecolors.html">Previous</A>
|
|
|
52 |
<A HREF="9126Adjustingthemarginswithautosizing.html">Next</A>
|
|
|
53 |
</BODY>
|
|
|
54 |
</HTML>
|