final private BasicStroke stroke;
final private Color bgColor;
/* Note, that source and target are nodeviews and not nodemodels!. */
public ConnectorView(final ConnectorModel connectorModel, final NodeView source, final NodeView target, Color bgColor) {
super(connectorModel, source, target);
final LinkController linkController = LinkController.getController(getModeController());
textColor = linkController.getColor(connectorModel);
this.bgColor =bgColor;
final int alpha = linkController.getAlpha(connectorModel);
color = ColorUtils.createColor(textColor, alpha);
final int width = linkController.getWidth(connectorModel);
if (!isSourceVisible() || !isTargetVisible()) {
stroke = new BasicStroke(width);
}
else{
stroke = UITools.createStroke(width, linkController.getDash(connectorModel));
}
}