189 lines
16 KiB
HTML
189 lines
16 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><style type="text/css">
|
|
<!--
|
|
A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
|
|
A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
|
|
A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: underline; color: #FF0000}
|
|
A.no:link {font-family:inherit; font-size: inhreit;text-decoration: none; color: #000000}
|
|
A.no:visited {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
|
|
A.no:hover {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
|
|
th {font-family: helvetica, arial; color : black; font-size:90%; background : #b7c8b7; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
|
td {font-family: helvetica, arial; color : black; font-size:90%; background : white; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
|
|
|
//-->
|
|
</style></HEAD><hr><div style="padding-left:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;background-color:#deaa87;font-family:courier new;font-size:16pt;">Class <a class="no" name="_C_GRAPHTABTITLE"><b>GraphTabTitle</b></a> Extends <a style="font-size:14pt;text-decoration:underline;"href="Text.html#_C_TEXT" style="font-face:arial;font-weight:bold;">Text</a></div>
|
|
<i>(Defined in: jpgraph.php : 2990)</i><br> <br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" > <a href="GraphTabTitle.html" style="font-family:arial;font-weight:bold;color:darkblue;">GraphTabTitle</a> </td><td align="center" style="background:lightgray;" > <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>
|
|
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETCOLOR">SetColor()</a> <br>
|
|
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETCORNER">SetCorner()</a> <br>
|
|
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETFILLCOLOR">SetFillColor()</a> <br>
|
|
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETTABALIGN">SetTabAlign()</a> <br>
|
|
<a href="GraphTabTitle.html#_GRAPHTABTITLE_SETWIDTH">SetWidth()</a> <br>
|
|
</td><td valign=top> <a href="Text.html#_TEXT_ALIGN">Align()</a> <br>
|
|
<a href="Text.html#_TEXT_CENTER">Center()</a> <br>
|
|
<a href="Text.html#_TEXT_GETFONTHEIGHT">GetFontHeight()</a> <br>
|
|
<a href="Text.html#_TEXT_GETTEXTHEIGHT">GetTextHeight()</a> <br>
|
|
<a href="Text.html#_TEXT_GETWIDTH">GetWidth()</a> <br>
|
|
<a href="Text.html#_TEXT_HIDE">Hide()</a> <br>
|
|
<a href="Text.html#_TEXT_PARAGRAPHALIGN">ParagraphAlign()</a> <br>
|
|
<a href="Text.html#_TEXT_SET" style="color:darkgrey;">Set() </a><br>
|
|
<a href="Text.html#_TEXT_SETALIGN">SetAlign()</a> <br>
|
|
<a href="Text.html#_TEXT_SETANGLE">SetAngle()</a> <br>
|
|
<a href="Text.html#_TEXT_SETBOX">SetBox()</a> <br>
|
|
<a href="Text.html#_TEXT_SETCOLOR" style="color:darkgrey;">SetColor() </a><br>
|
|
<a href="Text.html#_TEXT_SETCSIMTARGET">SetCSIMTarget()</a> <br>
|
|
<a href="Text.html#_TEXT_SETFONT">SetFont()</a> <br>
|
|
<a href="Text.html#_TEXT_SETMARGIN">SetMargin()</a> <br>
|
|
<a href="Text.html#_TEXT_SETORIENTATION">SetOrientation()</a> <br>
|
|
<a href="Text.html#_TEXT_SETPARAGRAPHALIGN">SetParagraphAlign()</a> <br>
|
|
<a href="Text.html#_TEXT_SETPOS">SetPos()</a> <br>
|
|
<a href="Text.html#_TEXT_SETSCALEPOS">SetScalePos()</a> <br>
|
|
<a href="Text.html#_TEXT_SETSHADOW">SetShadow()</a> <br>
|
|
<a href="Text.html#_TEXT_SETWORDWRAP">SetWordWrap()</a> <br>
|
|
<a href="Text.html#_TEXT_SHOW">Show()</a> <br>
|
|
<a href="Text.html#_TEXT___CONSTRUCT" style="color:darkgrey;">__construct() </a><br>
|
|
</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>
|
|
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SET"><span style="color:#555555;">GraphTabTitle ::</span><br><b>Set</b>($t)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify text string for tabbed title</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$t</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Text</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Specify text string for tabbed title <br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">Set</span><span style="color: #007700">(</span><span style="color: #DD0000">'First Quarter'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SETCOLOR"><span style="color:#555555;">GraphTabTitle ::</span><br><b>SetColor</b>($aTxtColor, $aFillColor, $aBorderColor)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify color for tab</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aTxtColor</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Text color</td></tr>
|
|
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aFillColor</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB"></span><span style="color: #DD0000">'lightyellow'</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</td><td>Background fill color</td></tr>
|
|
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aBorderColor</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB"></span><span style="color: #DD0000">'black'</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</td><td>Border color</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Specify all the possible colors for the tab <br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">SetColor</span><span style="color: #007700">(</span><span style="color: #DD0000">'navy'</span><span style="color: #007700">,</span><span style="color: #DD0000">'lightyellow'</span><span style="color: #007700">,</span><span style="color: #DD0000">'navy'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SETCORNER"><span style="color:#555555;">GraphTabTitle ::</span><br><b>SetCorner</b>($aD)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify size (in pixels) of the cut in the upper left and right corner</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aD</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Cut in pixels</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Specify size (in pixels) of the cut in the upper left and right corner <br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">SetCorner</span><span style="color: #007700">(</span><span style="color: #0000BB">8</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SETFILLCOLOR"><span style="color:#555555;">GraphTabTitle ::</span><br><b>SetFillColor</b>($aFillColor)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify background color for tab title</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aFillColor</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Fill color</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Specify background color for tab title <br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">SetFillColor</span><span style="color: #007700">(</span><span style="color: #DD0000">'darkgreen'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SETTABALIGN"><span style="color:#555555;">GraphTabTitle ::</span><br><b>SetTabAlign</b>($aAlign)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify position of the tab</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aAlign</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Left right or center position</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Teh tab can be positioned at the left edge on top of the plot area, center or at the right. <br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">SetTabAlign</span><span style="color: #007700">(</span><span style="color: #DD0000">'right'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p>
|
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GRAPHTABTITLE_SETWIDTH"><span style="color:#555555;">GraphTabTitle ::</span><br><b>SetWidth</b>($aWidth)</a></div>
|
|
|
|
<span style='font-family:arial;font-size:95%;'><i>Specify width for tab title</i></span><p>
|
|
|
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
|
<span style="color: #0000BB">$aWidth</span>
|
|
</span>
|
|
|
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Width of tab (see below)</td></tr>
|
|
</table>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">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'.
|
|
<p>
|
|
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.
|
|
<p>
|
|
By default the tab will be formatted as it had been specified as TABTITLE_WIDTHFIT
|
|
|
|
|
|
<br>
|
|
|
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
|
<span style="color: #0000BB"></span><span style="color: #FF8000">// Specify the tab title width in absolute pixels
|
|
<br /></span><span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">tabtitle</span><span style="color: #007700">-></span><span style="color: #0000BB">SetWidth</span><span style="color: #007700">(</span><span style="color: #0000BB">120</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
|
</span>
|
|
</b></div><br>
|
|
<p> <hr> <p></html> |