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="1082Hourscale.html">
8
<LINK REL="Next" HREF="1084Weekscale.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="1082Hourscale.html">Previous</A>
26
<A HREF="1084Weekscale.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="10_8_3">10.8.3 Day scale</A></H3>
29
<P> By default the day scale show the first letter of the week day but
30
 it is also posible to format the day scale in a number of different
31
 ways. Days can have one of the following scale formats.</P>
32
<UL>
33
<LI>DAYSTYLE_ONELETTER, On letter week day. Example &quot;M&quot;</LI>
34
<LI>DAYSTYLE_LONG, Full week day. Example &quot;Monday&quot;</LI>
35
<LI>DAYSTYLE_LONGDAYDATE1, Day with date. Example &quot;Monday 23 Jun&quot;</LI>
36
<LI>DAYSTYLE_LONGDAYDATE2, Day with date+year. Example &quot;Monday 23 Jun
37
 2003&quot;</LI>
38
<LI>DAYSTYLE_SHORT, Short date. Example &quot;Mon&quot;</LI>
39
<LI>DAYSTYLE_SHORTDAYDATE1, Short date+date. Example &quot;Mon 23/6&quot;</LI>
40
<LI>DAYSTYLE_SHORTDAYDATE2, Short date+date. Example &quot;Mon 23 Jun&quot;</LI>
41
<LI>DAYSTYLE_SHORTDAYDATE3,Short date+date. Example &quot;Mon 23&quot;</LI>
42
<LI>DAYSTYLE_SHORTDATE1, Short date. Example &quot;23/6&quot;</LI>
43
<LI>DAYSTYLE_SHORTDATE2, Short date. Example &quot;23 Jun&quot;</LI>
44
<LI>DAYSTYLE_SHORTDATE3, Short date. Example &quot;Mon 23&quot;</LI>
45
<LI>DAYSTYLE_SHORTDATE4, Short date. Example &quot;23&quot;</LI>
46
<LI>DAYSTYLE_CUSTOM, Custom specified formatting string. Example &quot;M&quot;</LI>
47
</UL>
48
<P> The formatting is specified by using the SetStyle() method as in<DIV class="phpscript">
49
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$graph</FONT><FONT color="#007700">
50
-&gt;</FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-&gt;</FONT><FONT
51
color="#0000BB">day</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
52
SetStyle</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
53
DAYSTYLE_LONG</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB">
54
</FONT></FONT></CODE></DIV></P>
55
<P> The graphical formatting possibilities for days allow the
56
 possibility to specify a different color for the weekend background and
57
 also for the Sunday.</P>
58
<UL>
59
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
60
&nbsp;SetWeekendColor</FONT><FONT color="#007700">()</FONT><FONT color="#0000BB">
61
</FONT></FONT></CODE></DIV>
62
<P>Set the background color for weekends. (Defaults to light gray)</P>
63
</LI>
64
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
65
&nbsp;SetSundayFontColor</FONT><FONT color="#007700">()</FONT><FONT color="#0000BB">
66
</FONT></FONT></CODE></DIV>
67
<P>The Sunday font color. (Defaults to red)</P>
68
</LI>
69
</UL>
70
<P> In addition to this there is also a possibility to choose whether or
71
 not the weekend background should be extended vertically down over the
72
 plot area. (the default). Since that is a property more of the whole
73
 plot this behavior is modified with a call to the method<DIV class="phpscript">
74
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;UseWeekendBackground</FONT><FONT
75
color="#007700">()</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV>
76
</P>
77
<P>of the scale, e.g.
78
<BR> &nbsp;<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
79
&nbsp;$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">scale</FONT><FONT
80
color="#007700">-&gt;</FONT><FONT color="#0000BB">UseWeekendBackground</FONT><FONT
81
color="#007700">(</FONT><FONT color="#0000BB">false</FONT><FONT color="#007700">
82
);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P>
83
<P></P>
84
<HR NOSHADE>
85
<A HREF="toc.html">Contents</A>
86
<A HREF="1082Hourscale.html">Previous</A>
87
<A HREF="1084Weekscale.html">Next</A>
88
</BODY>
89
</HTML>