import java.awt.Font;

   class Text extends Figure {
      private String text;  // the String of text
       private int font;
   
      public Text(Draw canvas) {
         super(canvas);  
         this.text = "";  
      }
   	  
      public Text(Draw canvas, String text) {
         super(canvas);  
         this.text = text;  
      }
   	
      public void setText(String text) {
         this.text = text;
      }


      public void setFont(Font font) {
	  theCanvas.setFont(font);
      }

   	
      public void draw() {
         super.draw();
         theCanvas.text(theX, theY, text);
      }
   	
   	
   }
