// A program that reads some data about shapes and outputs this to the screen.
// Barry Cornelius, 20 June 2000
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
public class ShapesToScreen
{
   public static void main(String[ ] pArgs) throws FileNotFoundException
   {
      final BufferedReader tInputHandle =
                    new BufferedReader(new FileReader("ShapesToScreen.data"));
      final ShapesCollection tShapesCollection = 
                    new ShapesCollection(tInputHandle);
      final int tNumberOfShapes = tShapesCollection.size(); 
      for (int tShapeNumber = 0; tShapeNumber<tNumberOfShapes; tShapeNumber++)
      {
         final Shape tShape = tShapesCollection.get(tShapeNumber);
         tShape.translate(1, 2);
         System.out.println(tShape);
      }
   }
}
