
/**
 Abstract class for simple character graphics figures to send to 
 the screen. It is intended to be used as a base class for the kinds
 of figures that will be used in graphics applications.
*/
public abstract class Figure
{
    private int offset; 
    
    public abstract void drawHere( );
              
    /**
     Draws the figure at lineNumber lines down
     from the current line.
    */
    public void drawAt(int lineNumber)
    {
        int count;
        for (count = 0; count < lineNumber; count++)
            System.out.println( ); 
        drawHere( );
    } 
    
    public Figure( )
    {
        offset = 0;
    }

    public Figure(int theOffset)
    {
        offset = theOffset;
    }

    public void setOffset(int newOffset)
    {
        offset = newOffset;
    }

    public int getOffset( )
    {
        return offset;
    }
}