public class InitialPointsOfRequestDataManager
extends java.lang.Object
#storeInitialPointsInRequest(LocationRequest, ConnectionEditPart, Connection)
must be called in the corresponding policy before drawing the feedback.eraseInitialPoints(Connection) must be called at the
end of the feedback drawing (eraseConnection*Feedback methods of Policy
classes).| Constructor and Description |
|---|
InitialPointsOfRequestDataManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
eraseInitialPoints(org.eclipse.draw2d.Connection connection)
Reset the initial points stored in this manager and also erase the feedback
data from all the
EdgeLabelLocator of the labels of the current
connection. |
static org.eclipse.draw2d.geometry.PointList |
getOriginalPoints(org.eclipse.gef.requests.LocationRequest request)
Get the initial points list of the edge stored in the
request. |
void |
storeInitialPointsInRequest(org.eclipse.gef.requests.LocationRequest request,
org.eclipse.gef.ConnectionEditPart connectionEditPart)
Store the initial points of the edge in the request (before feedback
drawing).
|
public void storeInitialPointsInRequest(org.eclipse.gef.requests.LocationRequest request,
org.eclipse.gef.ConnectionEditPart connectionEditPart)
EdgeLabelLocator of the
labels of the current connection to correctly draw the label feedback during
the label move.request - the request in which to store the original points of the edge.connectionEditPart - the editPart of the edgepublic void eraseInitialPoints(org.eclipse.draw2d.Connection connection)
EdgeLabelLocator of the labels of the current
connection.connection - The connection from which to erase feedback datapublic static org.eclipse.draw2d.geometry.PointList getOriginalPoints(org.eclipse.gef.requests.LocationRequest request)
request.request - The request to query