1: //ShapeInterface.java
2:
3: /**
4: * Interface for simple shapes drawn on
5: * the screen using keyboard characters.
6: */
7: public interface ShapeInterface
8: {
9: /**
10: * Sets the offset for the shape.
11: */
12: public void setOffset
13: (
14: int newOffset
15: );
16:
17: /**
18: * Returns the offset for the shape.
19: */
20: public int getOffset();
21:
22: /**
23: * Draws the shape at lineNumber lines down
24: * from the current line.
25: */
26: public void drawAt
27: (
28: int lineNumber
29: );
30:
31: /**
32: * Draws the shape at the current line.
33: */
34: public void drawHere();
35: }