1 27 28 package org.nightlabs.editor2d.figures; 29 30 import org.eclipse.draw2d.geometry.Rectangle; 31 32 import org.nightlabs.editor2d.j2d.GeneralShapeFactory; 33 import org.nightlabs.editor2d.util.EditorGeneralShapeFactory; 34 35 public class RectangleFigure 36 extends AbstractShapeFigure 37 { 38 public RectangleFigure() 39 { 40 super(); 41 setGeneralShape(GeneralShapeFactory.createRectangle(0,0,10,10)); 42 } 43 44 public RectangleFigure(Rectangle rect) 45 { 46 super(); 47 setGeneralShape(EditorGeneralShapeFactory.createRectangle(rect)); 48 } 49 50 } 51 | Popular Tags |