Ignore:
Timestamp:
2007/07/20 15:58:59 (17 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
Location:
branches/feature-module-update
Files:
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update

    • Property svn:ignore set to
      .cache

      .settings

      .projectOptions
  • branches/feature-module-update/html/admin/total/class/SC_GraphBar.php

    r12157 r15078  
    88require_once($SC_GRAPHBAR_DIR . "/SC_GraphLine.php");    
    99 
    10 // ËÀ¥°¥é¥ÕÀ¸À®¥¯¥é¥¹ 
     10// 棒グラフ生成クラス 
    1111class SC_GraphBar extends SC_GraphLine{ 
    12     // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
     12    // コンストラクタ 
    1313    function SC_GraphLine( 
    1414        $bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, 
     
    1717    } 
    1818     
    19     // ¥°¥é¥Õ¤ÎÉÁ²è 
     19    // グラフの描画 
    2020    function drawGraph() { 
    2121        $this->drawYLine(); 
    2222        $this->drawXLine(true); 
    2323         
    24         // ËÀ¥°¥é¥Õ¤ÎÉÁ²è 
     24        // 棒グラフの描画 
    2525        for($i = 0; $i < $this->line_max; $i++) { 
    2626            $this->drawBar($i); 
    2727        } 
    2828         
    29         // ¥é¥Ù¥ë¤ÎÉÁ²è 
     29        // ラベルの描画 
    3030        for($i = 0; $i < $this->line_max; $i++) { 
    3131            $this->drawLabel($i); 
    3232        } 
    3333         
    34         // ËÞÎã¤ÎÉÁ²è 
     34        // 凡例の描画 
    3535        $this->drawLegend();     
    3636    } 
    3737     
    38     // ËÀ¥°¥é¥Õ¤ÎÉÁ²è 
     38    // 棒グラフの描画 
    3939    function drawBar($line_no) { 
    4040        $arrPointList = $this->arrPointList[$line_no]; 
    41         // ¥Ç¡¼¥¿¿ô¤ò¿ô¤¨¤ë 
     41        // データ数を数える 
    4242        $count = count($arrPointList); 
    43         // ȾÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë 
     43        // 半目盛りの幅を求める 
    4444        $half_scale = intval($this->area_width / ($count + 1) / 2); 
    45         // ÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë 
     45        // 目盛りの幅を求める 
    4646        $scale_width = intval($this->area_width / ($count + 1)); 
    47         // ËÀ¥°¥é¥Õ¤Î¥µ¥¤¥º¤òµá¤á¤ë 
     47        // 棒グラフのサイズを求める 
    4848        $bar_width = intval(($scale_width - (BAR_PAD * 2)) / $this->line_max); 
    49         // ¿§¿ô¤Î¼èÆÀ 
     49        // 色数の取得 
    5050        $c_max = count($this->arrColor); 
    5151        for($i = 0; $i < $count; $i++) { 
     
    5555            $bottom = $this->top + $this->area_height; 
    5656             
    57             // ±Æ¤ÎÉÁ²è 
     57            // 影の描画 
    5858            if($this->shade_on) { 
    5959                imagefilledrectangle($this->image, $left + 2, $top + 2, $right + 2, $bottom, $this->shade_color); 
     
    6565    } 
    6666     
    67     // ¥é¥Ù¥ë¤òÉÁ²è¤¹¤ë 
     67    // ラベルを描画する 
    6868    function drawLabel($line_no) { 
    6969        $arrData = $this->arrDataList[$line_no]; 
Note: See TracChangeset for help on using the changeset viewer.