Changeset 548 in Sophya for trunk/SophyaPI/PIext/pintuple.cc


Ignore:
Timestamp:
Nov 4, 1999, 5:20:32 PM (26 years ago)
Author:
ercodmgr
Message:

Ajout trace en medaillon - Reza 4/11/99

File:
1 edited

Legend:

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

    r544 r548  
    134134 
    135135  SetLimits(xmin-dx, xmax+dx, ymin-dy, ymax+dy);
    136   SetAxesFlags(kBoxAxes | kExtTicks | kLabels);
     136//  SetAxesFlags(kBoxAxes | kExtTicks | kLabels);  Ne pas faire - Reza 11/99
    137137}
    138138
     
    146146
    147147if (!mNT) return;
     148if (axesFlags != kAxesNone) DrawAxes(g);
    148149if ( (xK < 0) || (yK < 0) )  return;
    149150if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     
    201202  PIGrCoord a,d;
    202203  double cH = (double)g->GetFontHeight(a,d);
    203   double cellHeight = cH * 1.4;
     204  double cellHeight = cH * 1.3;
    204205  double cellWidth =  (double)g->CalcStringWidth(label) * 1.1;
    205   g->DrawLine(XMax() - cellWidth, YMax(),
    206                        XMax() - cellWidth, YMax() - cellHeight);
    207   g->DrawLine(XMax() - cellWidth, YMax() - cellHeight,
    208                        XMax()            , YMax() - cellHeight);
    209   g->DrawString(XMax() - cellWidth*0.95, YMax() - cH*1.2, label);
     206  double xu, yu;
     207  xu = g->DeltaUCX(XMax(), - cellWidth);
     208  yu = g->DeltaUCY(YMax(), - cellHeight);
     209  g->DrawLine(xu, YMax(), xu, yu);
     210  g->DrawLine(xu, yu, XMax(), yu);
     211  xu = g->DeltaUCX(XMax(), - cellWidth*0.95);
     212  yu = g->DeltaUCY(YMax(), - cH*1.15);
     213  g->DrawString(xu, yu, label);
    210214}
    211215
Note: See TracChangeset for help on using the changeset viewer.