CLASS FieldArrow
(Defined in: jpgraph_scatter.php : 18)
 FieldArrow 
 SetColor() 
 SetSize() 
 

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

ArgumentDefaultDescription
$aColor  Color specification

Description
Set color for arrow head 

Example

$fieldplot->arrow->SetColor('red');

 

 

function SetSize($aSize,$aArrowSize)
Specify arrow and arrow head size

ArgumentDefaultDescription
$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. 

Example

// 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');