CLASS FieldArrow
(Defined in: jpgraph_scatter.php : 17) Class usage and Overview
Internal helper class which represents the arrow head of the arrow in the field plot.
Only accessed as FieldPlot::arrow
See also related classes:
FieldPlot
Class Methods
function SetColor($aColor)
Specify color for arrow head
Argument | Default | Description |
$aColor
| | Color specification |
Description
Set color for arrow head
$fieldplot->arrow->SetColor('red');
function SetSize($aSize,$aArrowSize)
Specify arrow and arrow head size
Argument | Default | Description |
$aSize
| | Arrow size in pixels |
$aArrowSize
|
2
| Arrow head size (and shape) as integer in range (0-9) |
Description
Arrow size is specified in pixels (length of arrow including arrow head). The size of the arrow head is specified as an integer in the range (0,9) inclusive.
// First size argument is length (in pixels of arrow)
// Second size argument is roughly size of arrow. Arrow size is specified as
// an integer in the range [0,9]
$fp->arrow->SetSize(20,2);
$fp->arrow->SetColor('navy');