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 StyleLinkFactory method getUnselectedFilterStyle.
/**
* DOC amaumont Comment method "getSelectedFilterStyle".
*
* @return
*/
private IStyleLink getUnselectedFilterStyle() {
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_UNSELECTED_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 getUnselectedZoneToZoneStyle.
/**
* DOC amaumont Comment method "getNotSelectedSameZoneStyle".
*
* @return
*/
private IStyleLink getUnselectedZoneToZoneStyle() {
StyleLink style = new StyleLink();
setCommonsStyleProperties(style);
style.setDrawableLink(getZoneToZoneLink(style));
ExtremityEastArrow eastArrowTarget = new ExtremityEastArrow(style);
eastArrowTarget.setXOffset(-eastArrowTarget.getSize().x);
style.setExtremity2(eastArrowTarget);
style.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_UNSELECTED_ZONE_TO_ZONE_LINK));
return style;
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getUnselectedSameZoneStyle.
/**
* DOC amaumont Comment method "getNotSelectedSameZoneStyle".
*
* @return
*/
private IStyleLink getUnselectedSameZoneStyle() {
StyleLink style = new StyleLink();
setCommonsStyleProperties(style);
style.setDrawableLink(getSameZoneLink(style));
ExtremityEastArrow eastArrowTarget = new ExtremityEastArrow(style);
eastArrowTarget.setXOffset(-eastArrowTarget.getSize().x);
style.setExtremity2(eastArrowTarget);
style.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_UNSELECTED_LOOKUP_LINKS));
return style;
}
use of org.talend.commons.ui.swt.drawing.link.StyleLink in project tdi-studio-se by Talend.
the class WebServiceTableLiner 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, 0, 0));
return styleLink;
}
Aggregations