java - how to set line width & color of connection line in draw2d? -


I am trying to set the width and connection line color in draw2d. I found the method "SettleWidth ()" method but I need to call this method. I call this method on the input port object but Plz does not work help me

Can you post some of your code? This is working for me:

  Polyline connection connection = new polyline connection (); Connection.setLineWidth (2); Connection.setSourceAnchor (new channel start anchor (this)); Connection.setTargetAnchor (new ChannelEndAnchor); Display display = Display.getCurrent (); Last color connection: ColorHoover = display.getSystemColor (SWT.COLOR_RED); Last color connection color = new color (display, 54,82,111); Connection.setBackgroundColor (connectionColor); Connection.setForegroundColor (connectionColor);    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -