KickJava   Java API By Example, From Geeks To Geeks.

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


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

8 package com.nightlabs.editor2d.request;
9
10 import java.util.List JavaDoc;
11
12 import org.eclipse.draw2d.geometry.Point;
13 import org.eclipse.gef.requests.SelectionRequest;
14
15 public class EditorRotateRequest
16 //extends GroupRequest
17
extends SelectionRequest
18 implements EditorRequestConstants,
19            EditorLocationRequest,
20            EditorGroupRequest
21 {
22   public EditorRotateRequest() {
23     super();
24   }
25   
26   protected Point rotationCenter;
27   public Point getRotationCenter() {
28     return rotationCenter;
29   }
30   public void setRotationCenter(Point rotationCenter) {
31     this.rotationCenter = rotationCenter;
32   }
33   
34   protected boolean constrainedRotation = false;
35   public boolean isConstrainedRotation() {
36     return constrainedRotation;
37   }
38   public void setConstrainedRotation(boolean constrainedRotation) {
39     this.constrainedRotation = constrainedRotation;
40   }
41   
42   protected double rotation = 0;
43   public double getRotation() {
44     return rotation;
45   }
46   public void setRotation(double rotation) {
47     this.rotation = rotation;
48   }
49   
50   protected List JavaDoc parts;
51   public List JavaDoc getEditParts() {
52     return parts;
53   }
54   public void setEditParts(List JavaDoc list) {
55     parts = list;
56   }
57   
58   protected int direction;
59   public int getDirection() {
60     return direction;
61   }
62   public void setDirection(int direction) {
63     this.direction = direction;
64   }
65   
66   protected boolean multiple = false;
67   public boolean isMultiple() {
68     return multiple;
69   }
70   public void setMultiple(boolean multiple) {
71     this.multiple = multiple;
72   }
73 }
74
Popular Tags