KickJava   Java API By Example, From Geeks To Geeks.

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


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

8 package com.nightlabs.editor2d.request;
9
10 import org.eclipse.gef.EditPart;
11 import org.eclipse.gef.requests.SelectionRequest;
12
13
14 public class EditorEditShapeRequest
15 extends SelectionRequest
16 implements EditorRequestConstants,
17                      EditorLocationRequest
18 {
19   protected int pathSegmentIndex;
20   public int getPathSegmentIndex() {
21     return pathSegmentIndex;
22   }
23   public void setPathSegmentIndex(int pathSegmentIndex) {
24     this.pathSegmentIndex = pathSegmentIndex;
25   }
26     
27 // protected Point mouseLocation;
28
// /**
29
// * Returns the location of the mouse pointer.
30
// *
31
// * @return The location of the mouse pointer.
32
// */
33
// public Point getLocation() {
34
// return mouseLocation;
35
// }
36
//
37
// /**
38
// * Sets the location where the New PathSegment will be placed.
39
// *
40
// * @param location the location
41
// */
42
// public void setLocation(Point location) {
43
// this.mouseLocation = location;
44
// }
45

46   protected EditPart targetEditPart;
47   public EditPart getTargetEditPart() {
48     return targetEditPart;
49   }
50   public void setTargetEditPart(EditPart targetEditPart) {
51     this.targetEditPart = targetEditPart;
52   }
53     
54   public EditorEditShapeRequest()
55   {
56     super();
57     setType(REQ_EDIT_SHAPE);
58   }
59
60   /**
61    * @param type
62    */

63   public EditorEditShapeRequest(Object JavaDoc type)
64   {
65     super();
66     setType(type);
67   }
68
69 }
70
Popular Tags