Changeset 333


Ignore:
Timestamp:
04/22/07 22:59:52 (17 years ago)
Author:
bastiaans
Message:

job_monarch/libtoga.php:

  • fixed small cluster image to properly align and display text

job_monarch/conf.php:

  • changed maxwidth for small cluster image

job_monarch/version.php:

  • set version to SVN
Location:
trunk/web/addons/job_monarch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/conf.php

    r332 r333  
    4040// (250 pixels is same width as Ganglia's pie chart)
    4141//
    42 $SMALL_CLUSTERIMAGE_MAXWIDTH = 250;
     42$SMALL_CLUSTERIMAGE_MAXWIDTH = 300;
    4343
    4444// The size of a single node in the small clusterimage
  • trunk/web/addons/job_monarch/libtoga.php

    r332 r333  
    12221222                        $fontspaceing   = 2;
    12231223
     1224                        if( $this->isSmall() )
     1225                        {
     1226                                $y_offset       = $y_offset + (2 * $fontspaceing) + $fontheight;
     1227                        }
     1228
    12241229                        if( $this->isBig() )
    12251230                        {
     
    12481253
    12491254                        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                        }
    12501262
    12511263                        if( $this->isBig() )
     
    13081320                                                        $nodes[$cur_node]->drawBig();
    13091321                                        }
    1310                                         if( $n == $x_min )
     1322                                        if( $this->isBig() )
    13111323                                        {
    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                                                }
    13251340                                        }
    13261341
  • trunk/web/addons/job_monarch/version.php

    r320 r333  
    2222 */
    2323
    24 $monarchversion = "0.2";
     24$monarchversion = "0.2+SVN";
    2525?>
Note: See TracChangeset for help on using the changeset viewer.