Index: temp/trunk/html/test/naka/class/config.php
===================================================================
--- temp/trunk/html/test/naka/class/config.php	(revision 2868)
+++ temp/trunk/html/test/naka/class/config.php	(revision 2871)
@@ -7,5 +7,5 @@
 define("FONT_PATH", "/home/web/os-test.lockon.co.jp/data/fonts/ipag.ttf");
 define("FONT_SIZE", 8);			// ¥Õ¥©¥ó¥È¥µ¥¤¥º
-define("TITLE_FONT_SIZE", 12);	// ¥¿¥¤¥È¥ë¥Õ¥©¥ó¥È¥µ¥¤¥º
+define("TITLE_FONT_SIZE", 14);	// ¥¿¥¤¥È¥ë¥Õ¥©¥ó¥È¥µ¥¤¥º
 define("BG_WIDTH", 720);		// ÇØ·ÊÉý
 define("BG_HEIGHT", 400);		// ÇØ·Ê¹â¤µ
Index: temp/trunk/html/test/naka/class/SC_GraphBase.php
===================================================================
--- temp/trunk/html/test/naka/class/SC_GraphBase.php	(revision 1694)
+++ 	(revision )
@@ -1,209 +1,0 @@
-<?php
-
-$SC_GRAPHPIE_DIR = realpath(dirname( __FILE__));
-require_once($SC_GRAPHPIE_DIR . "/config.php");
-require_once($SC_GRAPHPIE_DIR . "/lib.php");	
-
-// SC_Graph¶¦ÄÌ¥¯¥é¥¹
-class SC_GraphBase {
-	var $arrRGB;
-	var $arrColor;
-	var $arrDarkColor;
-	var $image;
-	var $left;
-	var $top;
-	var $shade_color;
-	var $flame_color;
-	var $shade_on;
-	var $text_color;
-	var $labelbg_color;
-	var $bgw;
-	var $bgh;
-	var $clabelbg_color;
-	var $title_color;
-	var $text_top;
-	var $mark_color;
-	var $arrLegend;
-	
-	// ¥³¥ó¥¹¥È¥é¥¯¥¿
-	function SC_GraphBase($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left, $top) {
-		global $ARR_GRAPH_RGB;
-		global $ARR_BG_COLOR;
-		global $ARR_SHADE_COLOR;
-		global $ARR_FLAME_COLOR;
-		global $ARR_TEXT_COLOR;
-		global $ARR_LABELBG_COLOR;
-		global $ARR_LEGENDBG_COLOR;
-		global $ARR_TITLE_COLOR;
-		global $ARR_GRID_COLOR;
-		
-		// ²èÁüºîÀ®
-		$this->bgw = $bgw;
-		$this->bgh = $bgh;	
-		$this->image = imagecreatetruecolor($bgw, $bgh);
-		// ¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹Í­¸ú
-		imageantialias($this->image, true);
-		// ÇØ·Ê¿§¤ò¥»¥Ã¥È
-		imagefill($this->image, 0, 0, lfGetImageColor($this->image, $ARR_BG_COLOR));
-		// »ÈÍÑ¿§¤ÎÀ¸À®
-		$this->setColorList($ARR_GRAPH_RGB);
-		// ¥°¥é¥ÕÉÁ²è°ÌÃÖ¤ÎÀßÄê
-		$this->left = $left;
-		$this->top = $top;
-		$this->shade_color = lfGetImageColor($this->image, $ARR_SHADE_COLOR);
-		$this->flame_color = lfGetImageColor($this->image, $ARR_FLAME_COLOR);
-		$this->text_color = lfGetImageColor($this->image, $ARR_TEXT_COLOR);
-		$this->labelbg_color = lfGetImageColor($this->image, $ARR_LABELBG_COLOR);
-		$this->clabelbg_color = lfGetImageColor($this->image, $ARR_LEGENDBG_COLOR);
-		$this->title_color = lfGetImageColor($this->image, $ARR_TITLE_COLOR);
-		$this->grid_color = lfGetImageColor($this->image, $ARR_GRID_COLOR);
-			
-		// ±Æ¤¢¤ê
-		$this->shade_on = true;
-    }
-	
-	// ¥ª¥Ö¥¸¥§¥¯¥È¥«¥é¡¼¤ÎÀßÄê
-	function setColorList($arrRGB) {
-		$this->arrRGB = $arrRGB;
-		$count = count($this->arrRGB);
-		// ÄÌ¾ï¿§¤ÎÀßÄê
-		for($i = 0; $i < $count; $i++) {
-			$this->arrColor[$i] = lfGetImageColor($this->image, $this->arrRGB[$i]);
-		}
-		// °Å¿§¤ÎÀßÄê
-		for($i = 0; $i < $count; $i++) {
-			$this->arrDarkColor[$i] = lfGetImageDarkColor($this->image, $this->arrRGB[$i]);
-		}		
-	}
-	
-	// ±Æ¤Î¤¢¤ê¤Ê¤·
-	function setShadeOn($shade_on) {
-		$this->shade_on = $shade_on;
-	}
-	
-	// ²èÁü¤ò½ÐÎÏ¤¹¤ë
-	function outputGraph($header = true) {
-		if($header) {
-			header('Content-type: image/png');
-		}
-		imagepng($this->image);
-		imagedestroy($this->image);
-	}
-	
-	// ÉÁ²è»þ¤Î¥Æ¥­¥¹¥ÈÉý¤òµá¤á¤ë
-	function getTextWidth($text, $font_size) {
-		$text_len = strlen($text);
-		$ret = $font_size * $text_len * TEXT_RATE;	
-		/*
-			¢¨Àµ³Î¤ÊÃÍ¤¬¼èÆÀ¤Ç¤­¤Ê¤«¤Ã¤¿¤Î¤ÇÇÑ»ß
-			// ¥Æ¥­¥¹¥ÈÉý¤Î¼èÆÀ
-			$arrPos = imagettfbbox($font_size, 0, FONT_PATH, $text);
-			$ret = $arrPos[2] - $arrPos[0];
-		*/
-		return $ret;
-	}
-	
-	// ¥Æ¥­¥¹¥È¤ò½ÐÎÏ¤¹¤ë
-	function setText($font_size, $left, $top, $text, $color = NULL, $angle = 0, $labelbg = false) {
-		// »þ·×²ó¤ê¤Ë³ÑÅÙ¤òÊÑ¹¹
-		$angle = -$angle;		
-		// ¥é¥Ù¥ëÇØ·Ê
-		if($labelbg) {
-			$text_width = $this->getTextWidth($text, $font_size);
-			imagefilledrectangle($this->image, $left - 2, $top - 2, $left + $text_width + 2, $top + $font_size + 2, $this->labelbg_color);
-		}
-		$text = mb_convert_encoding($text, "UTF-8", "EUC-JP");
-		if($color != NULL) {
-			ImageTTFText($this->image, $font_size, $angle, $left, $top + $font_size, $color, FONT_PATH, $text);
-		} else {
-			ImageTTFText($this->image, $font_size, $angle, $left, $top + $font_size, $this->text_color, FONT_PATH, $text);			
-		}
-	}
-	
-	// ¥¿¥¤¥È¥ë¤ò½ÐÎÏ¤¹¤ë
-	function drawTitle($text, $font_size = TITLE_FONT_SIZE) {
-		// ½ÐÎÏ°ÌÃÖ¤Î»»½Ð
-		$text_width = $this->getTextWidth($text, $font_size);
-		$left = ($this->bgw - $text_width) / 2;
-		$top = TITLE_TOP;
-		$this->setText($font_size, $left, $top, $text, $this->title_color);		
-	}
-	
-	// ¥í¥°¤ò½ÐÎÏ¤¹¤ë
-	function debugPrint($text) {
-		$text = mb_convert_encoding($text, "UTF-8", "EUC-JP");
-		if(!isset($this->text_top)) {
-			$this->text_top = FONT_SIZE + LINE_PAD;
-		}		
-		// ¥Æ¥­¥¹¥ÈÉÁ²è
-		ImageTTFText($this->image, FONT_SIZE, 0, LINE_PAD, $this->text_top, $this->text_color, FONT_PATH, $text);
-		$this->text_top += FONT_SIZE + LINE_PAD;
-	}
-		
-	// ¥«¥é¡¼¥é¥Ù¥ë¤òÉÁ²è
-	function drawLegend($legend_max = "", $clabelbg = true) {
-		// ËÞÎã¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤ÐÃæ»ß
-		if(count($this->arrLegend) <= 0) {
-			return;
-		}		
-		
-		if($legend_max != "") {
-			$label_max = $legend_max;
-		} else {
-			$label_max = count($this->arrLegend);
-		}
-
-		$height_max = 0;
-		$text_max = 0;
-		$width_max = 0;
-		
-		// °ìÈÖÊ¸»ú¿ô¤¬Â¿¤¤¤â¤Î¤ò¼èÆÀ
-		for($i = 0; $i < $label_max; $i++) {
-			$text_len = strlen($this->arrLegend[$i]);
-			if($text_max < $text_len) {
-				$text_max = $text_len;
-			}
-			$height_max += FONT_SIZE + LINE_PAD;
-		}
-		$width_max = FONT_SIZE * $text_max * TEXT_RATE;		
-
-		// 	¥«¥é¡¼¥¢¥¤¥³¥ó¤ÈÊ¸»ú´Ö¤ò´Þ¤á¤¿Éý
-		$width_max += FONT_SIZE + (LINE_PAD * 2);	
-		$left = $this->bgw - $width_max - LEGEND_RIGHT;
-		$top = LEGEND_TOP;
-		// ¥«¥é¡¼¥é¥Ù¥ëÇØ·Ê¤ÎÉÁ²è
-		if($clabelbg) {
-			$this->drawClabelBG($left - LINE_PAD, $top, $left + $width_max, $top + $height_max + LINE_PAD);
-		}
-		$top += LINE_PAD;
-				
-		// ¿§¿ô¤Î¼èÆÀ
-		$c_max = count($this->arrColor);
-		for($i = 0; $i < $label_max; $i++) {			
-			// ¥«¥é¡¼¥¢¥¤¥³¥ó¤ÎÉ½¼¨
-			imagerectangle($this->image, $left, $top, $left + FONT_SIZE, $top + FONT_SIZE, $this->flame_color);
-			imagefilledrectangle($this->image, $left + 1, $top + 1, $left + FONT_SIZE - 1, $top + FONT_SIZE - 1, $this->arrColor[($i % $c_max)]);
-			// ¥é¥Ù¥ë¤ÎÉ½¼¨
-			$this->setText(FONT_SIZE, $left + FONT_SIZE + LINE_PAD, $top, $this->arrLegend[$i]);
-			$top += FONT_SIZE + LINE_PAD;
-		}
-	}
-	
-	// ¥«¥é¡¼¥é¥Ù¥ëÇØ·Ê¤ÎÉÁ²è
-	function drawClabelBG($left, $top, $right, $bottom) {
-		// ±Æ¤ÎÉÁ²è
-		if($this->shade_on) {
-			imagefilledrectangle($this->image, $left + 2, $top + 2, $right + 2, $bottom + 2, $this->shade_color);
-		}
-		// ¥«¥é¡¼¥é¥Ù¥ëÇØ·Ê¤ÎÉÁ²è
-		imagefilledrectangle($this->image, $left, $top, $right, $bottom, $this->clabelbg_color);
-		imagerectangle($this->image, $left, $top, $right, $bottom, $this->flame_color);
-	}
-	
-	// ËÞÎã¤ò¥»¥Ã¥È¤¹¤ë
-	function setLegend($arrLegend) {
-		$this->arrLegend = array_values((array)$arrLegend);
-	}
-}
-
-?>
Index: temp/trunk/html/test/naka/class/SC_GraphPie.php
===================================================================
--- temp/trunk/html/test/naka/class/SC_GraphPie.php	(revision 1694)
+++ 	(revision )
@@ -1,192 +1,0 @@
-<?php
-
-$SC_GRAPHPIE_DIR = realpath(dirname( __FILE__));
-require_once($SC_GRAPHPIE_DIR . "/SC_GraphBase.php");	
-
-// ±ß¥°¥é¥ÕÀ¸À®¥¯¥é¥¹
-class SC_GraphPie extends SC_GraphBase{
-	var $cw;
-	var $ch;
-	var $cz;
-	var $cx;
-	var $cy;
-	var $arrLabel;
-	var $arrData;
-	
-    // ¥³¥ó¥¹¥È¥é¥¯¥¿
-	function SC_GraphPie($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = PIE_LEFT, $top = PIE_TOP) {
-		parent::SC_GraphBase($bgw, $bgh, $left, $top);
-		// ¥µ¥¤¥ºÀßÄê
-		$this->setSize(PIE_WIDTH, PIE_HEIGHT, PIE_THICK);
-		// °ÌÃÖÀßÄê
-		$this->setPosition($this->left + ($this->cw / 2), $this->top + ($this->ch / 2));
-    }
-	
-	// ¥Ç¡¼¥¿¤ò360¡ëÃÍ¤ËÊÑ´¹¤¹¤ë
-	function getCircleData($array) {
-		if(!is_array($array)) {
-			return;
-		}
-		$arrRet = array();
-		foreach($array as $val) {
-			$total += $val;			
-		}
-		if($total <= 0) {
-			return;
-		}		
-		$rate = 360 / $total;
-		// ¥é¥Ù¥ëÉ½¼¨ÍÑ
-		$p_rate = 100 / $total;
-		$cnt = 0;
-		foreach($array as $val) {
-			$ret = round($val * $rate);
-			$new_total+= $ret;
-			$arrRet[] = $ret;
-			// ¥Ñ¡¼¥»¥ó¥ÈÉ½¼¨ÍÑ
-			$this->arrLabel[] = round($val * $p_rate) . " %";
-			$cnt++;
-		}
-		// ¹ç·×¤¬360¤Ë¤Ê¤ë¤è¤¦¤ËÊäÀµ¤·¤Æ¤ª¤¯
-		$arrRet[0] -= $new_total - 360;
-		return $arrRet;
-	}	
-		
-	// ±ß¤Î°ÌÃÖÀßÄê¤ò¹Ô¤¦
-	function setPosition($cx, $cy) {
-		$this->cx = $cx;
-		$this->cy = $cy;
-	}
-		
-	// ±ß¤Î¥µ¥¤¥ºÀßÄê¤ò¹Ô¤¦
-	function setSize($cw, $ch, $cz = 0) {
-		$this->cw = $cw;
-		$this->ch = $ch;
-		$this->cz = $cz;
-	}
-	
-	// ±Æ¤ÎÉÁ²è
-	function drawShade() {
-		$move = 1;
-		for($i = ($this->cy + $this->cz); $i <= ($this->cy + $this->cz + ($this->cz * PIE_SHADE_IMPACT)); $i++) {
-			imagefilledarc($this->image, $this->cx + $move, $i, $this->cw, $this->ch, 0, 360, $this->shade_color, IMG_ARC_PIE);
-			$move += 0.5;
-		}
-	}
-	
-	// ¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
-	function setData($arrData) {
-		$this->arrData = array_values($arrData);
-	}
-	
-	// ±ß¥°¥é¥Õ¤òÉÁ²è¤¹¤ë
-	function drawGraph() {
-		$x = $this->cx;
-		$y = $this->cy;
-		$z = $this->cz;
-		$h = $this->ch;
-		$w = $this->cw;
-		
-		$arrRad = $this->getCircleData($this->arrData);
-		$rd_max = count($arrRad);
-		
-		// ¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç
-		if($rd_max <= 0) {
-			return;
-		}
-		
-		// ±Æ¤ÎÉÁ²è
-		if($this->shade_on) {
-			$this->drawShade();
-		}
-			
-		// ¿§¿ô¤Î¼èÆÀ
-		$c_max = count($this->arrColor);
-		$dc_max = count($this->arrDarkColor);
-		
-		// Â¦ÌÌ¤ÎÉÁ²è		
-		for ($i = ($y + $z - 1); $i >= $y; $i--) {
-			$start = 0;
-			for($j = 0; $j < $rd_max; $j++) {
-				$end = $start + $arrRad[$j];
-				if($start == 0 && $end == 360) {
-					// -90¢·270¤Ç»ØÄê¤¹¤ë¤È±ß¤¬ÉÁ²è¤Ç¤­¤Ê¤¤¤Î¤Ç0¢·360¤Ë»ØÄê
-					imagearc($this->image, $x, $i, $w, $h, 0, 360, $this->arrDarkColor[($j % $dc_max)]);
-				} else {
-					// -90¡ë¤Ï12»þ¤Î°ÌÃÖ¤«¤é³«»Ï¤¹¤ë¤è¤¦¤ËÊäÀµ¤·¤Æ¤¤¤ë
-					imagearc($this->image, $x, $i, $w, $h, $start - 90, $end - 90, $this->arrDarkColor[($j % $dc_max)]);	
-				}			
-				$start = $end;
-			}
-		}
-		// ÄìÌÌ¤ÎÉÁ²è
-		imagearc($this->image, $x, $y + $z, $w, $h, 0, 180 , $this->flame_color);
-
-		// ¾åÌÌ¤ÎÉÁ²è
-		$start = 0;
-		for($i = 0; $i < $rd_max; $i++) {
-			$end = $start + $arrRad[$i];
-			if($start == 0 && $end == 360) {
-				// -90¢·270¤Ç»ØÄê¤¹¤ë¤È±ß¤¬ÉÁ²è¤Ç¤­¤Ê¤¤¤Î¤Ç0¢·360¤Ë»ØÄê
-				imagefilledarc($this->image, $x, $y, $w, $h, 0, 360, $this->arrColor[($i % $c_max)], IMG_ARC_PIE);			
-			} else {
-				// -90¡ë¤Ï12»þ¤Î°ÌÃÖ¤«¤é³«»Ï¤¹¤ë¤è¤¦¤ËÊäÀµ¤·¤Æ¤¤¤ë¡£		
-				imagefilledarc($this->image, $x, $y, $w, $h, $start - 90, $end - 90, $this->arrColor[($i % $c_max)], IMG_ARC_PIE);
-			}
-			$start = $end;
-		}
-
-		// ¾åÌÌ¤Î±ï¼è¤ê
-		$start = 0;
-		for($i = 0; $i < $rd_max; $i++) {
-			$end = $start + $arrRad[$i];
-			if($start == 0 && $end == 360) {
-				// -90¢·270¤Ç»ØÄê¤¹¤ë¤È±ß¤¬ÉÁ²è¤Ç¤­¤Ê¤¤¤Î¤Ç0¢·360¤Ë»ØÄê
-				imagearc($this->image, $x, $y, $w, $h, 0, 360 , $this->flame_color);
-			}
-			// -90¡ë¤Ï12»þ¤Î°ÌÃÖ¤«¤é³«»Ï¤¹¤ë¤è¤¦¤ËÊäÀµ¤·¤Æ¤¤¤ë¡£
-			imagefilledarc($this->image, $x, $y, $w, $h, $start - 90, $end - 90, $this->flame_color, IMG_ARC_EDGED|IMG_ARC_NOFILL);
-			$start = $end;
-		}
-
-		// Â¦ÌÌ¤Î±ï¼è¤ê
-		imageline($this->image, $x + ($w / 2), $y, $x + ($w / 2), $y + $z, $this->flame_color);
-		imageline($this->image, $x - ($w / 2), $y, $x - ($w / 2), $y + $z, $this->flame_color);
-		$start = 0;
-		for($i = 0; $i < $rd_max; $i++) {
-			$end = $start + $arrRad[$i];
-			// Á°ÌÌ¤Î¤ß
-			if($end > 90 && $end < 270) {
-				list($ax, $ay) = lfGetArcPos($x, $y, $w, $h, $end);
-				// ¥é¥¤¥ó¤Î¤º¤ì¤òÊäÀµ¤¹¤ë
-				if($end > 180) {
-					$ax = $ax + 1;
-				}
-				imageline($this->image, $ax, $ay, $ax, $ay + $z, $this->flame_color);
-			}
-			$start = $end;	
-		}
-				
-		// ¥é¥Ù¥ë¤ÎÉÁ²è
-		$this->drawLabel($arrRad);
-		// ËÞÎã¤ÎÉÁ²è
-		$this->drawLegend(count($this->arrData));			
-	}
-	
-	// ±ß¥°¥é¥Õ¤Î¥é¥Ù¥ë¤òÉÁ²è¤¹¤ë
-	function drawLabel($arrRad) {
-		$rd_max = count($arrRad);
-		$start = 0;
-		for($i = 0; $i < $rd_max; $i++) {
-			$center = $start + ($arrRad[$i] / 2);
-			$end = $start + $arrRad[$i];
-			list($sx, $sy) = lfGetArcPos($this->cx, $this->cy, ($this->cw / 1.5), ($this->ch / 1.5), $center);
-			list($ex, $ey) = lfGetArcPos($this->cx, $this->cy, ($this->cw * 1.5), ($this->ch * 1.5), $center);
-			// »Ø¼¨Àþ¤ÎÉÁ²è
-			imageline($this->image, $sx, $sy, $ex + 2, $ey - PIE_LABEL_UP, $this->flame_color);
-			$this->setText(FONT_SIZE, $ex - 10, $ey - PIE_LABEL_UP - FONT_SIZE, $this->arrLabel[$i], NULL, 0, true);
-			$start = $end;
-		}
-	}	
-}
-
-?>
Index: temp/trunk/html/test/naka/class/lib.php
===================================================================
--- temp/trunk/html/test/naka/class/lib.php	(revision 1694)
+++ 	(revision )
@@ -1,57 +1,0 @@
-<?php
-
-// ±ß¤ÎÃæ¿´ÅÀ¤ÈÄ¾·Â¤«¤é¸Ì¤Î½ªÃ¼ºÂÉ¸¤ò»»½Ð¤¹¤ë¡£
-/*
-	$cx	: Ãæ¿´ÅÀXºÂÉ¸
-	$cy	: Ãæ¿´ÅÀYºÂÉ¸
-	$r	: È¾·Â
-	$e	: ³ÑÅÙ
-*/
-function lfGetArcPos($cx, $cy, $cw, $ch, $e) {
-	// »°³Ñ´Ø¿ôÍÑ¤Î³ÑÅÙ¤òµá¤á¤ë
-	$s = 90 - $e;
-	$r = $cw / 2;
-	// °ÌÃÖ¤òµá¤á¤ë
-	$x = $cx + ($r * cos(deg2rad($s)));
-	$y = $cy - (($r * sin(deg2rad($s))) * ($ch / $cw));		
-	return array(round($x), round($y));
-}
-
-
-
-/* ²èÁü¤Ë¥Æ¥­¥¹¥È¤òÉÁ²è¤¹¤ë */
-function lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB) {
-	$color = ImageColorAllocate($dst_image, $arrRGB[0], $arrRGB[1], $arrRGB[2]);
-	$text = mb_convert_encoding($text, "UTF-8", "EUC-JP");
-	// É½¼¨³ÑÅÙ	
-	$angle = 0;
-	// ¥Æ¥­¥¹¥ÈÉÁ²è
-	ImageTTFText($dst_image, $font_size, $angle, $left, $top, $color, $font, $text);
-}
-
-// É½¼¨¿§¤Î¼èÆÀ
-function lfGetImageColor($image, $array) {
-	if(count($array) != 3) {
-		return NULL;
-	}
-	$ret = imagecolorallocate($image, $array[0], $array[1], $array[2]);
-	return $ret;
-}
-
-// ±ÆÍÑÉ½¼¨¿§¤Î¼èÆÀ
-function lfGetImageDarkColor($image, $array) {
-	if(count($array) != 3) {
-		return NULL;
-	}
-	$i = 0;
-	foreach($array as $val) {
-		$dark[$i] = $val - 45;
-		if($dark[$i] < 0) {
-			$dark[$i] = 0;
-		}
-		$i++;
-	}
-	$ret = imagecolorallocate($image, $dark[0], $dark[1], $dark[2]);
-	return $ret;
-}
-?>
Index: temp/trunk/html/test/naka/class/SC_GraphBar.php
===================================================================
--- temp/trunk/html/test/naka/class/SC_GraphBar.php	(revision 1694)
+++ 	(revision )
@@ -1,78 +1,0 @@
-<?
-$SC_GRAPHBAR_DIR = realpath(dirname( __FILE__));
-require_once($SC_GRAPHBAR_DIR . "/SC_GraphLine.php");	
-
-// ÀÞ¤ìÀþ¥°¥é¥ÕÀ¸À®¥¯¥é¥¹
-class SC_GraphBar extends SC_GraphLine{
-    // ¥³¥ó¥¹¥È¥é¥¯¥¿
-	function SC_GraphLine(
-		$bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP,
-		$area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT) {
-		parent::SC_GraphLine($bgw, $bgh, $left, $top, $area_width, $area_height);	
-	}
-	
-	// ¥°¥é¥Õ¤ÎÉÁ²è
-	function drawGraph() {
-		$this->drawYLine();
-		$this->drawXLine(true);
-		
-		// ËÀ¥°¥é¥Õ¤ÎÉÁ²è
-		for($i = 0; $i < $this->line_max; $i++) {
-			$this->drawBar($i);
-		}
-		
-		// ¥é¥Ù¥ë¤ÎÉÁ²è
-		for($i = 0; $i < $this->line_max; $i++) {
-			$this->drawLabel($i);
-		}
-		
-		// ËÞÎã¤ÎÉÁ²è
-		$this->drawLegend();	
-	}
-	
-	// ËÀ¥°¥é¥Õ¤ÎÉÁ²è
-	function drawBar($line_no) {
-		$arrPointList = $this->arrPointList[$line_no];
-		// ¥Ç¡¼¥¿¿ô¤ò¿ô¤¨¤ë
-		$count = count($arrPointList);
-		// È¾ÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë
-		$half_scale = intval($this->area_width / ($count + 1) / 2);
-		// ÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë
-		$scale_width = intval($this->area_width / ($count + 1));
-		// ËÀ¥°¥é¥Õ¤Î¥µ¥¤¥º¤òµá¤á¤ë
-		$bar_width = intval(($scale_width - (BAR_PAD * 2)) / $this->line_max);
-		// ¿§¿ô¤Î¼èÆÀ
-		$c_max = count($this->arrColor);
-		for($i = 0; $i < $count; $i++) {
-			$left = $arrPointList[$i][0] - $half_scale + BAR_PAD + ($bar_width * $line_no);
-			$top = $arrPointList[$i][1];
-			$right = $left + $bar_width;
-			$bottom = $this->top + $this->area_height;
-			
-			// ±Æ¤ÎÉÁ²è
-			if($this->shade_on) {
-				imagefilledrectangle($this->image, $left + 2, $top + 2, $right + 2, $bottom, $this->shade_color);
-			}
-			//imagefilledrectangle($this->image, $left, $top, $right, $bottom, $this->arrColor[($i % $c_max)]);
-			imagefilledrectangle($this->image, $left, $top, $right, $bottom, $this->arrColor[$line_no]);			
-			imagerectangle($this->image, $left, $top, $right, $bottom, $this->flame_color);					
-		}
-	}
-	
-	// ¥é¥Ù¥ë¤òÉÁ²è¤¹¤ë
-	function drawLabel($line_no) {
-		$arrData = $this->arrDataList[$line_no];
-		$arrPointList = $this->arrPointList[$line_no];
-		$count = count($arrPointList);
-		for($i = 0; $i < $count; $i++) {
-			$x = $arrPointList[$i][0];
-			$y = $arrPointList[$i][1];
-			$text_width = $this->getTextWidth(number_format($arrData[$i]), FONT_SIZE);
-			$y_pos = $y - FONT_SIZE - 5;
-			$x_pos = $x - $text_width / 2;
-			$this->setText(FONT_SIZE, $x_pos, $y_pos, number_format($arrData[$i]));
-		}
-	}
-	
-}
-?>
Index: temp/trunk/html/test/naka/class/SC_GraphLine.php
===================================================================
--- temp/trunk/html/test/naka/class/SC_GraphLine.php	(revision 1694)
+++ 	(revision )
@@ -1,268 +1,0 @@
-<?
-$SC_GRAPHLINE_DIR = realpath(dirname( __FILE__));
-require_once($SC_GRAPHLINE_DIR . "/SC_GraphBase.php");	
-
-// ÀÞ¤ìÀþ¥°¥é¥ÕÀ¸À®¥¯¥é¥¹
-class SC_GraphLine extends SC_GraphBase{
-	var $area_width;
-	var $area_height;
-	var $ygrid_on;
-	var $graph_max;		// ¥°¥é¥Õ¤Î¥¨¥ê¥¢ºÇÂçÃÍ(Y¼´ÄºÅÀ¤ÎÃÍ)
-	var $arrXLabel;		
-	var $XTitle;		// X¼´¥¿¥¤¥È¥ë
-	var $YTitle;		// Y¼´¥¿¥¤¥È¥ë
-	var $arrDataList;	// ¥°¥é¥Õ¥Ç¡¼¥¿¤ò³ÊÇ¼
-	var $arrPointList;	// ÀÞ¤ìÀþºÂÉ¸¤ò³ÊÇ¼
-	var $line_max;		// Ê£¿ô¤ÎÉÁ²è¤Î¾ì¹ç¤Ë²Ã»»¤·¤Æ¤¤¤¯
-			
-    // ¥³¥ó¥¹¥È¥é¥¯¥¿
-	function SC_GraphLine(
-		$bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP,
-		$area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT) {
-		parent::SC_GraphBase($bgw, $bgh, $left, $top);	
-		$this->area_width = $area_width;
-		$this->area_height = $area_height;
-		$this->ygrid_on = true;
-		$this->line_max = 0;
-		$this->graph_max = 0;
-	}
-	
-	// Y¼´¥¿¥¤¥È¥ë
-	function drawYTitle() {
-		// Y¼´¤Ë¥¿¥¤¥È¥ë¤òÆþ¤ì¤ë
-		if($this->YTitle != "") {
-			$text_width = $this->getTextWidth($this->YTitle, FONT_SIZE);
-			$x_pos = $this->left - ($text_width / 2);
-			$y_pos = $this->top - FONT_SIZE - LINE_YTITLE_PAD;		
-			$this->setText(FONT_SIZE, $x_pos, $y_pos, $this->YTitle);
-		}
-	}
-	
-	// X¼´¥¿¥¤¥È¥ë
-	function drawXTitle() {
-		// Y¼´¤Ë¥¿¥¤¥È¥ë¤òÆþ¤ì¤ë
-		if($this->XTitle != "") {
-			$text_width = $this->getTextWidth($this->XTitle, FONT_SIZE);
-			$x_pos = $this->left + $this->area_width - ($text_width / 2);
-			$y_pos = $this->top + $this->area_height + LINE_XTITLE_PAD;
-			$this->setText(FONT_SIZE, $x_pos, $y_pos, $this->XTitle);
-		}
-	}
-	
-	// Y¼´¤ÎÉÁ²è
-	function drawYLine() {
-		imageline($this->image, $this->left, $this->top, $this->left, $this->top + $this->area_height, $this->flame_color);
-		// ÌÜÀ¹¤êÉý¤òµá¤á¤ë(Ãæ´ÖÅÀ¤Ï¼«Æ°)
-		$size = $this->area_height / (LINE_Y_SCALE * 2);
-		// ¾å¤«¤éÌÜÀ¹¤ê¤òÆþ¤ì¤Æ¤¤¤¯
-		$pos = 0;
-		for($i = 0; $i < (LINE_Y_SCALE * 2); $i++) {
-			// ÌÜÀ¹¤êÉý
-			if(($i % 2) == 0) {
-				$sw = LINE_SCALE_SIZE;
-				if($this->ygrid_on) {
-					imageline($this->image, $this->left, $this->top + $pos, $this->left + $this->area_width, $this->top + $pos, $this->grid_color);
-				}
-			} else {
-				$sw = LINE_SCALE_SIZE / 2;
-			}
-			imageline($this->image, $this->left, $this->top + $pos, $this->left + $sw, $this->top + $pos, $this->flame_color);
-			$pos += $size;
-		}
-		// Y¼´¤ËÌÜÀ¹¤êÃÍ¤òÆþ¤ì¤ë
-		$this->setYScale();
-		$this->drawYTitle();	
-	}
-	
-	// X¼´¤ÎÉÁ²è
-	function drawXLine($bar = false) {
-		imageline($this->image, $this->left, $this->top + $this->area_height, $this->left + $this->area_width, $this->top + $this->area_height, $this->flame_color);
-		$arrPointList = $this->arrPointList[0];
-		$count = count($arrPointList);
-		
-		// ËÀ¥°¥é¥Õ¤Î¾ì¹ç¤ÏÈ¾ÌÜÀ¹¤ê¤º¤é¤¹
-		if($bar) {
-			$half_scale = intval($this->area_width / ($count + 1) / 2);
-		} else {
-			$half_scale = 0;
-		}
-		
-		// ¥é¥Ù¥ë¤ÎÉ½¼¨¥¤¥ó¥¿¡¼¥Ð¥ë¤ò»»½Ð
-		$interval = ceil($count / LINE_XLABEL_MAX);	// ÀÚ¤ê¾å¤²				
-		for($i = 0; $i < $count; $i++) {
-			// X¼´¤ËÌÜÀ¹¤ê¤òÆþ¤ì¤ë
-			$x = $arrPointList[$i][0];
-			$pos = $this->top + $this->area_height;
-			imageline($this->image, $x - $half_scale, $pos, $x - $half_scale, $pos - LINE_SCALE_SIZE,  $this->flame_color);			
-			// ¥é¥Ù¥ë¤òÆþ¤ì¤ë
-			if(($i % $interval) == 0) {
-				$text_width = $this->getTextWidth($this->arrXLabel[$i], FONT_SIZE);
-				$x_pos = $x - ($text_width / 2);
-				$this->setText(FONT_SIZE, $x_pos, $pos + FONT_SIZE, $this->arrXLabel[$i]);
-			}
-		}
-		
-		// ËÀ¥°¥é¥Õ¤Î¾ì¹ç¤ÏºÇ¸å¤ÎÌÜÀ¹¤ê¤ò°ì¤ÄÄÉ²Ã¤¹¤ë
-		if($bar) {
-			imageline($this->image, $x + $half_scale, $pos, $x + $half_scale, $pos - LINE_SCALE_SIZE,  $this->flame_color);	
-		}
-		
-		$this->drawXTitle();
-	}
-		
-	// ¥°¥ê¥Ã¥ÉÉ½¼¨
-	function setYGridOn($ygrid_on) {
-		$this->ygrid_on = $ygrid_on;
-	}
-	
-	// ¥Ý¥¤¥ó¥È¤ÎÉÁ²è
-	function setMark($line_no, $left, $top, $size = LINE_MARK_SIZE) {
-		// ¶ö¿ô¤ËÊÑ´¹¤·¤Æ¤ª¤¯
-		$size += $size % 2;
-		$array = array(
-			$left, $top - ($size / 2),
-			$left + ($size / 2), $top,
-			$left, $top + ($size / 2),
-			$left - ($size / 2), $top,
-		);		
-		imagefilledpolygon($this->image, $array, 4, $this->arrColor[$line_no]);
-		imagepolygon($this->image, $array, 4, $this->flame_color);
- 		imagesetpixel ($this->image, $left, $top + ($size / 2), $this->flame_color);
-	}	
-	
-	// Y¼´ÌÜÀ¹¤ê¤ËÃÍ¤òÆþ¤ì¤ë
-	function setYScale() {
-		// 1ÌÜÀ¹¤ê¤ÎÃÍ
-		$number = intval($this->graph_max / LINE_Y_SCALE);				
-		// ÌÜÀ¹¤êÉý¤òµá¤á¤ë
-		$size = $this->area_height / LINE_Y_SCALE;
-		$pos = 0;
-		for($i = 0; $i <= LINE_Y_SCALE; $i++) {
-			$snumber = $number * (LINE_Y_SCALE - $i);
-			$disp_number = number_format($snumber);
-			$num_width = $this->getTextWidth($disp_number, FONT_SIZE);
-			$this->setText(FONT_SIZE, $this->left - $num_width - 2, $this->top + $pos - (FONT_SIZE / 2), $disp_number);
-			$pos += $size;
-		}
-	}
-	
-	// 
-	function setMax($arrData) {
-		// ¥Ç¡¼¥¿¤ÎºÇÂçÃÍ¤ò¼èÆÀ¤¹¤ë¡£
-		$data_max = max($arrData);
-		// 10¤Î²¿ÇÜ¤«¤ò¼èÆÀ
-		$figure = strlen($data_max) - 1;
-		// ¼¡¤Î·å¤ò·×»»¤¹¤ë
-		$tenval = pow(10, $figure);
-		// ¥°¥é¥Õ¾å¤Ç¤ÎºÇÂçÃÍ¤òµá¤á¤ë
-		$this->graph_max = $tenval * (intval($data_max / $tenval) + 1);
-		// ºÇÂçÃÍ¤¬10Ì¤Ëþ¤Î¾ì¹ç¤ÎÂÐ±þ
-		if($this->graph_max < 10) {
-			$this->graph_max = 10;
-		}	
-	}
-	
-	// ¥°¥é¥Õ¤ÎÉÁ²è
-	function drawGraph() {
-		// ¥°¥é¥ÕÇØ·Ê¤òÉÁ²è
-		$this->drawYLine();
-		$this->drawXLine();
-		
-		// ÀÞ¤ìÀþ¥°¥é¥ÕÉÁ²è
-		for($i = 0; $i < $this->line_max; $i++) {
-			$this->drawLine($i);
-		}
-		
-		// ¥Þ¡¼¥¯¤òÉÁ²è
-		for($i = 0; $i < $this->line_max; $i++) {
-			$this->drawMark($i);
-		}
-		
-		// ¥é¥Ù¥ë¤òÉÁ²è
-		for($i = 0; $i < $this->line_max; $i++) {
-			$this->drawLabel($i);		
-		}
-
-		// ËÞÎã¤ÎÉÁ²è
-		$this->drawLegend();	
-	}
-	
-	// ¥é¥¤¥ó¤òÉÁ²è¤¹¤ë
-	function drawLine($line_no) {
-		$arrPointList = $this->arrPointList[$line_no];
-		
-		$count = count($arrPointList);
-		for($i = 0; $i < $count; $i++) {
-			$x = $arrPointList[$i][0];
-			$y = $arrPointList[$i][1];
-			if(isset($arrPointList[$i + 1])) {
-				$next_x = $arrPointList[$i + 1][0];
-				$next_y = $arrPointList[$i + 1][1];
-				imageline($this->image, $x, $y, $next_x, $next_y, $this->arrColor[$line_no]);
-			}
-		}
-	}
-	
-	// ¥Þ¡¼¥¯¤òÉÁ²è¤¹¤ë
-	function drawMark($line_no) {
-		$arrPointList = $this->arrPointList[$line_no];
-		$count = count($arrPointList);
-		for($i = 0; $i < $count; $i++) {
-			$x = $arrPointList[$i][0];
-			$y = $arrPointList[$i][1];			
-			$this->setMark($line_no, $x, $y);
-		}
-	}
-	
-	// ¥é¥Ù¥ë¤òÉÁ²è¤¹¤ë
-	function drawLabel($line_no) {
-		$arrData = $this->arrDataList[$line_no];
-		$arrPointList = $this->arrPointList[$line_no];
-		$count = count($arrPointList);
-		for($i = 0; $i < $count; $i++) {
-			$x = $arrPointList[$i][0];
-			$y = $arrPointList[$i][1];
-			$text_width = $this->getTextWidth(number_format($arrData[$i]), FONT_SIZE);
-			$y_pos = $y - FONT_SIZE - 5;
-			$x_pos = $x - $text_width / 2;
-			$this->setText(FONT_SIZE, $x_pos, $y_pos, number_format($arrData[$i]));
-		}
-	}
-	
-	// ¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
-	function setData($arrData) {
-		$this->arrDataList[$this->line_max] = array_values((array)$arrData);
-		$this->setMax($this->arrDataList[$this->line_max]);
-		// ÃÍ¤ÎÉÁ²èÊÑ´¹Î¨
-		$rate = $this->area_height / $this->graph_max;
-		// ÉÁ²èÎ¨¤ò·×»»
-		$count = count($this->arrDataList[$this->line_max]);
-		$scale_width = $this->area_width / ($count + 1);		
-		$this->arrPointList[$this->line_max] = array();
-		for($i = 0; $i < $count; $i++) {
-			// XºÂÉ¸¤òµá¤á¤ë
-			$x = intval($this->left + ($scale_width * ($i + 1)));
-			// YºÂÉ¸¤òµá¤á¤ë
-			$y = intval($this->top + $this->area_height - ($this->arrDataList[$this->line_max][$i] * $rate));
-			// XYºÂÉ¸¤òÊÝÂ¸¤¹¤ë
-			$this->arrPointList[$this->line_max][] = array($x, $y);
-		}
-		$this->line_max++;
-	}
-	
-	// X¼´¥é¥Ù¥ë¤ò¥»¥Ã¥È¤¹¤ë
-	function setXLabel($arrXLabel) {
-		$this->arrXLabel = array_values((array)$arrXLabel);
-	}
-	
-	// X¼´¥¿¥¤¥È¥ë¤ò¥»¥Ã¥È¤¹¤ë
-	function setXTitle($title) {
-		$this->XTitle = $title;
-	}
-	
-	// Y¼´¥¿¥¤¥È¥ë¤ò¥»¥Ã¥È¤¹¤ë
-	function setYTitle($title) {
-		$this->YTitle = $title;
-	}	
-}
-?>
