org.eclipse.draw2d.AbsoluteBendpoint Java Examples

The following examples show how to use org.eclipse.draw2d.AbsoluteBendpoint. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommentConnectionEditPart.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected void refreshBendpoints() {
	// ベンド・ポイントの位置情報の取得
	ConnectionElement connection = (ConnectionElement) this.getModel();

	// 実際のベンド・ポイントのリスト
	List<org.eclipse.draw2d.Bendpoint> constraint = new ArrayList<org.eclipse.draw2d.Bendpoint>();

	for (Bendpoint bendPoint : connection.getBendpoints()) {
		constraint.add(new AbsoluteBendpoint(bendPoint.getX(), bendPoint
				.getY()));
	}

	this.getConnectionFigure().setRoutingConstraint(constraint);
}
 
Example #2
Source File: CommentConnectionEditPart.java    From erflute with Apache License 2.0 5 votes vote down vote up
@Override
protected void refreshBendpoints() {
    // ベンド・ポイントの位置情報の取得
    final WalkerConnection connection = (WalkerConnection) getModel();

    // 実際のベンド・ポイントのリスト
    final List<org.eclipse.draw2d.Bendpoint> constraint = new ArrayList<>();

    for (final Bendpoint bendPoint : connection.getBendpoints()) {
        constraint.add(new AbsoluteBendpoint(bendPoint.getX(), bendPoint.getY()));
    }
    getConnectionFigure().setRoutingConstraint(constraint);
}
 
Example #3
Source File: AbstractERDiagramConnectionEditPart.java    From ermasterr with Apache License 2.0 3 votes vote down vote up
protected List<org.eclipse.draw2d.Bendpoint> getRealBendpoint(final Bendpoint bendPoint) {
    final List<org.eclipse.draw2d.Bendpoint> constraint = new ArrayList<org.eclipse.draw2d.Bendpoint>();

    constraint.add(new AbsoluteBendpoint(bendPoint.getX(), bendPoint.getY()));

    return constraint;
}