本文整理汇总了Java中org.eclipse.gef.requests.BendpointRequest.setType方法的典型用法代码示例。如果您正苦于以下问题:Java BendpointRequest.setType方法的具体用法?Java BendpointRequest.setType怎么用?Java BendpointRequest.setType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gef.requests.BendpointRequest
的用法示例。
在下文中一共展示了BendpointRequest.setType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createBendpointRequest
import org.eclipse.gef.requests.BendpointRequest; //导入方法依赖的package包/类
/**
* createBendpointRequest
*
* @param point
* @param checkDistanceList
* @return BendpointRequest
*/
private BendpointRequest createBendpointRequest(final Point point, List<Double> checkDistanceList) {
final BendpointRequest request = new BendpointRequest();
request.setType("create bendpoint");
request.setIndex(getIndex(checkDistanceList));
request.setSource(this);
request.setLocation(point);
return request;
}
示例2: showFeedback
import org.eclipse.gef.requests.BendpointRequest; //导入方法依赖的package包/类
/**
* @see nexcore.tool.uml.ui.core.diagram.edit.part.AbstractDiagramConnectionEditPart#showFeedback(org.eclipse.draw2d.geometry.Point, org.eclipse.draw2d.geometry.Point)
*/
@Override
public void showFeedback(Point startPoint, Point point) {
final BendpointRequest request = new BendpointRequest();
request.setType(UMLMessage.LABEL_CREATE_BENDPOINT);
request.setIndex(0);
request.setSource(this);
request.setLocation(point);
MessageBendpointEditPolicy editPolicy = (MessageBendpointEditPolicy) getEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE);
editPolicy.showSourceFeedback(request);
}
示例3: createSourceRequest
import org.eclipse.gef.requests.BendpointRequest; //导入方法依赖的package包/类
/**
* Creates a BendpointRequest.
*
* @see org.eclipse.gef.tools.SimpleDragTracker#createSourceRequest()
*/
protected Request createSourceRequest() {
BendpointRequest request = new BendpointRequest();
request.setType(getType());
request.setIndex(getIndex());
request.setSource(getConnectionEditPart());
return request;
}