Blame | Letzte Änderung | Log anzeigen | RSS feed
<style type="text/css"><!--A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}th {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}//--></style><hr><a name="_C_PLOTLINE"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PlotLine</b></div><i>(Defined in: jpgraph.php : 5818)</i><table border=1><tr><td> <a href="PlotLine.html" style="font-family:arial;font-weight:bold;color:darkblue;">PlotLine</a> </td></tr><tr><td valign=top> <a href="PlotLine.html#_PLOTLINE_HIDELEGEND">HideLegend()</a> <br> <a href="PlotLine.html#_PLOTLINE_PLOTLINE">PlotLine()</a> <br> <a href="PlotLine.html#_PLOTLINE_SETCOLOR">SetColor()</a> <br> <a href="PlotLine.html#_PLOTLINE_SETDIRECTION">SetDirection()</a> <br> <a href="PlotLine.html#_PLOTLINE_SETLEGEND">SetLegend()</a> <br> <a href="PlotLine.html#_PLOTLINE_SETPOSITION">SetPosition()</a> <br> <a href="PlotLine.html#_PLOTLINE_SETWEIGHT">SetWeight()</a> <br></td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>A plot line represents a horizontal or vertical line in the plot at an arbitrary position. A plot line can be added to all X-Y types of plots/graphs. <p> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="Graph.html">Graph</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_HIDELEGEND"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function HideLegend($f)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Hide legend</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:90%;font-weight:bold;'><font color="#000000">$f</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>True/False</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Hide legend <br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_PLOTLINE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function PlotLine($aDir,$aPos,$aColor,$aWeight)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Construct a new plot line</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:90%;font-weight:bold;'><font color="#000000">$aDir</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">HORIZONTAL</font></td><td>Direction, HORIZONTAL or VERTICAL</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$aPos</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">0</font></td><td>Position</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$aColor</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">"black"</font></td><td>Color</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$aWeight</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">1</font></td><td>Line weight</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Create a new horizontal or vertical line in the graph at a specific position.The graph can the be added to the graph with a call to the AddLine <br><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">// Add mark graph with static lines <br />$line = new PlotLine(HORIZONTAL,0,"black",2); <br />$graph->AddLine($line);</font></span><br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_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">function SetColor($aColor)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify color of line</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:90%;font-weight:bold;'><font color="#000000">$aColor</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Color</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set color for line.Note. Colors can also be set in the creation of a PlotLine <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="PlotLine.html#_PLOTLINE_PLOTLINE">PlotLine::PlotLine</a><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">$plotline->SetColor('red'); <br /></font></span><br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_SETDIRECTION"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function SetDirection($aDir)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify direction of line</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:90%;font-weight:bold;'><font color="#000000">$aDir</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Direction, horizontal or vertical line</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify direction of line. Valid arguments are:<ul><li> VERTICAL<li> HORIZONTAL</ul>Note: Direction can also be specified in the creation of a plot line. <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="PlotLine.html#_PLOTLINE_PLOTLINE">PlotLine::PlotLine</a><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">$plotline->SetDirection(VERTICAL); <br />$plotline->SetColor('red'); <br />$graph->AddLine($plotline);</font></span><br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_SETLEGEND"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function SetLegend($aLegend,$aCSIM,$aCSIMAlt)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Set legend text</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:90%;font-weight:bold;'><font color="#000000">$aLegend</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Legend text</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$aCSIM</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>CSIM target</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$aCSIMAlt</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>CSIM Alt text</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set legend text <br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_SETPOSITION"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function SetPosition($aScalePosition)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify position for plot line</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:90%;font-weight:bold;'><font color="#000000">$aScalePosition</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Scale position</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify position for plot line. If the line is vertical the position is interpretated as the x-coordinate and if it is horizontal then the positoin is interpretatedas the Y-coordinate.Note: Position can also be specified in the creation of the line. <br><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">$plotline->SetDirection(HORIZONTAL); <br />$plotline->SetPosition(25); <br />$graph->AddLine($plotline);</font></span><br><p><p> <p> <span style='font-size:110%;'><a name="_PLOTLINE_SETWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">function SetWeight($aWeight)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify line weight </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:90%;font-weight:bold;'><font color="#000000">$aWeight</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Line weight in pixels</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify line weight.Note. Line weight can also be specified in the creation of the line. <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="PlotLine.html#_PLOTLINE_PLOTLINE">PlotLine::PlotLine</a><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">$plotline->SetColor('red'); <br />$plotline->SetDirection(VERTICAL); <br />$plotline->SetPosition(35); <br />$plotline->SetWeight(2); <br /> <br /></font></span><br><p> <hr> <p>