001 // This class is based on the FishDisplay class, version 1 August 2002 002 // by Alyce Brady 003 004 // AP(r) Computer Science Marine Biology Simulation: 005 // The LittleFishDisplay class is copyright(c) 2002 College Entrance 006 // Examination Board (www.collegeboard.com). 007 // 008 // This class is free software; you can redistribute it and/or modify 009 // it under the terms of the GNU General Public License as published by 010 // the Free Software Foundation. 011 // 012 // This class is distributed in the hope that it will be useful, 013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 015 // GNU General Public License for more details. 016 017 package model.fish.display; 018 019 /** 020 * Display a small fish. 021 * 022 * @author Mathias Ricken 023 */ 024 public class LittleFishDisplay extends ParamFishDisplay { 025 private static final double BODY_WIDTH = .2; 026 private static final double BODY_LENGTH = .5; 027 private static final double TAIL_WIDTH = .15; 028 private static final double TAIL_LENGTH = .4; 029 private static final double EYE_SIZE = .03; 030 031 /** 032 * Constructs an object that knows how to display teeny little fish. 033 */ 034 private LittleFishDisplay() { 035 super(BODY_WIDTH, BODY_LENGTH, TAIL_WIDTH, TAIL_LENGTH, EYE_SIZE); 036 } 037 038 /** 039 * Singleton instance. 040 */ 041 public static final LittleFishDisplay Singleton = new LittleFishDisplay(); 042 } 043