本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例15: showSelectedLine
import org.insightech.er.editor.view.figure.connection.ERDiagramConnection; //导入依赖的package包/类
protected void showSelectedLine() {
final ERDiagramConnection connection = (ERDiagramConnection) getHostFigure();
connection.setSelected(true);
}