CLASS GraphTabTitle EXTENDS Text (Defined in: jpgraph.php : 2624)

GraphTabTitle | Text
Set() SetColor() SetCorner() SetFillColor() SetPos() SetTabAlign() SetWidth() | Align() Center() GetFontHeight() GetTextHeight() GetWidth() Hide() ParagraphAlign() Pos() Set() SetAlign() SetAngle() SetBox() SetColor() SetFont() SetMargin() SetOrientation() SetPos() SetScalePos() SetShadow() Show() Text()

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

Class Methods

function Set($t)
Specify text string for tabbed title

Argument | Default | Description
--- | --- | ---
$t |  | Text

Description
Specify text string for tabbed title

Example

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

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

Argument | Default | Description
--- | --- | ---
$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');

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

Argument | Default | Description
--- | --- | ---
$aD |  | Cut in pixels

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

Example

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

function SetFillColor($aFillColor)
Specify background color for tab title

Argument | Default | Description
--- | --- | ---
$aFillColor |  | Fill color

Description
Specify background color for tab title

Example

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

function SetPos($aAlign)
Specify position for tab title

Argument | Default | Description
--- | --- | ---
$aAlign |  | 'left', 'center' or 'right' alignment

Description
Specify position for tab title, left, rigth or center.

Example

$graph->tabtitle->SetPos('center');

function SetTabAlign($aAlign)
Specify position of the tab

Argument | Default | Description
--- | --- | ---
$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');

function SetWidth($aWidth)
Specify width for tab title

Argument | Default | Description
--- | --- | ---
$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);