|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the methods that a Critter class must implement in order to be managed by the CSE 142 MatrixView project code.
The purpose of a class that implements CritterFace is to provide the Shapes that represent a particular instance of a particular type of Critter. Thus, if there is a "class Insect implements Critter", then there must be a related class (for example InsectFace) that implements this CritterFace interface. The CritterFace manages a small set of Shapes (one or more) that can be used to draw a single Critter of a particular type.
Note that this class is similar in purpose to the PatternElement interface in the previous project, and a class that implements this interface will have methods similar to those of the classes that implemented PatternElement, although there are fewer methods to implement.
| Method Summary | |
void |
addTo(uwcse.graphics.GWindow gw)
Add this pattern to a graphics window. |
void |
moveTo(int x,
int y)
Change this pattern's position. |
void |
removeFromWindow()
Remove this pattern from the window it is shown in. |
| Method Detail |
public void addTo(uwcse.graphics.GWindow gw)
gw - the graphics window to add this image topublic void removeFromWindow()
public void moveTo(int x,
int y)
x - new X coordinatey - new Y coordinate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||