Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Line color for shapes(Changing the line color of a shape)
Line color for shapes [message #1065066] Mon, 24 June 2013 08:28 Go to next message
John Cole is currently offline John ColeFriend
Messages: 66
Registered: June 2013
Member
Hello,

I am missing a method like setLineColor. Or is there any other possibility to change the color of a line? For exaplme, something like that:

Rectangle rectangle =  = gaService.createRectangle(containerShape);
Color lineColor = gaService.manageColor(targetDiagram, 0, 0, 150);
rectangle.setLineColor(lineColor);


Thank you very much!
Re: Line color for shapes [message #1065199 is a reply to message #1065066] Mon, 24 June 2013 18:23 Go to previous messageGo to next message
Philip Alldredge is currently offline Philip AlldredgeFriend
Messages: 20
Registered: February 2013
Junior Member
Hello,
setForeground will change the color used for drawing lines.

Re: Line color for shapes [message #1065245 is a reply to message #1065199] Tue, 25 June 2013 06:13 Go to previous message
John Cole is currently offline John ColeFriend
Messages: 66
Registered: June 2013
Member
Thank you Philip, this solved the problem!
Previous Topic:Container shape inside another container shape
Next Topic:Newbie Question - Incremental Development - Updating GA's and Styles
Goto Forum:
  


Current Time: Thu Apr 25 22:39:33 GMT 2024

Powered by FUDForum. Page generated in 0.03081 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top