Changeset 333
- Timestamp:
- 04/22/07 22:59:52 (16 years ago)
- Location:
- trunk/web/addons/job_monarch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/conf.php
r332 r333 40 40 // (250 pixels is same width as Ganglia's pie chart) 41 41 // 42 $SMALL_CLUSTERIMAGE_MAXWIDTH = 250;42 $SMALL_CLUSTERIMAGE_MAXWIDTH = 300; 43 43 44 44 // The size of a single node in the small clusterimage -
trunk/web/addons/job_monarch/libtoga.php
r332 r333 1222 1222 $fontspaceing = 2; 1223 1223 1224 if( $this->isSmall() ) 1225 { 1226 $y_offset = $y_offset + (2 * $fontspaceing) + $fontheight; 1227 } 1228 1224 1229 if( $this->isBig() ) 1225 1230 { … … 1248 1253 1249 1254 imageFill( $image, 0, 0, $colorwhite ); 1255 1256 if( $this->isSmall() ) { 1257 1258 $colorblue = imageColorAllocate( $image, 0, 0, 255 ); 1259 1260 imageString( $image, $font, 2, 2, "Monarch Joblist - cluster: ".$this->clustername, $colorblue ); 1261 } 1250 1262 1251 1263 if( $this->isBig() ) … … 1308 1320 $nodes[$cur_node]->drawBig(); 1309 1321 } 1310 if( $ n == $x_min )1322 if( $this->isBig() ) 1311 1323 { 1312 $mfontspacing = 1; 1313 $ylabel_x = $x - ( $fontwidth * strlen( $y_max ) ) - $mfontspacing; 1314 $ylabel_y = $y; 1315 1316 imageString( $image, $font, $ylabel_x, $ylabel_y, strval( $m ), $colorblue ); 1317 } 1318 if( $m == $y_min ) 1319 { 1320 $mfontspacing = 2; 1321 $xlabel_y = $y - ( $fontheight * strlen( $x_max ) ); 1322 $xlabel_x = $x + $mfontspacing; 1323 1324 imageStringDown( $image, $font, $xlabel_x, $xlabel_y, strval( $n ), $colorblue ); 1324 if( $n == $x_min ) 1325 { 1326 $mfontspacing = 1; 1327 $ylabel_x = $x - ( $fontwidth * strlen( $y_max ) ) - $mfontspacing; 1328 $ylabel_y = $y; 1329 1330 imageString( $image, $font, $ylabel_x, $ylabel_y, strval( $m ), $colorblue ); 1331 } 1332 if( $m == $y_min ) 1333 { 1334 $mfontspacing = 2; 1335 $xlabel_y = $y - ( $fontheight * strlen( $x_max ) ); 1336 $xlabel_x = $x + $mfontspacing; 1337 1338 imageStringDown( $image, $font, $xlabel_x, $xlabel_y, strval( $n ), $colorblue ); 1339 } 1325 1340 } 1326 1341 -
trunk/web/addons/job_monarch/version.php
r320 r333 22 22 */ 23 23 24 $monarchversion = "0.2 ";24 $monarchversion = "0.2+SVN"; 25 25 ?>
Note: See TracChangeset
for help on using the changeset viewer.