Changeset 3559 in Sophya for trunk/SophyaPI/PIext/pihisto2d.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/pihisto2d.cc

    r3520 r3559  
    517517  if (!mHistoWp) return;
    518518  if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    519   g->SelFontSz((YMax() - YMin())/30);
     519// Reza(12/2008): utilisation de flag et fraction pour selection automatique taille de fonte
     520  if (mAFSz) { 
     521    double fsz = (YMax() - YMin())*mFontSzF;
     522    g->SelFontSz(fsz);  // au lieu de 1/30*(ymax-ymin) 
     523  }
    520524
    521525  // La hauteur de la cellule
Note: See TracChangeset for help on using the changeset viewer.