| 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_LINEPROPERTY"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>LineProperty</b></div>
|
|
|
9 |
<i>(Defined in: jpgraph.php : 2735)</i><table border=1><tr><td> <a href="LineProperty.html" style="font-family:arial;font-weight:bold;color:darkblue;">LineProperty</a> </td></tr><tr><td valign=top> <a href="LineProperty.html#_LINEPROPERTY_SETCOLOR">SetColor()</a> <br>
|
|
|
10 |
<a href="LineProperty.html#_LINEPROPERTY_SETSTYLE">SetStyle()</a> <br>
|
|
|
11 |
<a href="LineProperty.html#_LINEPROPERTY_SETWEIGHT">SetWeight()</a> <br>
|
|
|
12 |
<a href="LineProperty.html#_LINEPROPERTY_SHOW">Show()</a> <br>
|
|
|
13 |
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Property class to define properties for a line. Currently used only by Gantt chart to specify the grid line properties. <p>
|
|
|
14 |
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
15 |
<p> <p> <span style='font-size:110%;'><a name="_LINEPROPERTY_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">
|
|
|
16 |
function SetColor($aColor)</font>
|
|
|
17 |
</b></div></a></span>
|
|
|
18 |
|
|
|
19 |
<span style='font-family:arial;font-size:90%;'><i>Set line color</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 |
$aColor</font>
|
|
|
25 |
|
|
|
26 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Color</td></tr>
|
|
|
27 |
</table>
|
|
|
28 |
|
|
|
29 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set line color <br>
|
|
|
30 |
|
|
|
31 |
<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">
|
|
|
32 |
$gantgraph->grid->SetColor('darkgrey');</font>
|
|
|
33 |
</span><br>
|
|
|
34 |
<p>
|
|
|
35 |
<p> <p> <span style='font-size:110%;'><a name="_LINEPROPERTY_SETSTYLE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
36 |
function SetStyle($aStyle)</font>
|
|
|
37 |
</b></div></a></span>
|
|
|
38 |
|
|
|
39 |
<span style='font-family:arial;font-size:90%;'><i>Set line style</i></span><p>
|
|
|
40 |
|
|
|
41 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
42 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
43 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
44 |
$aStyle</font>
|
|
|
45 |
|
|
|
46 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Line style</td></tr>
|
|
|
47 |
</table>
|
|
|
48 |
|
|
|
49 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Linestyle for lines. Valid linestyles are:<br>
|
|
|
50 |
'solid', 'dotted', 'dashed'
|
|
|
51 |
<p>
|
|
|
52 |
The default line style is 'solid' <br>
|
|
|
53 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Image.html#_IMAGE_SETLINESTYLE">Image::SetLineStyle</a>
|
|
|
54 |
<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">
|
|
|
55 |
$gantgraph->grid->SetColor('darkgrey');</font>
|
|
|
56 |
</span><br>
|
|
|
57 |
<p>
|
|
|
58 |
<p> <p> <span style='font-size:110%;'><a name="_LINEPROPERTY_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">
|
|
|
59 |
function SetWeight($aWeight)</font>
|
|
|
60 |
</b></div></a></span>
|
|
|
61 |
|
|
|
62 |
<span style='font-family:arial;font-size:90%;'><i>Specify weight of the line</i></span><p>
|
|
|
63 |
|
|
|
64 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
65 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
66 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
67 |
$aWeight</font>
|
|
|
68 |
|
|
|
69 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Line width in pixels</td></tr>
|
|
|
70 |
</table>
|
|
|
71 |
|
|
|
72 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set line width <br>
|
|
|
73 |
|
|
|
74 |
<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">
|
|
|
75 |
$gantgraph->grid->SetWeight(2);</font>
|
|
|
76 |
</span><br>
|
|
|
77 |
<p>
|
|
|
78 |
<p> <p> <span style='font-size:110%;'><a name="_LINEPROPERTY_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">
|
|
|
79 |
function Show($aShow)</font>
|
|
|
80 |
</b></div></a></span>
|
|
|
81 |
|
|
|
82 |
<span style='font-family:arial;font-size:90%;'><i>Determine if the line should be hidden or not</i></span><p>
|
|
|
83 |
|
|
|
84 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
85 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
86 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
87 |
$aShow</font>
|
|
|
88 |
|
|
|
89 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
90 |
true</font>
|
|
|
91 |
</td><td>True=Display line</td></tr>
|
|
|
92 |
</table>
|
|
|
93 |
|
|
|
94 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Show line, default is to hide the line. <br>
|
|
|
95 |
|
|
|
96 |
<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">
|
|
|
97 |
$gantgraph->grid->Show(false); // Hide the grid</font>
|
|
|
98 |
</span><br>
|
|
|
99 |
<p> <hr> <p>
|