当前位置: 首页>>代码示例>>Java>>正文


Java ERDiagramConnection类代码示例

本文整理汇总了Java中org.insightech.er.editor.view.figure.connection.ERDiagramConnection的典型用法代码示例。如果您正苦于以下问题:Java ERDiagramConnection类的具体用法?Java ERDiagramConnection怎么用?Java ERDiagramConnection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ERDiagramConnection类属于org.insightech.er.editor.view.figure.connection包,在下文中一共展示了ERDiagramConnection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: paintFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void paintFigure(final Graphics graphics) {
    final ERDiagramConnection connection = (ERDiagramConnection) getParent();

    graphics.setAntialias(SWT.ON);

    final Color color = connection.getColor();

    if (color != null) {
        graphics.setForegroundColor(color);
        graphics.setBackgroundColor(color);
    }

    super.paintFigure(graphics);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:19,代码来源:ERDecoration.java

示例2: paintFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void paintFigure(Graphics graphics) {
	ERDiagramConnection connection = (ERDiagramConnection) this.getParent();

	graphics.setAntialias(SWT.ON);

	Color color = connection.getColor();

	if (color != null) {
		graphics.setForegroundColor(color);
		graphics.setBackgroundColor(color);
	}

	super.paintFigure(graphics);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:19,代码来源:ERDecoration.java

示例3: createFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    final ERDiagramConnection connection = createERDiagramConnection();

    connection.setLineStyle(SWT.LINE_DASH);

    return connection;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:CommentConnectionEditPart.java

示例4: createFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    final ERDiagramConnection connection = createERDiagramConnection();

    final ConnectionEndpointLocator targetLocator = new ConnectionEndpointLocator(connection, true);
    targetLabel = new Label("");
    connection.add(targetLabel, targetLocator);

    return connection;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:14,代码来源:RelationEditPart.java

示例5: createERDiagramConnection

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
protected ERDiagramConnection createERDiagramConnection() {
    final boolean bezier = getDiagram().getDiagramContents().getSettings().isUseBezierCurve();
    final ERDiagramConnection connection = new ERDiagramConnection(bezier);
    connection.setConnectionRouter(new BendpointConnectionRouter());

    return connection;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:8,代码来源:AbstractERDiagramConnectionEditPart.java

示例6: refreshVisuals

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void refreshVisuals() {
    if (isActive()) {
        final ConnectionElement element = (ConnectionElement) getModel();

        ((ERDiagramConnection) figure).setColor(Resources.getColor(element.getColor()));

        fillterConnectionByCategory();
        decorateRelation();
        calculateAnchorLocation();
        refreshBendpoints();
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:17,代码来源:AbstractERDiagramConnectionEditPart.java

示例7: refreshSettings

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
public void refreshSettings(final Settings settings) {
    refresh();

    for (final Object object : getSourceConnections()) {
        final AbstractERDiagramConnectionEditPart editPart = (AbstractERDiagramConnectionEditPart) object;
        final ERDiagramConnection connection = (ERDiagramConnection) editPart.getFigure();
        connection.setBezier(settings.isUseBezierCurve());

        editPart.refresh();
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:NodeElementEditPart.java

示例8: removeSelectionHandles

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
@Override
protected void removeSelectionHandles() {
    final ERDiagramConnection connection = (ERDiagramConnection) getHostFigure();
    connection.setSelected(false);

    super.removeSelectionHandles();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:8,代码来源:ERDiagramBendpointEditPolicy.java

示例9: createFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
	ERDiagramConnection connection = this.createERDiagramConnection();

	connection.setLineStyle(SWT.LINE_DASH);

	return connection;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:12,代码来源:CommentConnectionEditPart.java

示例10: createFigure

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
	ERDiagramConnection connection = this.createERDiagramConnection();

	ConnectionEndpointLocator targetLocator = new ConnectionEndpointLocator(
			connection, true);
	this.targetLabel = new Label("");
	connection.add(this.targetLabel, targetLocator);

	return connection;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:15,代码来源:RelationEditPart.java

示例11: createERDiagramConnection

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
protected ERDiagramConnection createERDiagramConnection() {
	boolean bezier = this.getDiagram().getDiagramContents().getSettings()
			.isUseBezierCurve();
	ERDiagramConnection connection = new ERDiagramConnection(bezier);
	connection.setConnectionRouter(new BendpointConnectionRouter());

	return connection;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:9,代码来源:AbstractERDiagramConnectionEditPart.java

示例12: refreshVisuals

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void refreshVisuals() {
	if (this.isActive()) {
		ConnectionElement element = (ConnectionElement) this.getModel();

		((ERDiagramConnection) this.figure).setColor(Resources
				.getColor(element.getColor()));

		this.fillterConnectionByCategory();
		this.decorateRelation();
		this.calculateAnchorLocation();
		this.refreshBendpoints();
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:18,代码来源:AbstractERDiagramConnectionEditPart.java

示例13: refreshSettings

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
public void refreshSettings(Settings settings) {
	this.refresh();

	for (Object object : this.getSourceConnections()) {
		AbstractERDiagramConnectionEditPart editPart = (AbstractERDiagramConnectionEditPart) object;
		ERDiagramConnection connection = (ERDiagramConnection) editPart
				.getFigure();
		connection.setBezier(settings.isUseBezierCurve());

		editPart.refresh();
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:13,代码来源:NodeElementEditPart.java

示例14: removeSelectionHandles

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
@Override
protected void removeSelectionHandles() {
	ERDiagramConnection connection = (ERDiagramConnection) this
			.getHostFigure();
	connection.setSelected(false);

	super.removeSelectionHandles();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:9,代码来源:ERDiagramBendpointEditPolicy.java

示例15: showSelectedLine

import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
protected void showSelectedLine() {
    final ERDiagramConnection connection = (ERDiagramConnection) getHostFigure();
    connection.setSelected(true);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:5,代码来源:ERDiagramBendpointEditPolicy.java


注:本文中的org.insightech.er.editor.view.figure.connection.ERDiagramConnection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。