1 package se
.umu
.cs
.dit06ajnajs
;
3 import java
.awt
.Graphics
;
6 public interface Paintable
{
8 * Paints this Paintable.
9 * @param g The Graphics to paint with.
11 public void paint(Graphics g
);
14 * Sets the image the Paintable should contain.
15 * @param img The image a Paintable should contain.
17 public void setImage(Image img
);
20 // TODO Make this interface abstract.
21 // Every getCenterPoint has the same implementation
23 * @return The center point of the Agent.
25 public java
.awt
.Point
getCenterPoint();