use of org.talend.commons.ui.swt.drawing.link.BezierHorizontalLink 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.BezierHorizontalLink 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;
}
use of org.talend.commons.ui.swt.drawing.link.BezierHorizontalLink in project tdi-studio-se by Talend.
the class JSONToXPathLinker method getSelectedLoopStyleLink.
public StyleLink getSelectedLoopStyleLink() {
if (this.selectedLoopStyleLink == null) {
StyleLink styleLink = new StyleLink();
styleLink.setDrawableLink(new BezierHorizontalLink(styleLink));
styleLink.setForegroundColor(selectedLoopLinkColor);
styleLink.setLineWidth(2);
int xOffset = WindowSystem.isGTK() ? 2 : -2;
int yOffset = WindowSystem.isGTK() ? -1 : 0;
styleLink.setExtremity2(new ExtremityEastArrow(styleLink, -ExtremityEastArrow.WIDTH_ARROW + xOffset, yOffset));
this.selectedLoopStyleLink = styleLink;
}
return this.selectedLoopStyleLink;
}
use of org.talend.commons.ui.swt.drawing.link.BezierHorizontalLink in project tdi-studio-se by Talend.
the class JSONToXPathLinker method init.
/**
* DOC amaumont Comment method "init".
*
* @param tree
*/
private void init() {
Display display = getBgDrawableComposite().getDisplay();
initColors(display);
StyleLink unselectedStyleLink = new StyleLink();
unselectedStyleLink.setDrawableLink(new BezierHorizontalLink(unselectedStyleLink));
unselectedStyleLink.setForegroundColor(display.getSystemColor(SWT.COLOR_GRAY));
unselectedStyleLink.setLineWidth(2);
int xOffset = WindowSystem.isGTK() ? 2 : -2;
int yOffset = WindowSystem.isGTK() ? -1 : 0;
unselectedStyleLink.setExtremity2(new ExtremityEastArrow(unselectedStyleLink, -ExtremityEastArrow.WIDTH_ARROW + xOffset, yOffset));
setUnselectedStyleLink(unselectedStyleLink);
getSelectedRelativeStyleLink();
initListeners();
createLinks();
}
use of org.talend.commons.ui.swt.drawing.link.BezierHorizontalLink 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