Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/graph/SC_Graph_Line.php

    r22206 r22567  
    2323 
    2424// 折れ線グラフ生成クラス 
    25 class SC_Graph_Line extends SC_Graph_Base_Ex{ 
     25class SC_Graph_Line extends SC_Graph_Base_Ex 
     26{ 
    2627    var $area_width; 
    2728    var $area_height; 
     
    5556 
    5657    // X軸ラベルの角度セット 
    57     function setXLabelAngle($Angle) { 
     58    function setXLabelAngle($Angle) 
     59    { 
    5860        $this->XLabelAngle = $Angle; 
    5961    } 
    6062 
    6163    // Y軸タイトル 
    62     function drawYTitle() { 
     64    function drawYTitle() 
     65    { 
    6366        // Y軸にタイトルを入れる 
    6467        if ($this->YTitle != '') { 
     
    7174 
    7275    // X軸タイトル 
    73     function drawXTitle() { 
     76    function drawXTitle() 
     77    { 
    7478        // Y軸にタイトルを入れる 
    7579        if ($this->XTitle != '') { 
     
    8286 
    8387    // Y軸の描画 
    84     function drawYLine() { 
     88    function drawYLine() 
     89    { 
    8590        imageline($this->image, $this->left, $this->top, $this->left, $this->top + $this->area_height, $this->flame_color); 
    8691        // 目盛り幅を求める(中間点は自動) 
     
    107112 
    108113    // X軸の描画 
    109     function drawXLine($bar = false) { 
     114    function drawXLine($bar = false) 
     115    { 
    110116        imageline($this->image, $this->left, $this->top + $this->area_height, $this->left + $this->area_width, $this->top + $this->area_height, $this->flame_color); 
    111117        $arrPointList = $this->arrPointList[0]; 
     
    150156 
    151157    // グリッド表示 
    152     function setYGridOn($ygrid_on) { 
     158    function setYGridOn($ygrid_on) 
     159    { 
    153160        $this->ygrid_on = $ygrid_on; 
    154161    } 
    155162 
    156163    // ポイントの描画 
    157     function setMark($line_no, $left, $top, $size = LINE_MARK_SIZE) { 
     164    function setMark($line_no, $left, $top, $size = LINE_MARK_SIZE) 
     165    { 
    158166        // 偶数に変換しておく 
    159167        $size += $size % 2; 
     
    170178 
    171179    // Y軸目盛りに値を入れる 
    172     function setYScale() { 
     180    function setYScale() 
     181    { 
    173182        // 1目盛りの値 
    174183        $number = intval($this->graph_max / LINE_Y_SCALE); 
     
    186195 
    187196    // 
    188     function setMax($arrData) { 
     197    function setMax($arrData) 
     198    { 
    189199        // データの最大値を取得する。 
    190200        $data_max = max($arrData); 
     
    202212 
    203213    // グラフの描画 
    204     function drawGraph() { 
     214    function drawGraph() 
     215    { 
    205216        // グラフ背景を描画 
    206217        $this->drawYLine(); 
     
    227238 
    228239    // ラインを描画する 
    229     function drawLine($line_no) { 
     240    function drawLine($line_no) 
     241    { 
    230242        $arrPointList = $this->arrPointList[$line_no]; 
    231243 
     
    243255 
    244256    // マークを描画する 
    245     function drawMark($line_no) { 
     257    function drawMark($line_no) 
     258    { 
    246259        $arrPointList = $this->arrPointList[$line_no]; 
    247260        $count = count($arrPointList); 
     
    254267 
    255268    // ラベルを描画する 
    256     function drawLabel($line_no) { 
     269    function drawLabel($line_no) 
     270    { 
    257271        $arrData = $this->arrDataList[$line_no]; 
    258272        $arrPointList = $this->arrPointList[$line_no]; 
     
    269283 
    270284    // データをセットする 
    271     function setData($arrData) { 
     285    function setData($arrData) 
     286    { 
    272287        $this->arrDataList[$this->line_max] = array_values((array)$arrData); 
    273288        $this->setMax($this->arrDataList[$this->line_max]); 
     
    290305 
    291306    // X軸ラベルをセットする 
    292     function setXLabel($arrXLabel) { 
     307    function setXLabel($arrXLabel) 
     308    { 
    293309        $this->arrXLabel = array_values((array)$arrXLabel); 
    294310    } 
    295311 
    296312    // X軸タイトルをセットする 
    297     function setXTitle($title) { 
     313    function setXTitle($title) 
     314    { 
    298315        $this->XTitle = $title; 
    299316    } 
    300317 
    301318    // Y軸タイトルをセットする 
    302     function setYTitle($title) { 
     319    function setYTitle($title) 
     320    { 
    303321        $this->YTitle = $title; 
    304322    } 
Note: See TracChangeset for help on using the changeset viewer.