KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > ide > ClassFigure


1 /*
2   Copyright (C) 2002-2003 Laurent Martelli <laurent@aopsys.com>
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU Lesser General Public License as
6   published by the Free Software Foundation; either version 2 of the
7   License, or (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   GNU Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17   USA */

18
19 package org.objectweb.jac.ide;
20
21 import java.awt.Point JavaDoc;
22
23 /**
24  * A class figure of a diagram.
25  * @see Diagram
26  * @see Class
27  */

28
29 public class ClassFigure extends GenericFigure {
30
31     public ClassFigure() {
32     }
33
34     /**
35      * Creates a new class figure
36      *
37      * @param cl the class represented by this figure
38      * @param corner the upperleft corner of the figure
39      */

40     public ClassFigure(Class JavaDoc cl, Point JavaDoc corner) {
41         super(cl,corner);
42         this.element = cl;
43         this.corner = corner;
44     }
45
46     public ClassFigure(Class JavaDoc cl) {
47         super(cl);
48         this.element = cl;
49         this.corner = new Point JavaDoc();
50     }
51
52     /**
53      * Get the value of cl.
54      * @return value of cl.
55      */

56     public Class JavaDoc getCl() {
57         return (Class JavaDoc)element;
58     }
59
60     boolean hideMethods;
61     public boolean isHideMethods() {
62         return hideMethods;
63     }
64     public void setHideMethods(boolean newHideMethods) {
65         this.hideMethods = newHideMethods;
66     }
67
68     boolean hideFields;
69     public boolean isHideFields() {
70         return hideFields;
71     }
72     public void setHideFields(boolean newHideFields) {
73         this.hideFields = newHideFields;
74     }
75
76    
77 }
78
Popular Tags