public TestPrinter()
        {
            paper    = new Bitmap(paperWidth, paperHeight);
            graphics = Graphics.FromImage(paper);

            justification = 0;

            //ostale inicijalizacije...
            buffer   = new List <String>();
            lastYPos = 0;
        }
 public void SetJustification(String newJustification)
 {
     if (newJustification.ToLower() == "left")
     {
         justification = justifications.LEFT;
     }
     else if (newJustification.ToLower() == "center")
     {
         justification = justifications.CENTER;
     }
     else if (newJustification.ToLower() == "right")
     {
         justification = justifications.RIGHT;
     }
     else
     {
         throw new ArgumentException();
     }
 }