KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > figures > RectangleFigure


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 25.11.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.figures;
9
10 import org.eclipse.draw2d.geometry.Rectangle;
11
12 import com.nightlabs.editor2d.j2d.GeneralShapeFactory;
13 import com.nightlabs.editor2d.util.EditorGeneralShapeFactory;
14
15 public class RectangleFigure
16 extends AbstractShapeFigure
17 {
18   public RectangleFigure()
19   {
20     super();
21     setGeneralShape(GeneralShapeFactory.createRectangle(0,0,10,10));
22   }
23
24   public RectangleFigure(Rectangle rect)
25   {
26     super();
27     setGeneralShape(EditorGeneralShapeFactory.createRectangle(rect));
28   }
29   
30 }
31
Popular Tags