Class GraphTabTitle Extends Text
(Defined in: jpgraph.php : 2990)
 
 GraphTabTitle  Text 
 Set() 
 SetColor() 
 SetCorner() 
 SetFillColor() 
 SetTabAlign() 
 SetWidth() 
 Align() 
 Center() 
 GetFontHeight() 
 GetTextHeight() 
 GetWidth() 
 Hide() 
 ParagraphAlign() 
 Set() 
 SetAlign() 
 SetAngle() 
 SetBox() 
 SetColor() 
 SetCSIMTarget() 
 SetFont() 
 SetMargin() 
 SetOrientation() 
 SetParagraphAlign() 
 SetPos() 
 SetScalePos() 
 SetShadow() 
 SetWordWrap() 
 Show() 
 __construct() 
 

Class usage and Overview
Represents the tab that can be placed on top of the graph

 


Class Methods

 

GraphTabTitle ::
Set($t)
Specify text string for tabbed title

ArgumentDefaultDescription
$t  Text

Description:
Specify text string for tabbed title 

Example:

$graph->tabtitle->Set('First Quarter');

 

GraphTabTitle ::
SetColor($aTxtColor, $aFillColor, $aBorderColor)
Specify color for tab

ArgumentDefaultDescription
$aTxtColor  Text color
$aFillColor 'lightyellow' Background fill color
$aBorderColor 'black' Border color

Description:
Specify all the possible colors for the tab 

Example:

$graph->tabtitle->SetColor('navy','lightyellow','navy');

 

GraphTabTitle ::
SetCorner($aD)
Specify size (in pixels) of the cut in the upper left and right corner

ArgumentDefaultDescription
$aD  Cut in pixels

Description:
Specify size (in pixels) of the cut in the upper left and right corner 

Example:

$graph->tabtitle->SetCorner(8);

 

GraphTabTitle ::
SetFillColor($aFillColor)
Specify background color for tab title

ArgumentDefaultDescription
$aFillColor  Fill color

Description:
Specify background color for tab title 

Example:

$graph->tabtitle->SetFillColor('darkgreen');

 

GraphTabTitle ::
SetTabAlign($aAlign)
Specify position of the tab

ArgumentDefaultDescription
$aAlign  Left right or center position

Description:
Teh tab can be positioned at the left edge on top of the plot area, center or at the right. 

Example:

$graph->tabtitle->SetTabAlign('right');

 

GraphTabTitle ::
SetWidth($aWidth)
Specify width for tab title

ArgumentDefaultDescription
$aWidth  Width of tab (see below)

Description:
The width of the tab title can be specified in either absolute pixels or as the two special values 'TABTITLE_WIDTHFIT' and 'TABTITLE_WIDTHFULL'.

The TABTITLE_WIDTHFIT will make the tab just wide enough to hold the text in the tab and the TABTITLE_WIDTHFULL will extend the tab across the entire plot area.

By default the tab will be formatted as it had been specified as TABTITLE_WIDTHFIT  

Example:

// Specify the tab title width in absolute pixels
$graph->tabtitle->SetWidth(120);