sysModel.fish
Interface IFishDisplay
- All Known Implementing Classes:
- CircleFishDisplay, ImageFishDisplay, LittleFishDisplay, NarrowFishDisplay, ParamFishDisplay, RoundFishDisplay
public interface IFishDisplay
Interface for a fish display.
- Author:
- Mathias Ricken
Method Summary |
void |
draw(java.awt.Graphics2D g,
java.awt.Component comp,
java.awt.Color fishColor)
Draw the fish. |
draw
void draw(java.awt.Graphics2D g,
java.awt.Component comp,
java.awt.Color fishColor)
- Draw the fish. The Graphics2D object has been set up so that the origin is in the center of the fish. A fish that
is 32x32 wide should thus drawFish from (-16,-16) to (16,16).
- Parameters:
g
- graphics object to drawFish oncomp
- the component to drawFish onfishColor
- color of the fish