public void SetParameter(String head,
                                                    String unit,
                                                    String digital,
                                                    String analog,
                                                    float xfrom,
                                                    float xto,
                                                    float x)
 { 
    Header = head;
    if (Header.length()==0)   WHeader=false;
                                        else  WHeader=true; 
    Unit = unit;
    if (digital.equals("false")==true) WDigital=false;
                                                 else         WDigital=true; 

    if (analog.equals("false")==true) WAnalog=false;
                                                  else         WAnalog=true;
    XMin = xfrom;
    XMax = xto;
    XNew = x;
    XOld = XNew;
    CHANGED=true; 

    //Recalculation
    if (WHeader==true) {Hhe  = Mhe / 6;}                       // height of the header
    else Hhe=0;
    if (WDigital==true) {Dhe  = Mhe / 6;}                         // height of the digital instrument
    else Dhe = 0;
    if (WAnalog==true) {Ahe  = Mhe - Hhe - Dhe;}      // height of the analog instrument
    else
    { Ahe = 0;
       if (WDigital==true) 
       { if (WHeader == true)
          {Hhe = Mhe /3;
            Dhe = Mhe - Hhe;
           }// DIGITAL with header
          else 
          {Hhe = 0;
            Dhe = Mhe;
          }// DIGITAL without header
       }// WITHOUT ANA
       else    // only header (!!!)
       {Hhe = Mhe;
       }
    }

    //
    repaint(); 


 } // End of SetParameter