001 package sysModel.fish;
002
003 import java.awt.*;
004
005 /**
006 * Interface for a fish display.
007 *
008 * @author Mathias Ricken
009 */
010 public interface IFishDisplay {
011 /**
012 * Draw the fish. The Graphics2D object has been set up so that the origin is in the center of the fish. A fish that
013 * is 32x32 wide should thus drawFish from (-16,-16) to (16,16).
014 *
015 * @param g graphics object to drawFish on
016 * @param comp the component to drawFish on
017 * @param fishColor color of the fish
018 */
019 void draw(Graphics2D g, Component comp, Color fishColor);
020 }