KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > request > EditorCreateRequest


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: 28.12.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

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 // protected boolean ignoreSize = false;
60
// public boolean isIgnoreSize() {
61
// return ignoreSize;
62
// }
63
// public void setIgnoreSize(boolean ignoreSize) {
64
// this.ignoreSize = ignoreSize;
65
// }
66

67   /**
68    *
69    */

70   public EditorCreateRequest() {
71     super();
72   }
73
74   /**
75    * @param type
76    */

77   public EditorCreateRequest(Object JavaDoc type) {
78     super(type);
79   }
80   
81 }
82
Popular Tags