Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22567 r22796  
    2323 
    2424// 折れ線グラフ生成クラス 
    25 class SC_Graph_Line extends SC_Graph_Base_Ex 
    26 { 
     25class SC_Graph_Line extends SC_Graph_Base_Ex{ 
    2726    var $area_width; 
    2827    var $area_height; 
     
    5655 
    5756    // X軸ラベルの角度セット 
    58     function setXLabelAngle($Angle) 
    59     { 
     57    function setXLabelAngle($Angle) { 
    6058        $this->XLabelAngle = $Angle; 
    6159    } 
    6260 
    6361    // Y軸タイトル 
    64     function drawYTitle() 
    65     { 
     62    function drawYTitle() { 
    6663        // Y軸にタイトルを入れる 
    6764        if ($this->YTitle != '') { 
     
    7471 
    7572    // X軸タイトル 
    76     function drawXTitle() 
    77     { 
     73    function drawXTitle() { 
    7874        // Y軸にタイトルを入れる 
    7975        if ($this->XTitle != '') { 
     
    8682 
    8783    // Y軸の描画 
    88     function drawYLine() 
    89     { 
     84    function drawYLine() { 
    9085        imageline($this->image, $this->left, $this->top, $this->left, $this->top + $this->area_height, $this->flame_color); 
    9186        // 目盛り幅を求める(中間点は自動) 
     
    112107 
    113108    // X軸の描画 
    114     function drawXLine($bar = false) 
    115     { 
     109    function drawXLine($bar = false) { 
    116110        imageline($this->image, $this->left, $this->top + $this->area_height, $this->left + $this->area_width, $this->top + $this->area_height, $this->flame_color); 
    117111        $arrPointList = $this->arrPointList[0]; 
     
    156150 
    157151    // グリッド表示 
    158     function setYGridOn($ygrid_on) 
    159     { 
     152    function setYGridOn($ygrid_on) { 
    160153        $this->ygrid_on = $ygrid_on; 
    161154    } 
    162155 
    163156    // ポイントの描画 
    164     function setMark($line_no, $left, $top, $size = LINE_MARK_SIZE) 
    165     { 
     157    function setMark($line_no, $left, $top, $size = LINE_MARK_SIZE) { 
    166158        // 偶数に変換しておく 
    167159        $size += $size % 2; 
     
    178170 
    179171    // Y軸目盛りに値を入れる 
    180     function setYScale() 
    181     { 
     172    function setYScale() { 
    182173        // 1目盛りの値 
    183174        $number = intval($this->graph_max / LINE_Y_SCALE); 
     
    195186 
    196187    // 
    197     function setMax($arrData) 
    198     { 
     188    function setMax($arrData) { 
    199189        // データの最大値を取得する。 
    200190        $data_max = max($arrData); 
     
    212202 
    213203    // グラフの描画 
    214     function drawGraph() 
    215     { 
     204    function drawGraph() { 
    216205        // グラフ背景を描画 
    217206        $this->drawYLine(); 
     
    238227 
    239228    // ラインを描画する 
    240     function drawLine($line_no) 
    241     { 
     229    function drawLine($line_no) { 
    242230        $arrPointList = $this->arrPointList[$line_no]; 
    243231 
     
    255243 
    256244    // マークを描画する 
    257     function drawMark($line_no) 
    258     { 
     245    function drawMark($line_no) { 
    259246        $arrPointList = $this->arrPointList[$line_no]; 
    260247        $count = count($arrPointList); 
     
    267254 
    268255    // ラベルを描画する 
    269     function drawLabel($line_no) 
    270     { 
     256    function drawLabel($line_no) { 
    271257        $arrData = $this->arrDataList[$line_no]; 
    272258        $arrPointList = $this->arrPointList[$line_no]; 
     
    283269 
    284270    // データをセットする 
    285     function setData($arrData) 
    286     { 
     271    function setData($arrData) { 
    287272        $this->arrDataList[$this->line_max] = array_values((array)$arrData); 
    288273        $this->setMax($this->arrDataList[$this->line_max]); 
     
    305290 
    306291    // X軸ラベルをセットする 
    307     function setXLabel($arrXLabel) 
    308     { 
     292    function setXLabel($arrXLabel) { 
    309293        $this->arrXLabel = array_values((array)$arrXLabel); 
    310294    } 
    311295 
    312296    // X軸タイトルをセットする 
    313     function setXTitle($title) 
    314     { 
     297    function setXTitle($title) { 
    315298        $this->XTitle = $title; 
    316299    } 
    317300 
    318301    // Y軸タイトルをセットする 
    319     function setYTitle($title) 
    320     { 
     302    function setYTitle($title) { 
    321303        $this->YTitle = $title; 
    322304    } 
Note: See TracChangeset for help on using the changeset viewer.