use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getSelectedZoneToOtherZoneStyle.
private IStyleLink getSelectedZoneToOtherZoneStyle(Color foregroundColor) {
StyleLink style = new StyleLink();
setCommonsStyleProperties(style);
style.setDrawableLink(getZoneToZoneLink(style));
ExtremityEastArrow eastArrowSource = new ExtremityEastArrow(style);
style.setExtremity1(eastArrowSource);
ExtremityEastArrow eastArrowTarget = new ExtremityEastArrow(style);
eastArrowTarget.setXOffset(-eastArrowTarget.getSize().x);
style.setExtremity2(eastArrowTarget);
style.setForegroundColor(foregroundColor);
return style;
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getSelectedFilterStyle.
/**
* DOC amaumont Comment method "getSelectedFilterStyle".
*
* @return
*/
private IStyleLink getSelectedFilterStyle() {
StyleLink style = new StyleLink();
setCommonsStyleProperties(style);
style.setDrawableLink(getZoneToZoneLink(style));
ExtremityEastArrow eastArrowSource = new ExtremityEastArrow(style);
style.setExtremity1(eastArrowSource);
ExtremityEastArrow eastArrowTarget = new ExtremityEastArrow(style);
eastArrowTarget.setXOffset(-eastArrowTarget.getSize().x);
style.setExtremity2(eastArrowTarget);
style.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_SELECTED_FILTER_LINK));
return style;
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getSelectedSameInputZoneStyle.
/**
* DOC amaumont Comment method "getSelectedSameZoneStyle".
*
* @param foregroundColor
* @return
*/
public IStyleLink getSelectedSameInputZoneStyle() {
StyleLink style = new StyleLink();
setCommonsStyleProperties(style);
IDrawableLink sameZoneLink = getSameZoneLink(style);
style.setDrawableLink(sameZoneLink);
ExtremityWestArrow westArrow = new ExtremityWestArrow(style);
style.setExtremity1(westArrow);
ExtremityEastArrow eastArrowTarget = new ExtremityEastArrow(style);
eastArrowTarget.setXOffset(-eastArrowTarget.getSize().x);
style.setExtremity2(eastArrowTarget);
style.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_SELECTED_LOOKUP_LINKS));
return style;
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class JSONToXPathLinker method getSelectedRelativeStyleLink.
/**
* DOC amaumont Comment method "getSelectedRelativeStyleLink".
*
* @param selectedLoopLinkColor
*/
private void getSelectedRelativeStyleLink() {
StyleLink selectedStyleLink = new StyleLink();
selectedStyleLink.setDrawableLink(new BezierHorizontalLink(selectedStyleLink));
selectedStyleLink.setForegroundColor(selectedRelativeLinkColor);
selectedStyleLink.setLineWidth(2);
int xOffset = WindowSystem.isGTK() ? 2 : -2;
int yOffset = WindowSystem.isGTK() ? -1 : 0;
selectedStyleLink.setExtremity2(new ExtremityEastArrow(selectedStyleLink, -ExtremityEastArrow.WIDTH_ARROW + xOffset, yOffset));
setSelectedStyleLink(selectedStyleLink);
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class HL7Tree2SchemaLinker method createStandardLink.
protected StyleLink createStandardLink(Color color) {
StyleLink styleLink = new StyleLink();
BezierHorizontalLink link = new BezierHorizontalLink(styleLink);
// LineLinkWithHorizontalConnectors link = new LineLinkWithHorizontalConnectors(styleLink);
// link.setConnectorWidth(40);
styleLink.setDrawableLink(link);
styleLink.setForegroundColor(color);
styleLink.setLineWidth(2);
styleLink.setExtremity2(new ExtremityEastArrow(styleLink, -5, 0));
return styleLink;
}
Aggregations