use of org.eclipse.draw2d.PolygonDecoration in project cogtool by cogtool.
the class DesignEditorMouseState method ensureDynamicTransition.
protected void ensureDynamicTransition(int startX, int startY) {
if (potentialTransition == null) {
potentialTransition = new PolylineConnection();
endPtDecoration = new PolygonDecoration();
endPtDecoration.setTemplate(PolygonDecoration.TRIANGLE_TIP);
potentialTransition.setStart(new Point(startX, startY));
ui.getViewEditor().addInteractionFigure(potentialTransition);
} else if (!potentialTransition.isVisible()) {
potentialTransition.setVisible(true);
potentialTransition.setStart(new Point(startX, startY));
}
}
use of org.eclipse.draw2d.PolygonDecoration in project tdi-studio-se by Talend.
the class ConnectionEditPart method createFigure.
@Override
protected IFigure createFigure() {
PolylineConnection connection = new PolylineConnection();
connection.setTargetDecoration(new PolygonDecoration());
curvrRouter = new CurveConnectionRouter();
connection.setForegroundColor(ColorConstants.gray);
connection.setLineWidth(2);
connection.setConnectionRouter(curvrRouter);
return connection;
}
use of org.eclipse.draw2d.PolygonDecoration in project tdi-studio-se by Talend.
the class FilterConnectionPart method createFigure.
@Override
protected IFigure createFigure() {
PolylineConnection connection = new PolylineConnection();
connection.setTargetDecoration(new PolygonDecoration());
connection.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_UNSELECTED_FILTER_LINK));
connection.setLineWidth(2);
return connection;
}
use of org.eclipse.draw2d.PolygonDecoration in project cubrid-manager by CUBRID.
the class RelationshipPart method createFigure.
@Override
protected IFigure createFigure() {
TablePart sourceTablePart = (TablePart) this.getSource();
TablePart targetTablePart = (TablePart) this.getTarget();
IFigure source = sourceTablePart == null ? null : sourceTablePart.getFigure();
IFigure target = targetTablePart == null ? null : targetTablePart.getFigure();
ConnectionFigure conn = new ConnectionFigure(source, target);
conn.setConnectionRouter(new ERConnectionRouter());
conn.setTargetDecoration(new PolygonDecoration());
return conn;
}
use of org.eclipse.draw2d.PolygonDecoration in project cubrid-manager by CUBRID.
the class ConnectionPart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
* @return conn
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setTargetDecoration(new PolygonDecoration());
conn.setConnectionRouter(new BendpointConnectionRouter());
return conn;
}
Aggregations