/*
 * TheModel.java
 * burton rosenberg
 * 13 April 2004
 */

import java.awt.* ;
import javax.swing.* ;

class TheModel {

    final static int SHAPE_SQUARE = 0 ;
    final static int SHAPE_CIRCLE = 1 ;
    final static int SHAPE_TRIANGLE = 2 ;

    int theShape ;
    JPanel theController ;
    JPanel theView ;

    void setView(JPanel theView ) {
       this.theView = theView ;
    }
  
    void setController(JPanel theController ) {
       this.theController = theController ;
    }

    void setShape(int theShape) {
System.out.println("TheModel.setShape: "+theShape) ;
       this.theShape = theShape ;
       theView.repaint() ;
    }
  
    int getShape() {
       return theShape ;
    }

}

