PageRenderTime 25ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/framework/lib/jpgraph/docportal/classref/LineProperty.html

https://github.com/nephie/AZL-website
HTML | 141 lines | 103 code | 27 blank | 11 comment | 0 complexity | 045e118013d9f69b774852205a334414 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><style type="text/css">
  2. <!--
  3. A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  4. A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  5. A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: underline; color: #FF0000}
  6. A.no:link {font-family:inherit; font-size: inhreit;text-decoration: none; color: #000000}
  7. A.no:visited {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  8. A.no:hover {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  9. th {font-family: helvetica, arial; color : black; font-size:90%; background : #b7c8b7; border-right:black solid 1pt; border-bottom:black solid 1pt;}
  10. td {font-family: helvetica, arial; color : black; font-size:90%; background : white; border-right:black solid 1pt; border-bottom:black solid 1pt;}
  11. //-->
  12. </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_LINEPROPERTY"><b>LineProperty</b></a></div>
  13. <i>(Defined in: jpgraph.php : 2945)</i><br>&nbsp;<br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" >&nbsp;<a href="LineProperty.html" style="font-family:arial;font-weight:bold;color:darkblue;">LineProperty</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="LineProperty.html#_LINEPROPERTY_SETCOLOR">SetColor()</a>&nbsp;<br>
  14. &nbsp;<a href="LineProperty.html#_LINEPROPERTY_SETSTYLE">SetStyle()</a>&nbsp;<br>
  15. &nbsp;<a href="LineProperty.html#_LINEPROPERTY_SETWEIGHT">SetWeight()</a>&nbsp;<br>
  16. &nbsp;<a href="LineProperty.html#_LINEPROPERTY_SHOW">Show()</a>&nbsp;<br>
  17. &nbsp;<a href="LineProperty.html#_LINEPROPERTY___CONSTRUCT">__construct()</a>&nbsp;<br>
  18. </td></tr></table>&nbsp;<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> &nbsp;
  19. <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
  20. <p> &nbsp; <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="_LINEPROPERTY_SETCOLOR"><span style="color:#555555;">LineProperty ::</span><br><b>SetColor</b>($aColor)</a></div>
  21. <span style='font-family:arial;font-size:95%;'><i>Set line color</i></span><p>
  22. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  23. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  24. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  25. <span style="color: #0000BB">$aColor</span>
  26. </span>
  27. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>Color</td></tr>
  28. </table>
  29. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Set line color&nbsp;<br>
  30. <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">
  31. <span style="color: #0000BB">$gantgraph</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">grid</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetColor</span><span style="color: #007700">(</span><span style="color: #DD0000">'darkgrey'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
  32. </span>
  33. </b></div><br>
  34. <p>
  35. <p> &nbsp; <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="_LINEPROPERTY_SETSTYLE"><span style="color:#555555;">LineProperty ::</span><br><b>SetStyle</b>($aStyle)</a></div>
  36. <span style='font-family:arial;font-size:95%;'><i>Set line style</i></span><p>
  37. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  38. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  39. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  40. <span style="color: #0000BB">$aStyle</span>
  41. </span>
  42. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>Line style</td></tr>
  43. </table>
  44. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Linestyle for lines. Valid linestyles are:<br>
  45. 'solid', 'dotted', 'dashed'
  46. <p>
  47. The default line style is 'solid'&nbsp;<br>
  48. &nbsp; <div style="font-weight:bold;font-family:arial;font-size:90%;">See also:</div><ul><li><a href="Image.html#_IMAGE_SETLINESTYLE">Image::SetLineStyle()</a></ul>
  49. <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">
  50. <span style="color: #0000BB">$gantgraph</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">grid</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetColor</span><span style="color: #007700">(</span><span style="color: #DD0000">'darkgrey'</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
  51. </span>
  52. </b></div><br>
  53. <p>
  54. <p> &nbsp; <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="_LINEPROPERTY_SETWEIGHT"><span style="color:#555555;">LineProperty ::</span><br><b>SetWeight</b>($aWeight)</a></div>
  55. <span style='font-family:arial;font-size:95%;'><i>Specify weight of the line</i></span><p>
  56. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  57. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  58. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  59. <span style="color: #0000BB">$aWeight</span>
  60. </span>
  61. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>Line width in pixels</td></tr>
  62. </table>
  63. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Set line width&nbsp;<br>
  64. <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">
  65. <span style="color: #0000BB">$gantgraph</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">grid</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetWeight</span><span style="color: #007700">(</span><span style="color: #0000BB">2</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
  66. </span>
  67. </b></div><br>
  68. <p>
  69. <p> &nbsp; <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="_LINEPROPERTY_SHOW"><span style="color:#555555;">LineProperty ::</span><br><b>Show</b>($aShow)</a></div>
  70. <span style='font-family:arial;font-size:95%;'><i>Determine if the line should be hidden or not</i></span><p>
  71. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  72. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  73. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  74. <span style="color: #0000BB">$aShow</span>
  75. </span>
  76. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  77. <span style="color: #0000BB">true</span>
  78. </span>
  79. </td><td>True=Display line</td></tr>
  80. </table>
  81. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Show line, default is to hide the line.&nbsp;<br>
  82. <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">
  83. <span style="color: #0000BB">$gantgraph</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">grid</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Show</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Hide&nbsp;the&nbsp;grid</span><span style="color: #0000BB"></span>
  84. </span>
  85. </b></div><br>
  86. <p>
  87. <p> &nbsp; <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="_LINEPROPERTY___CONSTRUCT"><span style="color:#555555;">LineProperty ::</span><br><b>__construct</b>($aWeight, $aColor, $aStyle)</a></div>
  88. <span style='font-family:arial;font-size:95%;'><i>//===================================================// CLASS LineProperty// Description: Holds properties for a line//===================================================</i></span><p>
  89. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  90. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  91. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  92. <span style="color: #0000BB">$aWeight</span>
  93. </span>
  94. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  95. <span style="color: #0000BB">1</span>
  96. </span>
  97. </td><td>No description available</td></tr>
  98. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  99. <span style="color: #0000BB">$aColor</span>
  100. </span>
  101. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  102. <span style="color: #0000BB"></span><span style="color: #DD0000">'black'</span><span style="color: #0000BB"></span>
  103. </span>
  104. </td><td>No description available</td></tr>
  105. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  106. <span style="color: #0000BB">$aStyle</span>
  107. </span>
  108. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  109. <span style="color: #0000BB"></span><span style="color: #DD0000">'solid'</span><span style="color: #0000BB"></span>
  110. </span>
  111. </td><td>No description available</td></tr>
  112. </table>
  113. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p> <hr> <p></html>