Search in sources :

Example 6 with IDrawableLink

use of org.talend.commons.ui.swt.drawing.link.IDrawableLink in project tdi-studio-se by Talend.

the class StyleLinkFactory method getSelectedSameVarsZoneStyle.

/**
     * DOC amaumont Comment method "getSelectedSameZoneStyle".
     * 
     * @param foregroundColor
     * @return
     */
public IStyleLink getSelectedSameVarsZoneStyle() {
    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;
}
Also used : IStyleLink(org.talend.commons.ui.swt.drawing.link.IStyleLink) StyleLink(org.talend.commons.ui.swt.drawing.link.StyleLink) IDrawableLink(org.talend.commons.ui.swt.drawing.link.IDrawableLink) ExtremityWestArrow(org.talend.commons.ui.swt.drawing.link.ExtremityWestArrow) ExtremityEastArrow(org.talend.commons.ui.swt.drawing.link.ExtremityEastArrow)

Aggregations

IDrawableLink (org.talend.commons.ui.swt.drawing.link.IDrawableLink)6 IStyleLink (org.talend.commons.ui.swt.drawing.link.IStyleLink)5 Point (org.eclipse.swt.graphics.Point)3 Rectangle (org.eclipse.swt.graphics.Rectangle)3 ExtremityEastArrow (org.talend.commons.ui.swt.drawing.link.ExtremityEastArrow)3 ExtremityWestArrow (org.talend.commons.ui.swt.drawing.link.ExtremityWestArrow)3 StyleLink (org.talend.commons.ui.swt.drawing.link.StyleLink)3 IMapZone (org.talend.designer.abstractmap.ui.visualmap.zone.IMapZone)2 Table (org.eclipse.swt.widgets.Table)1 TableItem (org.eclipse.swt.widgets.TableItem)1 LinkDescriptor (org.talend.commons.ui.swt.drawing.link.LinkDescriptor)1