Blame | Letzte Änderung | Log anzeigen | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1"><LINK REL="Start" HREF="index.html"><LINK REL="Contents" HREF="toc.html"><LINK REL="Prev" HREF="1082Hourscale.html"><LINK REL="Next" HREF="1084Weekscale.html"><STYLE TYPE="text/css"><!--BODY { font-family: serif }H1 { font-family: sans-serif }H2 { font-family: sans-serif }H3 { font-family: sans-serif }H4 { font-family: sans-serif }H5 { font-family: sans-serif }H6 { font-family: sans-serif }SUB { font-size: smaller }SUP { font-size: smaller }PRE { font-family: monospace }A { text-decoration: none }--></STYLE></HEAD><BODY><A HREF="toc.html">Contents</A><A HREF="1082Hourscale.html">Previous</A><A HREF="1084Weekscale.html">Next</A><HR NOSHADE><H3><A NAME="10_8_3">10.8.3 Day scale</A></H3><P> By default the day scale show the first letter of the week day butit is also posible to format the day scale in a number of differentways. Days can have one of the following scale formats.</P><UL><LI>DAYSTYLE_ONELETTER, On letter week day. Example "M"</LI><LI>DAYSTYLE_LONG, Full week day. Example "Monday"</LI><LI>DAYSTYLE_LONGDAYDATE1, Day with date. Example "Monday 23 Jun"</LI><LI>DAYSTYLE_LONGDAYDATE2, Day with date+year. Example "Monday 23 Jun2003"</LI><LI>DAYSTYLE_SHORT, Short date. Example "Mon"</LI><LI>DAYSTYLE_SHORTDAYDATE1, Short date+date. Example "Mon 23/6"</LI><LI>DAYSTYLE_SHORTDAYDATE2, Short date+date. Example "Mon 23 Jun"</LI><LI>DAYSTYLE_SHORTDAYDATE3,Short date+date. Example "Mon 23"</LI><LI>DAYSTYLE_SHORTDATE1, Short date. Example "23/6"</LI><LI>DAYSTYLE_SHORTDATE2, Short date. Example "23 Jun"</LI><LI>DAYSTYLE_SHORTDATE3, Short date. Example "Mon 23"</LI><LI>DAYSTYLE_SHORTDATE4, Short date. Example "23"</LI><LI>DAYSTYLE_CUSTOM, Custom specified formatting string. Example "M"</LI></UL><P> The formatting is specified by using the SetStyle() method as in<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> $graph</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">day</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetStyle</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">DAYSTYLE_LONG</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P> The graphical formatting possibilities for days allow thepossibility to specify a different color for the weekend background andalso for the Sunday.</P><UL><LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> SetWeekendColor</FONT><FONT color="#007700">()</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV><P>Set the background color for weekends. (Defaults to light gray)</P></LI><LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> SetSundayFontColor</FONT><FONT color="#007700">()</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV><P>The Sunday font color. (Defaults to red)</P></LI></UL><P> In addition to this there is also a possibility to choose whether ornot the weekend background should be extended vertically down over theplot area. (the default). Since that is a property more of the wholeplot this behavior is modified with a call to the method<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> UseWeekendBackground</FONT><FONTcolor="#007700">()</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P>of the scale, e.g.<BR> <DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> $graph</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">scale</FONT><FONTcolor="#007700">-></FONT><FONT color="#0000BB">UseWeekendBackground</FONT><FONTcolor="#007700">(</FONT><FONT color="#0000BB">false</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="1082Hourscale.html">Previous</A><A HREF="1084Weekscale.html">Next</A></BODY></HTML>