Changeset 3559 in Sophya for trunk/SophyaPI


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

Location:
trunk/SophyaPI/PIext
Files:
3 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;
  • 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
  • trunk/SophyaPI/PIext/pintuple.cc

    r3505 r3559  
    308308if (stats) { // Trace de stats
    309309  g->SelForeground(defcol);
    310   g->SelFontSz((YMax() - YMin())/30); 
     310// Reza(12/2008): utilisation de flag et fraction pour selection automatique taille de fonte
     311  if (mAFSz) { 
     312    double fsz = (YMax() - YMin())*mFontSzF;
     313    g->SelFontSz(fsz);  // au lieu de 1/30*(ymax-ymin) 
     314  }
    311315  // La hauteur de la cellule
    312316  PIGrCoord a,d;
Note: See TracChangeset for help on using the changeset viewer.