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 Cole
Messages: 30
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 Alldredge
Messages: 11
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 Cole
Messages: 30
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: Tue Sep 23 06:31:38 GMT 2014

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

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