KickJava   Java API By Example, From Geeks To Geeks.

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


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

19
20 package org.objectweb.jac.ide;
21
22 /**
23  * The base class of diagram figures.
24  * @see Diagram
25  */

26
27 public class Figure {
28
29     public Figure() {
30     }
31
32     /**
33      * @param element the model element represented by this figure
34      */

35     public Figure(ModelElement element) {
36         this.element = element;
37     }
38
39     Diagram diagram;
40    
41     /**
42      * Get the value of diagram.
43      * @return value of diagram.
44      */

45     public Diagram getDiagram() {
46         return diagram;
47     }
48    
49     /**
50      * Set the value of diagram.
51      * @param v Value to assign to diagram.
52      */

53     public void setDiagram(Diagram v) {
54         this.diagram = v;
55     }
56    
57     ModelElement element;
58    
59     /**
60      * Get the value of the model element.
61      * @return value of elt.
62      */

63     public ModelElement getElement() {
64         return element;
65     }
66    
67     /**
68      * Set the value of the model element.
69      * @param element Value to assign to element.
70      */

71     public void setElement(ModelElement element) {
72         this.element = element;
73     }
74    
75 }
76
Popular Tags