Changeset 574


Ignore:
Timestamp:
01/29/09 13:43:13 (15 years ago)
Author:
ramonb
Message:

job_monarch/libtoga.php:

  • set clusterimage node empty pixel row depending on size
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/libtoga.php

    r573 r574  
    10471047                $this->down             = 0;
    10481048                $this->offline          = 0;
     1049                $this->small            = false;
     1050                $this->big              = false;
    10491051        }
    10501052
     
    11821184
    11831185                $this->size     = $SMALL_CLUSTERIMAGE_NODEWIDTH;
     1186                $this->small    = true;
     1187                $this->big      = false;
    11841188
    11851189                $this->draw();
     
    11911195
    11921196                $this->size     = $BIG_CLUSTERIMAGE_NODEWIDTH;
     1197                $this->small    = false;
     1198                $this->big      = true;
    11931199
    11941200                $this->drawShadow();
     
    12531259                $size = $this->size;
    12541260
    1255                 imageFilledRectangle( $this->image, $this->x, $this->y, $this->x+($size-2), $this->y+($size-2), $black_color );
     1261                // seperator pixel row
     1262                //
     1263                $sep    = 0;
     1264
     1265                if( $this->big )
     1266                {
     1267                        $sep    = 2;
     1268                }
     1269
     1270                imageFilledRectangle( $this->image, $this->x, $this->y, $this->x+($size-$sep), $this->y+($size-$sep), $black_color );
    12561271
    12571272                if( $this->showinfo)
     
    12701285                        $load = $this->determineLoad();
    12711286                        $usecolor = $this->colorHex( load_color($load) );
    1272                         imageFilledRectangle( $this->image, $this->x+1, $this->y+1, $this->x+($size-3), $this->y+($size-3), $usecolor );
     1287                        imageFilledRectangle( $this->image, $this->x+1, $this->y+1, $this->x+($size-(1+$sep)), $this->y+($size-(1+$sep)), $usecolor );
    12731288                        if( $this->down )
    12741289                        {
Note: See TracChangeset for help on using the changeset viewer.