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