1 8 package com.nightlabs.editor2d.request; 9 10 import java.util.List ; 11 12 import org.eclipse.draw2d.geometry.Point; 13 import org.eclipse.gef.requests.SelectionRequest; 14 15 public class EditorRotateRequest 16 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 parts; 51 public List getEditParts() { 52 return parts; 53 } 54 public void setEditParts(List 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 |