Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<style type="text/css">
2
		<!--
3
		A:link        {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
4
		A:visited     {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
5
		A:hover       {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}
6
		th            {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}
7
		//-->
8
		</style><hr><a name="_C_DATESCALE"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>DateScale</b> EXTENDS <a href="LinearScale .html#_C_LINEARSCALE " style="font-face:arial;font-weight:bold;">LinearScale </a></div>
9
<i>(Defined in: jpgraph_date.php : 49)</i><table border=1><tr><td>&nbsp;<a href="DateScale.html" style="font-family:arial;font-weight:bold;color:darkblue;">DateScale</a>&nbsp;</td><td>&nbsp;<a href="LinearScale .html" style="font-family:arial;font-weight:bold;color:darkblue;">LinearScale </a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="DateScale.html#_DATESCALE_ADJUSTFORDST">AdjustForDST()</a>&nbsp;<br>
10
&nbsp;<a href="DateScale.html#_DATESCALE_SETDATEALIGN">SetDateAlign()</a>&nbsp;<br>
11
&nbsp;<a href="DateScale.html#_DATESCALE_SETDATEFORMAT">SetDateFormat()</a>&nbsp;<br>
12
&nbsp;<a href="DateScale.html#_DATESCALE_SETTIMEALIGN">SetTimeAlign()</a>&nbsp;<br>
13
</td><td valign=top>&nbsp;</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Module used to create a date/time X-axis scale <p> &nbsp;
14
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
15
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_DATESCALE_ADJUSTFORDST"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
16
function&nbsp;AdjustForDST($aFlg)</font>
17
</b></div></a></span>
18
 
19
<span style='font-family:arial;font-size:90%;'><i></i></span><p>
20
 
21
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
22
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
23
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
24
$aFlg</font>
25
 
26
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
27
true</font>
28
</td><td>No description available</td></tr>
29
</table>
30
 
31
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>No description available.<p>
32
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_DATESCALE_SETDATEALIGN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
33
function&nbsp;SetDateAlign($aStartAlign,$aEndAlign)</font>
34
</b></div></a></span>
35
 
36
<span style='font-family:arial;font-size:90%;'><i>Specify start and end date alignment for the scale</i></span><p>
37
 
38
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
39
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
40
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
41
$aStartAlign</font>
42
 
43
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Start alignment</td></tr>
44
 
45
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
46
$aEndAlign</font>
47
 
48
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
49
false</font>
50
</td><td>End alignment</td></tr>
51
</table>
52
 
53
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify start and end date alignment for the scale
54
Possible values are
55
<ol>
56
<li> Alignment on a day basis
57
<ul>
58
<li> DAYADJ_1, Align on the start of a day
59
<li> DAYADJ_7, Align on the start of a week
60
<li> DAYADJ_WEEK, Synonym to DAYADJ_7
61
</ul>
62
 
63
<li> Alignment on a monthly basis
64
<ul>
65
<li> MONTHADJ_1, Align on a month start
66
<li> MONTHADJ_6, Align on the start of halfyear
67
</ul>
68
 
69
<li> Alignment on a yearly basis
70
<ul>
71
<li> YEARADJ_1, Align on a year
72
<li> YEARADJ_2, Align on a bi-yearly basis
73
<li> YEARADJ_5, Align on a 5 year basis
74
</ul>
75
</ol>
76
&nbsp;<br>
77
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="DateScale.html#_DATESCALE_SETTIMEALIGN">DateScale::SetTimeAlign</a>
78
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
79
$graph-&gt;xaxis-&gt;scale-&gt;SetDateAlign(DAYADJ_1);</font>
80
</span><br>
81
<p>
82
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_DATESCALE_SETDATEFORMAT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
83
function&nbsp;SetDateFormat($aFormat)</font>
84
</b></div></a></span>
85
 
86
<span style='font-family:arial;font-size:90%;'><i>// Overrides the automatic determined date format. Must be a valid date() format string</i></span><p>
87
 
88
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
89
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
90
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
91
$aFormat</font>
92
 
93
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
94
</table>
95
 
96
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>No description available.<p>
97
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_DATESCALE_SETTIMEALIGN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
98
function&nbsp;SetTimeAlign($aStartAlign,$aEndAlign)</font>
99
</b></div></a></span>
100
 
101
<span style='font-family:arial;font-size:90%;'><i>Specify start and end date alignment for the scale</i></span><p>
102
 
103
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
104
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
105
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
106
$aStartAlign</font>
107
 
108
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Start time alignment</td></tr>
109
 
110
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
111
$aEndAlign</font>
112
 
113
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
114
false</font>
115
</td><td>End time alignment</td></tr>
116
</table>
117
 
118
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the start and end alignment with the time granularity. For date granularity see SetDateAlign(). Note that only one of SetDateAlign() and SetTimeAlign() can be used.
119
 
120
For start and end alignment the following values are valid
121
 
122
<ol>
123
<li> Alignment on seconds
124
<ul>
125
<li> MINADJ_1, Align on a single second (This is the lowest resolution)
126
<li> MINADJ_5, Align on the nearest 5 seconds
127
<li> MINADJ_10, Align on the nearest 10 seconds
128
<li> MINADJ_15, Align on the nearest 15 seconds
129
<li> MINADJ_30, Align on the nearest 30 seconds
130
</ul>
131
<li> Alignment on minutes
132
<ul>
133
<li> MINADJ_1, Align to the nearest minute
134
<li> MINADJ_5, Align on the nearest 5 minutes
135
<li> MINADJ_10, Align on the nearest 10 minutes
136
<li> MINADJ_15, Align on the nearest 15 minutes
137
<li> MINADJ_30, Align on the nearest 30 minutes
138
</ul>
139
<li> Alignment on hours
140
<ul>
141
<li> HOURADJ_1, Align to the nearest hour
142
<li> HOURADJ_2, Align to the nearest two hour
143
<li> HOURADJ_3, Align to the nearest three hour
144
<li> HOURADJ_4, Align to the nearest four hour
145
<li> HOURADJ_6, Align to the nearest six hour
146
<li> HOURADJ_12, Align to the nearest tolw hour
147
</ul>
148
</ol>
149
&nbsp;<br>
150
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="DateScale.html#_DATESCALE_SETDATEALIGN">DateScale::SetDateAlign</a>
151
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
152
$graph-&gt;xaxis-&gt;scale-&gt;SetTimeAlign(MINADJ_15);</font>
153
</span><br>
154
<p> <hr> <p>