1 8 package com.nightlabs.editor2d.request; 9 10 import org.apache.log4j.Logger; 11 import org.eclipse.draw2d.Shape; 12 import org.eclipse.gef.requests.CreateRequest; 13 14 import com.nightlabs.editor2d.j2d.GeneralShape; 15 16 17 public class EditorCreateRequest 18 extends CreateRequest 19 implements EditorShapeRequest, 20 EditorBoundsRequest 21 { 22 public static final Logger LOGGER = Logger.getLogger(EditorCreateRequest.class); 23 24 public static final int BOUNDS_FIX_MODE = 1; 25 public static final int BOUNDS_UNFIX_MODE = 2; 26 27 protected int mode = BOUNDS_UNFIX_MODE; 28 public int getMode() { 29 return mode; 30 } 31 public void setMode(int mode) { 32 this.mode = mode; 33 } 34 35 protected GeneralShape gp; 36 public GeneralShape getGeneralShape() { 37 return gp; 38 } 39 public void setGeneralShape(GeneralShape gp) { 40 this.gp = gp; 41 } 42 43 protected Shape shape; 44 public Shape getShape() { 45 return shape; 46 } 47 public void setShape(Shape shape) { 48 this.shape = shape; 49 } 50 51 protected boolean useShape = false; 52 public boolean isUseShape() { 53 return useShape; 54 } 55 public void setUseShape(boolean useShape) { 56 this.useShape = useShape; 57 } 58 59 67 70 public EditorCreateRequest() { 71 super(); 72 } 73 74 77 public EditorCreateRequest(Object type) { 78 super(type); 79 } 80 81 } 82 | Popular Tags |