| 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_GRAPHTABTITLE"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>GraphTabTitle</b> EXTENDS <a href="Text.html#_C_TEXT" style="font-face:arial;font-weight:bold;">Text</a></div>
|
|
|
9 |
<i>(Defined in: jpgraph.php : 3027)</i><table border=1><tr><td> <a href="GraphTabTitle.html" style="font-family:arial;font-weight:bold;color:darkblue;">GraphTabTitle</a> </td><td> <a href="Text.html" style="font-family:arial;font-weight:bold;color:darkblue;">Text</a> </td></tr><tr><td valign=top> <a href="GraphTabTitle.html#_GRAPHTABTITLE_SET">Set()</a> <br>
|
|
|
10 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETCOLOR">SetColor()</a> <br>
|
|
|
11 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETCORNER">SetCorner()</a> <br>
|
|
|
12 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETFILLCOLOR">SetFillColor()</a> <br>
|
|
|
13 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETPOS">SetPos()</a> <br>
|
|
|
14 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETTABALIGN">SetTabAlign()</a> <br>
|
|
|
15 |
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETWIDTH">SetWidth()</a> <br>
|
|
|
16 |
</td><td valign=top> <a href="Text.html#_TEXT_ALIGN">Align()</a> <br>
|
|
|
17 |
<a href="Text.html#_TEXT_CENTER">Center()</a> <br>
|
|
|
18 |
<a href="Text.html#_TEXT_GETFONTHEIGHT">GetFontHeight()</a> <br>
|
|
|
19 |
<a href="Text.html#_TEXT_GETTEXTHEIGHT">GetTextHeight()</a> <br>
|
|
|
20 |
<a href="Text.html#_TEXT_GETWIDTH">GetWidth()</a> <br>
|
|
|
21 |
<a href="Text.html#_TEXT_HIDE">Hide()</a> <br>
|
|
|
22 |
<a href="Text.html#_TEXT_PARAGRAPHALIGN">ParagraphAlign()</a> <br>
|
|
|
23 |
<a href="Text.html#_TEXT_POS">Pos()</a> <br>
|
|
|
24 |
<a href="Text.html#_TEXT_SET" style="color:darkgrey;">Set() </a><br>
|
|
|
25 |
<a href="Text.html#_TEXT_SETALIGN">SetAlign()</a> <br>
|
|
|
26 |
<a href="Text.html#_TEXT_SETANGLE">SetAngle()</a> <br>
|
|
|
27 |
<a href="Text.html#_TEXT_SETBOX">SetBox()</a> <br>
|
|
|
28 |
<a href="Text.html#_TEXT_SETCOLOR" style="color:darkgrey;">SetColor() </a><br>
|
|
|
29 |
<a href="Text.html#_TEXT_SETCSIMTARGET">SetCSIMTarget()</a> <br>
|
|
|
30 |
<a href="Text.html#_TEXT_SETFONT">SetFont()</a> <br>
|
|
|
31 |
<a href="Text.html#_TEXT_SETMARGIN">SetMargin()</a> <br>
|
|
|
32 |
<a href="Text.html#_TEXT_SETORIENTATION">SetOrientation()</a> <br>
|
|
|
33 |
<a href="Text.html#_TEXT_SETPARAGRAPHALIGN">SetParagraphAlign()</a> <br>
|
|
|
34 |
<a href="Text.html#_TEXT_SETPOS" style="color:darkgrey;">SetPos() </a><br>
|
|
|
35 |
<a href="Text.html#_TEXT_SETSCALEPOS">SetScalePos()</a> <br>
|
|
|
36 |
<a href="Text.html#_TEXT_SETSHADOW">SetShadow()</a> <br>
|
|
|
37 |
<a href="Text.html#_TEXT_SETWORDWRAP">SetWordWrap()</a> <br>
|
|
|
38 |
<a href="Text.html#_TEXT_SHOW">Show()</a> <br>
|
|
|
39 |
<a href="Text.html#_TEXT_TEXT">Text()</a> <br>
|
|
|
40 |
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Represents the tab that can be placed on top of the graph <p>
|
|
|
41 |
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
42 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_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">
|
|
|
43 |
function Set($t)</font>
|
|
|
44 |
</b></div></a></span>
|
|
|
45 |
|
|
|
46 |
<span style='font-family:arial;font-size:90%;'><i>Specify text string for tabbed title</i></span><p>
|
|
|
47 |
|
|
|
48 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
49 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
50 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
51 |
$t</font>
|
|
|
52 |
|
|
|
53 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Text</td></tr>
|
|
|
54 |
</table>
|
|
|
55 |
|
|
|
56 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify text string for tabbed title <br>
|
|
|
57 |
|
|
|
58 |
<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">
|
|
|
59 |
$graph->tabtitle->Set('First Quarter');</font>
|
|
|
60 |
</span><br>
|
|
|
61 |
<p>
|
|
|
62 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_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">
|
|
|
63 |
function SetColor($aTxtColor,$aFillColor,$aBorderColor)</font>
|
|
|
64 |
</b></div></a></span>
|
|
|
65 |
|
|
|
66 |
<span style='font-family:arial;font-size:90%;'><i>Specify color for tab</i></span><p>
|
|
|
67 |
|
|
|
68 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
69 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
70 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
71 |
$aTxtColor</font>
|
|
|
72 |
|
|
|
73 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Text color</td></tr>
|
|
|
74 |
|
|
|
75 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
76 |
$aFillColor</font>
|
|
|
77 |
|
|
|
78 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
79 |
'lightyellow'</font>
|
|
|
80 |
</td><td>Background fill color</td></tr>
|
|
|
81 |
|
|
|
82 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
83 |
$aBorderColor</font>
|
|
|
84 |
|
|
|
85 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
86 |
'black'</font>
|
|
|
87 |
</td><td>Border color</td></tr>
|
|
|
88 |
</table>
|
|
|
89 |
|
|
|
90 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify all the possible colors for the tab <br>
|
|
|
91 |
|
|
|
92 |
<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">
|
|
|
93 |
$graph->tabtitle->SetColor('navy','lightyellow','navy');</font>
|
|
|
94 |
</span><br>
|
|
|
95 |
<p>
|
|
|
96 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_SETCORNER"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
97 |
function SetCorner($aD)</font>
|
|
|
98 |
</b></div></a></span>
|
|
|
99 |
|
|
|
100 |
<span style='font-family:arial;font-size:90%;'><i>Specify size (in pixels) of the cut in the upper left and right corner</i></span><p>
|
|
|
101 |
|
|
|
102 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
103 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
104 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
105 |
$aD</font>
|
|
|
106 |
|
|
|
107 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Cut in pixels</td></tr>
|
|
|
108 |
</table>
|
|
|
109 |
|
|
|
110 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify size (in pixels) of the cut in the upper left and right corner <br>
|
|
|
111 |
|
|
|
112 |
<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">
|
|
|
113 |
$graph->tabtitle->SetCorner(8);</font>
|
|
|
114 |
</span><br>
|
|
|
115 |
<p>
|
|
|
116 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_SETFILLCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
117 |
function SetFillColor($aFillColor)</font>
|
|
|
118 |
</b></div></a></span>
|
|
|
119 |
|
|
|
120 |
<span style='font-family:arial;font-size:90%;'><i>Specify background color for tab title</i></span><p>
|
|
|
121 |
|
|
|
122 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
123 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
124 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
125 |
$aFillColor</font>
|
|
|
126 |
|
|
|
127 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fill color</td></tr>
|
|
|
128 |
</table>
|
|
|
129 |
|
|
|
130 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify background color for tab title <br>
|
|
|
131 |
|
|
|
132 |
<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">
|
|
|
133 |
$graph->tabtitle->SetFillColor('darkgreen');</font>
|
|
|
134 |
</span><br>
|
|
|
135 |
<p>
|
|
|
136 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_SETPOS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
137 |
function SetPos($aAlign)</font>
|
|
|
138 |
</b></div></a></span>
|
|
|
139 |
|
|
|
140 |
<span style='font-family:arial;font-size:90%;'><i>Specify position for tab title</i></span><p>
|
|
|
141 |
|
|
|
142 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
143 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
144 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
145 |
$aAlign</font>
|
|
|
146 |
|
|
|
147 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>'left', 'center' or 'right' alignment</td></tr>
|
|
|
148 |
</table>
|
|
|
149 |
|
|
|
150 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify position for tab title, left, rigth or center. <br>
|
|
|
151 |
|
|
|
152 |
<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">
|
|
|
153 |
$graph->tabtitle->SetPos('center');</font>
|
|
|
154 |
</span><br>
|
|
|
155 |
<p>
|
|
|
156 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_SETTABALIGN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
157 |
function SetTabAlign($aAlign)</font>
|
|
|
158 |
</b></div></a></span>
|
|
|
159 |
|
|
|
160 |
<span style='font-family:arial;font-size:90%;'><i>Specify position of the tab</i></span><p>
|
|
|
161 |
|
|
|
162 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
163 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
164 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
165 |
$aAlign</font>
|
|
|
166 |
|
|
|
167 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Left right or center position</td></tr>
|
|
|
168 |
</table>
|
|
|
169 |
|
|
|
170 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Teh tab can be positioned at the left edge on top of the plot area, center or at the right. <br>
|
|
|
171 |
|
|
|
172 |
<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">
|
|
|
173 |
$graph->tabtitle->SetTabAlign('right');</font>
|
|
|
174 |
</span><br>
|
|
|
175 |
<p>
|
|
|
176 |
<p> <p> <span style='font-size:110%;'><a name="_GRAPHTABTITLE_SETWIDTH"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
177 |
function SetWidth($aWidth)</font>
|
|
|
178 |
</b></div></a></span>
|
|
|
179 |
|
|
|
180 |
<span style='font-family:arial;font-size:90%;'><i>Specify width for tab title</i></span><p>
|
|
|
181 |
|
|
|
182 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
183 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
184 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
185 |
$aWidth</font>
|
|
|
186 |
|
|
|
187 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Width of tab (see below)</td></tr>
|
|
|
188 |
</table>
|
|
|
189 |
|
|
|
190 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>The width of the tab title can be specified in either absolute pixels or as the two special values 'TABTITLE_WIDTHFIT' and 'TABTITLE_WIDTHFULL'.
|
|
|
191 |
<p>
|
|
|
192 |
The TABTITLE_WIDTHFIT will make the tab just wide enough to hold the text in the tab and the TABTITLE_WIDTHFULL will extend the tab across the entire plot area.
|
|
|
193 |
<p>
|
|
|
194 |
By default the tab will be formatted as it had been specified as TABTITLE_WIDTHFIT
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
<br>
|
|
|
198 |
|
|
|
199 |
<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">
|
|
|
200 |
// Specify the tab title width in absolute pixels
<br />$graph->tabtitle->SetWidth(120);</font>
|
|
|
201 |
</span><br>
|
|
|
202 |
<p> <hr> <p>
|