class BarGraph extends LineGraph

Properties

$arrRGB from AbstractGraph
$arrColor from AbstractGraph
$arrDarkColor from AbstractGraph
$image from AbstractGraph
$left from AbstractGraph
$top from AbstractGraph
$shade_color from AbstractGraph
$flame_color from AbstractGraph
$shade_on from AbstractGraph
$text_color from AbstractGraph
$labelbg_color from AbstractGraph
$bgw from AbstractGraph
$bgh from AbstractGraph
$clabelbg_color from AbstractGraph
$title_color from AbstractGraph
$text_top from AbstractGraph
$mark_color from AbstractGraph
$arrLegend from AbstractGraph
$ARR_GRAPH_RGB グラフ背景 from AbstractGraph
$ARR_BG_COLOR 背景色 from AbstractGraph
$ARR_SHADE_COLOR 影の色 from AbstractGraph
$ARR_FLAME_COLOR 縁の色 from AbstractGraph
$ARR_TEXT_COLOR 文字色 from AbstractGraph
$ARR_LABELBG_COLOR ラベル背景 from AbstractGraph
$ARR_LEGENDBG_COLOR 凡例背景 from AbstractGraph
$ARR_TITLE_COLOR タイトル文字色 from AbstractGraph
$ARR_GRID_COLOR グリッド線色 from AbstractGraph
$area_width from LineGraph
$area_height from LineGraph
$ygrid_on from LineGraph
$graph_max from LineGraph
$arrXLabel from LineGraph
$XLabelAngle from LineGraph
$XTitle from LineGraph
$YTitle from LineGraph
$arrDataList from LineGraph
$arrPointList from LineGraph
$line_max from LineGraph
$x_margin from LineGraph
$y_margin from LineGraph

Methods

__construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, $area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT)

No description

resampled()

No description

setColorList($arrRGB)

No description

setShadeOn($shade_on)

No description

outputGraph($header = true, $filename = '')

No description

getTextWidth($text, $font_size)

No description

setText($font_size, $left, $top, $text, $color = NULL, $angle, $labelbg = false)

No description

drawTitle($text, $font_size = TITLE_FONT_SIZE)

No description

debugPrint($text)

No description

drawLegend($legend_max = '', $clabelbg = true)

No description

drawClabelBG($left, $top, $right, $bottom)

No description

setLegend($arrLegend)

No description

void
init()

クラスの初期化を行う.

double[]
lfGetArcPos($cx, $cy, $cw, $ch, $e)

円の中心点と直径から弧の終端座標を算出する.

lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB)

画像にテキストを描画する

lfGetImageColor($image, $array)

表示色の取得

lfGetImageDarkColor($image, $array)

影用表示色の取得

setXLabelAngle(integer $Angle)

No description

from LineGraph
drawYTitle()

No description

from LineGraph
drawXTitle()

No description

from LineGraph
drawYLine()

No description

from LineGraph
drawXLine($bar = false)

No description

from LineGraph
setYGridOn($ygrid_on)

No description

from LineGraph
setMark($line_no, $left, $top, $size = LINE_MARK_SIZE)

No description

from LineGraph
setYScale()

No description

from LineGraph
setMax($arrData)

No description

from LineGraph
drawGraph()

No description

drawLine(integer $line_no)

No description

from LineGraph
drawMark(integer $line_no)

No description

from LineGraph
drawLabel(integer $line_no)

No description

setData($arrData)

No description

from LineGraph
setXLabel($arrXLabel)

No description

from LineGraph
setXTitle(string $title)

No description

from LineGraph
setYTitle(string $title)

No description

from LineGraph
drawBar(integer $line_no)

No description

Details

at line 19
__construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, $area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT)

Parameters

$bgw
$bgh
$left
$top
$area_width
$area_height

in AbstractGraph at line 202
resampled()

in AbstractGraph at line 213
setColorList($arrRGB)

Parameters

$arrRGB

in AbstractGraph at line 228
setShadeOn($shade_on)

Parameters

$shade_on

in AbstractGraph at line 234
outputGraph($header = true, $filename = '')

Parameters

$header
$filename

in AbstractGraph at line 250
getTextWidth($text, $font_size)

Parameters

$text
$font_size

in AbstractGraph at line 269
setText($font_size, $left, $top, $text, $color = NULL, $angle, $labelbg = false)

Parameters

$font_size
$left
$top
$text
$color
$angle
$labelbg

in AbstractGraph at line 306
drawTitle($text, $font_size = TITLE_FONT_SIZE)

Parameters

$text
$font_size

in AbstractGraph at line 316
debugPrint($text)

Parameters

$text

in AbstractGraph at line 328
drawLegend($legend_max = '', $clabelbg = true)

Parameters

$legend_max
$clabelbg

in AbstractGraph at line 384
drawClabelBG($left, $top, $right, $bottom)

Parameters

$left
$top
$right
$bottom

in AbstractGraph at line 396
setLegend($arrLegend)

Parameters

$arrLegend

in AbstractGraph at line 409
void init()

クラスの初期化を行う.

表示色をメンバ変数にセットする.

Return Value

void

in AbstractGraph at line 451
double[] lfGetArcPos($cx, $cy, $cw, $ch, $e)

円の中心点と直径から弧の終端座標を算出する.

Parameters

$cx
$cy
$cw
$ch
$e

Return Value

double[] 円の中心点と直径から弧の終端座標の配列

in AbstractGraph at line 464
lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB)

画像にテキストを描画する

Parameters

$dst_image
$text
$font_size
$left
$top
$font
$arrRGB

in AbstractGraph at line 475
lfGetImageColor($image, $array)

表示色の取得

Parameters

$image
$array

in AbstractGraph at line 486
lfGetImageDarkColor($image, $array)

影用表示色の取得

Parameters

$image
$array

in LineGraph at line 53
setXLabelAngle(integer $Angle)

Parameters

integer $Angle

in LineGraph at line 59
drawYTitle()

in LineGraph at line 71
drawXTitle()

in LineGraph at line 83
drawYLine()

in LineGraph at line 109
drawXLine($bar = false)

Parameters

$bar

in LineGraph at line 153
setYGridOn($ygrid_on)

Parameters

$ygrid_on

in LineGraph at line 163
setMark($line_no, $left, $top, $size = LINE_MARK_SIZE)

Parameters

$line_no
$left
$top
$size

in LineGraph at line 179
setYScale()

in LineGraph at line 196
setMax($arrData)

Parameters

$arrData

at line 26
drawGraph()

in LineGraph at line 243
drawLine(integer $line_no)

Parameters

integer $line_no

in LineGraph at line 264
drawMark(integer $line_no)

Parameters

integer $line_no

at line 84
drawLabel(integer $line_no)

Parameters

integer $line_no

in LineGraph at line 296
setData($arrData)

Parameters

$arrData

in LineGraph at line 318
setXLabel($arrXLabel)

Parameters

$arrXLabel

in LineGraph at line 328
setXTitle(string $title)

Parameters

string $title

in LineGraph at line 338
setYTitle(string $title)

Parameters

string $title

at line 50
drawBar(integer $line_no)

Parameters

integer $line_no