Changeset 3559 in Sophya for trunk/SophyaPI/PIext/pihisto.cc


Ignore:
Timestamp:
Dec 24, 2008, 12:21:54 AM (17 years ago)
Author:
ansari
Message:

Amelioration gestion taille de fonte ds PIHisto, PINTuple ... en utilisant le flag AutoFontSize mis ds la classe PIDrawer (attributs autofontsize=, fixedfontsize), Reza 24/12/2008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto.cc

    r3153 r3559  
    344344  //  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    345345  g->SelLine(PI_ThinLine);
    346   g->SelFontSz((YMax() - YMin())/30);
    347 
     346// Reza(12/2008): utilisation de flag et fraction pour selection automatique taille de fonte
     347  if (mAFSz) { 
     348    double fsz = (YMax() - YMin())*mFontSzF;
     349    g->SelFontSz(fsz);  // au lieu de 1/30*(ymax-ymin) 
     350  }
    348351  // La hauteur de la cellule
    349352  PIGrCoord a, d;
Note: See TracChangeset for help on using the changeset viewer.