1 package se
.umu
.cs
.dit06ajnajs
;
3 import java
.awt
.Graphics
;
7 * Interface for every class that should be able to paint itself to a Graphics
10 * @author Anton Johansson (dit06ajn@cs.umu.se)
11 * @author Andreas Jakobsson (dit06ajs@cs.umu.se)
14 public interface Paintable
{
16 * Paints this Paintable.
17 * @param g The Graphics to paint with.
19 public void paint(Graphics g
);
22 * Sets the image the Paintable should contain.
23 * @param img The image a Paintable should contain.
25 public void setImage(Image img
);
28 * @return The center point of the Agent.
30 public java
.awt
.Point
getCenterPoint();