|
Added
Link Here
|
| 1 |
/****************************************************************************** |
| 2 |
* Copyright (c) 2002, 2003 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* IBM Corporation - initial API and implementation |
| 10 |
****************************************************************************/ |
| 11 |
|
| 12 |
package org.eclipse.gef.requests; |
| 13 |
|
| 14 |
import org.eclipse.draw2d.geometry.Point; |
| 15 |
import org.eclipse.draw2d.geometry.PointList; |
| 16 |
import org.eclipse.gef.Request; |
| 17 |
|
| 18 |
/** |
| 19 |
* A Request to set the bend points of {@link org.eclipse.draw2d.Connection} |
| 20 |
* |
| 21 |
*/ |
| 22 |
public class SetAllBendpointRequest extends Request { |
| 23 |
private PointList points; |
| 24 |
private Point ptSourceRef = null; |
| 25 |
private Point ptTargetRef = null; |
| 26 |
|
| 27 |
/** |
| 28 |
* Method SetAllBendPointsRequest. |
| 29 |
* @param sz |
| 30 |
* @param points |
| 31 |
*/ |
| 32 |
public SetAllBendpointRequest(String sz, PointList points) { |
| 33 |
super(sz); |
| 34 |
this.points = points; |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* Method SetAllBendPointsRequest. |
| 39 |
* @param sz |
| 40 |
* @param points |
| 41 |
* @param ptSourceRef |
| 42 |
* @param ptTargetRef |
| 43 |
*/ |
| 44 |
public SetAllBendpointRequest(String sz, PointList points, Point ptSourceRef, Point ptTargetRef) { |
| 45 |
super(sz); |
| 46 |
this.points = points; |
| 47 |
this.ptSourceRef = ptSourceRef; |
| 48 |
this.ptTargetRef = ptTargetRef; |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* Method setPoints. |
| 53 |
* @param points |
| 54 |
*/ |
| 55 |
public void setPoints(PointList points) { |
| 56 |
this.points = points; |
| 57 |
} |
| 58 |
|
| 59 |
/** |
| 60 |
* Method getPoints. |
| 61 |
* @return PointList |
| 62 |
*/ |
| 63 |
public PointList getPoints() { |
| 64 |
return points; |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* @return Returns the ptRef1. |
| 69 |
*/ |
| 70 |
public Point getSourceReference() { |
| 71 |
return ptSourceRef; |
| 72 |
} |
| 73 |
/** |
| 74 |
* @return Returns the ptRef2. |
| 75 |
*/ |
| 76 |
public Point getTargetReference() { |
| 77 |
return ptTargetRef; |
| 78 |
} |
| 79 |
} |