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