public GraphConnection(Graph graphModel, int style, GraphNode source, GraphNode destination) { super(graphModel, style); this.connectionStyle |= graphModel.getConnectionStyle(); this.connectionStyle |= style; this.sourceNode = source; this.destinationNode = destination; this.visible = true; this.color = ColorConstants.lightGray; this.foreground = ColorConstants.lightGray; this.highlightColor = graphModel.DARK_BLUE; this.lineWidth = 1; this.lineStyle = Graphics.LINE_SOLID; setWeight(1.0); this.graph = graphModel; this.curveDepth = 0; this.font = Display.getDefault().getSystemFont(); registerConnection(source, destination); }