001    /*
002      Copyright (C) 2002-2003 Laurent Martelli <laurent@aopsys.com>
003    
004      This program is free software; you can redistribute it and/or modify
005      it under the terms of the GNU Lesser General Public License as
006      published by the Free Software Foundation; either version 2 of the
007      License, or (at your option) any later version.
008    
009      This program is distributed in the hope that it will be useful,
010      but WITHOUT ANY WARRANTY; without even the implied warranty of
011      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012      GNU Lesser General Public License for more details.
013    
014      You should have received a copy of the GNU Lesser General Public
015      License along with this program; if not, write to the Free Software
016      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
017      USA */
018    
019    package org.objectweb.jac.ide;
020    
021    import java.awt.Point;
022    
023    /**
024     * A class figure of a diagram.
025     * @see Diagram
026     * @see Class
027     */
028    
029    public class ClassFigure extends GenericFigure {
030    
031        public ClassFigure() {
032        }
033    
034        /**
035         * Creates a new class figure
036         *
037         * @param cl the class represented by this figure
038         * @param corner the upperleft corner of the figure
039         */
040        public ClassFigure(Class cl, Point corner) {
041            super(cl,corner);
042            this.element = cl;
043            this.corner = corner;
044        }
045    
046        public ClassFigure(Class cl) {
047            super(cl);
048            this.element = cl;
049            this.corner = new Point();
050        }
051    
052        /**
053         * Get the value of cl.
054         * @return value of cl.
055         */
056        public Class getCl() {
057            return (Class)element;
058        }
059    
060        boolean hideMethods;
061        public boolean isHideMethods() {
062            return hideMethods;
063        }
064        public void setHideMethods(boolean newHideMethods) {
065            this.hideMethods = newHideMethods;
066        }
067    
068        boolean hideFields;
069        public boolean isHideFields() {
070            return hideFields;
071        }
072        public void setHideFields(boolean newHideFields) {
073            this.hideFields = newHideFields;
074        }
075    
076       
077    }