use of org.talend.commons.ui.swt.drawing.link.IStyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getSelectedSameZoneFilterStyle.
/**
* DOC amaumont Comment method "getSelectedSameZoneStyle".
*
* @param foregroundColor
* @return
*/
public IStyleLink getSelectedSameZoneFilterStyle() {
IStyleLink style = getSelectedSameInputZoneStyle();
style.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_SELECTED_FILTER_LINK));
return style;
}
use of org.talend.commons.ui.swt.drawing.link.IStyleLink in project tdi-studio-se by Talend.
the class StyleLinkFactory method getUnselectedZoneToZoneFilterStyle.
/**
* DOC amaumont Comment method "getSelectedFilterStyle".
*
* @return
*/
private IStyleLink getUnselectedZoneToZoneFilterStyle() {
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.IStyleLink 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.IStyleLink 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.IStyleLink in project tdi-studio-se by Talend.
the class WebServiceTableLiner method initStyleLink.
private void initStyleLink() {
IStyleLink sStyleLink = this.getSelectedStyleLink();
if (sStyleLink == null) {
sStyleLink = createStandardLink(new Color(getBgDrawableComposite().getDisplay(), 255, 102, 102));
this.setSelectedStyleLink(sStyleLink);
}
IStyleLink uStyleLink = this.getUnselectedStyleLink();
if (uStyleLink == null) {
sStyleLink = createStandardLink(getBgDrawableComposite().getDisplay().getSystemColor(SWT.COLOR_GRAY));
this.setUnselectedStyleLink(sStyleLink);
}
}
Aggregations