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_TEXTPROPERTY"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>TextProperty</b></div>
9
<i>(Defined in: jpgraph_gantt.php : 1501)</i><table border=1><tr><td>&nbsp;<a href="TextProperty.html" style="font-family:arial;font-weight:bold;color:darkblue;">TextProperty</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_ALIGN">Align()</a>&nbsp;<br>
10
&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_SET">Set()</a>&nbsp;<br>
11
&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_SETALIGN">SetAlign()</a>&nbsp;<br>
12
&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_SETCOLOR">SetColor()</a>&nbsp;<br>
13
&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_SETFONT">SetFont()</a>&nbsp;<br>
14
&nbsp;<a href="TextProperty.html#_TEXTPROPERTY_SHOW">Show()</a>&nbsp;<br>
15
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>This is very similair to Text but this is only used as an internal helper class in Gantt chart. In comparison with text it has the added funtionality that it can handle tabs.
16
 
17
In the next version of JpGraph the extra functionality that this class has should be added to the real class Text() to make the class more orthogonal.
18
 
19
Since this is just an internal helper class it has its justified  position though. This was oroginally considered a very experimental text class and it made sence to compartmetn thath functionlity in a separate class to the stnadard Text() class.
20
 <p> &nbsp;
21
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="Text.html">Text</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
22
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_ALIGN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
23
function&nbsp;Align($aHAlign,$aVAlign)</font>
24
</b></div></a></span>
25
 
26
<span style='font-family:arial;font-size:90%;'><i>Specify vertical and horizontal alignment</i></span><p>
27
 
28
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
29
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
30
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
31
$aHAlign</font>
32
 
33
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Horizontal alignment</td></tr>
34
 
35
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
36
$aVAlign</font>
37
 
38
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
39
"bottom"</font>
40
</td><td>Vertical alignment</td></tr>
41
</table>
42
 
43
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the anchor point fo the text. The anchor point determines how the texts x,y positions should be interpretated.
44
&nbsp;<br>
45
<p>
46
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_SET"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
47
function&nbsp;Set($aTxt)</font>
48
</b></div></a></span>
49
 
50
<span style='font-family:arial;font-size:90%;'><i>Specify text string</i></span><p>
51
 
52
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
53
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
54
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
55
$aTxt</font>
56
 
57
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Text string</td></tr>
58
</table>
59
 
60
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify text string&nbsp;<br>
61
 
62
<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">
63
$graph-&gt;title-&gt;Set("Overview&nbsp;for&nbsp;year&nbsp;2002");
<br /></font>
64
</span><br>
65
<p>
66
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_SETALIGN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
67
function&nbsp;SetAlign($aHAlign,$aVAlign)</font>
68
</b></div></a></span>
69
70
 
71
72
 
73
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
74
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
75
$aHAlign</font>
76
77
 
78
79
 
80
$aVAlign</font>
81
82
 
83
"bottom"</font>
84
</td><td>Vertical alignment</td></tr>
85
</table>
86
87
 
88
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="TextProperty.html#_TEXTPROPERTY_ALIGN">TextProperty::Align</a><p>
89
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_SETCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
90
function&nbsp;SetColor($aColor)</font>
91
</b></div></a></span>
92
93
 
94
95
 
96
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
97
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
98
$aColor</font>
99
100
 
101
</table>
102
103
 
104
105
 
106
SetColor('red:0.6');</font>
107
</span><br>
108
<p>
109
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_SETFONT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
110
function&nbsp;SetFont($aFFamily,$aFStyle,$aFSize)</font>
111
</b></div></a></span>
112
113
 
114
115
 
116
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
117
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
118
$aFFamily</font>
119
120
 
121
122
 
123
$aFStyle</font>
124
125
 
126
FS_NORMAL</font>
127
</td><td>Font style</td></tr>
128
129
 
130
$aFSize</font>
131
132
 
133
10</font>
134
</td><td>Font size</td></tr>
135
</table>
136
137
 
138
139
 
140
<ul>
141
<li> FS_NORMAL
142
<li> FS_BOLD
143
<li> FS_ITALIC
144
<li> FS_BOLDITALIC
145
</ul>
146
147
 
148
<ul>
149
<li> FF_FONT0, Internal font 1 (small font)
150
<li> FF_FONT1, Internal font 2, (Medium size)
151
<li> FF_FONT2, Internal font 3, (large size)
152
</ul>
153
154
 
155
156
 
157
<ul>
158
<li> FF_ARIAL
159
<li> FF_TIMES, (Times Roman)
160
<li> FF_COURIER, (Courier new)
161
<li> FF_VERDANA, (Verdana)
162
<li> FF_BOOK, (Bookman)
163
<li> FF_HANDWRT, (Handwriting)
164
<li> FF_COMIC, (Sans Comic)
165
</ul>
166
&nbsp;<br>
167
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Image.html#_IMAGE_STROKETEXT">Image::StrokeText</a>
168
<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">
169
SetFont(FF_ARIAL,FS_NORMAL,12)</font>
170
</span><br>
171
<p>
172
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_TEXTPROPERTY_SHOW"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
173
function&nbsp;Show($aShow)</font>
174
</b></div></a></span>
175
176
 
177
178
 
179
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
180
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
181
$aShow</font>
182
183
 
184
true</font>
185
</td><td>True=Show text</td></tr>
186
</table>
187
188
 
189
<p> <hr> <p>